Commit d2d19203 authored by dcheng's avatar dcheng Committed by Commit bot

Standardize usage of virtual/override/final in chrome/browser/browsing_data

The Google C++ style guide states:

  Explicitly annotate overrides of virtual functions or virtual
  destructors with an override or (less frequently) final specifier.
  Older (pre-C++11) code will use the virtual keyword as an inferior
  alternative annotation. For clarity, use exactly one of override,
  final, or virtual when declaring an override.

To better conform to these guidelines, the following constructs have
been rewritten:

- if a base class has a virtual destructor, then:
    virtual ~Foo();                   ->  ~Foo() override;
- virtual void Foo() override;        ->  void Foo() override;
- virtual void Foo() override final;  ->  void Foo() final;

This patch was automatically generated. The clang plugin can generate
fixit hints, which are suggested edits when it is 100% sure it knows how
to fix a problem. The hints from the clang plugin were applied to the
source tree using the tool in https://codereview.chromium.org/598073004.

BUG=417463
R=mkwst@chromium.org

Review URL: https://codereview.chromium.org/666123002

Cr-Commit-Position: refs/heads/master@{#300575}
parent b64da3f3
...@@ -76,11 +76,11 @@ class CannedBrowsingDataAppCacheHelper : public BrowsingDataAppCacheHelper { ...@@ -76,11 +76,11 @@ class CannedBrowsingDataAppCacheHelper : public BrowsingDataAppCacheHelper {
const OriginAppCacheInfoMap& GetOriginAppCacheInfoMap() const; const OriginAppCacheInfoMap& GetOriginAppCacheInfoMap() const;
// BrowsingDataAppCacheHelper methods. // BrowsingDataAppCacheHelper methods.
virtual void StartFetching(const base::Closure& completion_callback) override; void StartFetching(const base::Closure& completion_callback) override;
virtual void DeleteAppCacheGroup(const GURL& manifest_url) override; void DeleteAppCacheGroup(const GURL& manifest_url) override;
private: private:
virtual ~CannedBrowsingDataAppCacheHelper(); ~CannedBrowsingDataAppCacheHelper() override;
DISALLOW_COPY_AND_ASSIGN(CannedBrowsingDataAppCacheHelper); DISALLOW_COPY_AND_ASSIGN(CannedBrowsingDataAppCacheHelper);
}; };
......
...@@ -24,11 +24,11 @@ class BrowsingDataChannelIDHelperImpl ...@@ -24,11 +24,11 @@ class BrowsingDataChannelIDHelperImpl
net::URLRequestContextGetter* request_context); net::URLRequestContextGetter* request_context);
// BrowsingDataChannelIDHelper methods. // BrowsingDataChannelIDHelper methods.
virtual void StartFetching(const FetchResultCallback& callback) override; void StartFetching(const FetchResultCallback& callback) override;
virtual void DeleteChannelID(const std::string& server_id) override; void DeleteChannelID(const std::string& server_id) override;
private: private:
virtual ~BrowsingDataChannelIDHelperImpl(); ~BrowsingDataChannelIDHelperImpl() override;
// Fetch the certs. This must be called in the IO thread. // Fetch the certs. This must be called in the IO thread.
void FetchOnIOThread(); void FetchOnIOThread();
......
...@@ -68,11 +68,11 @@ class CannedBrowsingDataChannelIDHelper ...@@ -68,11 +68,11 @@ class CannedBrowsingDataChannelIDHelper
size_t GetChannelIDCount() const; size_t GetChannelIDCount() const;
// BrowsingDataChannelIDHelper methods. // BrowsingDataChannelIDHelper methods.
virtual void StartFetching(const FetchResultCallback& callback) override; void StartFetching(const FetchResultCallback& callback) override;
virtual void DeleteChannelID(const std::string& server_id) override; void DeleteChannelID(const std::string& server_id) override;
private: private:
virtual ~CannedBrowsingDataChannelIDHelper(); ~CannedBrowsingDataChannelIDHelper() override;
void FinishFetching(); void FinishFetching();
......
...@@ -53,9 +53,7 @@ class BrowsingDataChannelIDHelperTest ...@@ -53,9 +53,7 @@ class BrowsingDataChannelIDHelperTest
} }
// net::SSLConfigService::Observer implementation: // net::SSLConfigService::Observer implementation:
virtual void OnSSLConfigChanged() override { void OnSSLConfigChanged() override { ssl_config_changed_count_++; }
ssl_config_changed_count_++;
}
protected: protected:
content::TestBrowserThreadBundle thread_bundle_; content::TestBrowserThreadBundle thread_bundle_;
......
...@@ -126,9 +126,9 @@ class CannedBrowsingDataCookieHelper : public BrowsingDataCookieHelper { ...@@ -126,9 +126,9 @@ class CannedBrowsingDataCookieHelper : public BrowsingDataCookieHelper {
bool empty() const; bool empty() const;
// BrowsingDataCookieHelper methods. // BrowsingDataCookieHelper methods.
virtual void StartFetching( void StartFetching(
const net::CookieMonster::GetCookieListCallback& callback) override; const net::CookieMonster::GetCookieListCallback& callback) override;
virtual void DeleteCookie(const net::CanonicalCookie& cookie) override; void DeleteCookie(const net::CanonicalCookie& cookie) override;
// Returns the number of stored cookies. // Returns the number of stored cookies.
size_t GetCookieCount() const; size_t GetCookieCount() const;
...@@ -145,7 +145,7 @@ class CannedBrowsingDataCookieHelper : public BrowsingDataCookieHelper { ...@@ -145,7 +145,7 @@ class CannedBrowsingDataCookieHelper : public BrowsingDataCookieHelper {
bool DeleteMatchingCookie(const net::CanonicalCookie& add_cookie, bool DeleteMatchingCookie(const net::CanonicalCookie& add_cookie,
canonical_cookie::CookieHashSet* cookie_set); canonical_cookie::CookieHashSet* cookie_set);
virtual ~CannedBrowsingDataCookieHelper(); ~CannedBrowsingDataCookieHelper() override;
// Returns the |CookieSet| for the given |origin|. // Returns the |CookieSet| for the given |origin|.
canonical_cookie::CookieHashSet* GetCookiesFor(const GURL& origin); canonical_cookie::CookieHashSet* GetCookiesFor(const GURL& origin);
......
...@@ -134,14 +134,13 @@ class CannedBrowsingDataDatabaseHelper : public BrowsingDataDatabaseHelper { ...@@ -134,14 +134,13 @@ class CannedBrowsingDataDatabaseHelper : public BrowsingDataDatabaseHelper {
const std::set<PendingDatabaseInfo>& GetPendingDatabaseInfo(); const std::set<PendingDatabaseInfo>& GetPendingDatabaseInfo();
// BrowsingDataDatabaseHelper implementation. // BrowsingDataDatabaseHelper implementation.
virtual void StartFetching( void StartFetching(const base::Callback<void(const std::list<DatabaseInfo>&)>&
const base::Callback<void(const std::list<DatabaseInfo>&)>& callback) callback) override;
override; void DeleteDatabase(const std::string& origin_identifier,
virtual void DeleteDatabase(const std::string& origin_identifier,
const std::string& name) override; const std::string& name) override;
private: private:
virtual ~CannedBrowsingDataDatabaseHelper(); ~CannedBrowsingDataDatabaseHelper() override;
std::set<PendingDatabaseInfo> pending_database_info_; std::set<PendingDatabaseInfo> pending_database_info_;
......
...@@ -34,12 +34,13 @@ class BrowsingDataFileSystemHelperImpl : public BrowsingDataFileSystemHelper { ...@@ -34,12 +34,13 @@ class BrowsingDataFileSystemHelperImpl : public BrowsingDataFileSystemHelper {
// BrowsingDataFileSystemHelper implementation // BrowsingDataFileSystemHelper implementation
explicit BrowsingDataFileSystemHelperImpl( explicit BrowsingDataFileSystemHelperImpl(
storage::FileSystemContext* filesystem_context); storage::FileSystemContext* filesystem_context);
virtual void StartFetching(const base::Callback< void StartFetching(
void(const std::list<FileSystemInfo>&)>& callback) override; const base::Callback<void(const std::list<FileSystemInfo>&)>& callback)
virtual void DeleteFileSystemOrigin(const GURL& origin) override; override;
void DeleteFileSystemOrigin(const GURL& origin) override;
private: private:
virtual ~BrowsingDataFileSystemHelperImpl(); ~BrowsingDataFileSystemHelperImpl() override;
// Enumerates all filesystem files, storing the resulting list into // Enumerates all filesystem files, storing the resulting list into
// file_system_file_ for later use. This must be called on the file // file_system_file_ for later use. This must be called on the file
......
...@@ -120,17 +120,18 @@ class CannedBrowsingDataFileSystemHelper ...@@ -120,17 +120,18 @@ class CannedBrowsingDataFileSystemHelper
} }
// BrowsingDataFileSystemHelper implementation. // BrowsingDataFileSystemHelper implementation.
virtual void StartFetching(const base::Callback< void StartFetching(
void(const std::list<FileSystemInfo>&)>& callback) override; const base::Callback<void(const std::list<FileSystemInfo>&)>& callback)
override;
// Note that this doesn't actually have an implementation for this canned // Note that this doesn't actually have an implementation for this canned
// class. It hasn't been necessary for anything that uses the canned // class. It hasn't been necessary for anything that uses the canned
// implementation, as the canned class is only used in tests, or in read-only // implementation, as the canned class is only used in tests, or in read-only
// contexts (like the non-modal cookie dialog). // contexts (like the non-modal cookie dialog).
virtual void DeleteFileSystemOrigin(const GURL& origin) override {} void DeleteFileSystemOrigin(const GURL& origin) override {}
private: private:
virtual ~CannedBrowsingDataFileSystemHelper(); ~CannedBrowsingDataFileSystemHelper() override;
// Holds the current list of filesystems returned to the client. // Holds the current list of filesystems returned to the client.
std::list<FileSystemInfo> file_system_info_; std::list<FileSystemInfo> file_system_info_;
......
...@@ -21,20 +21,17 @@ class BrowsingDataFlashLSOHelperImpl ...@@ -21,20 +21,17 @@ class BrowsingDataFlashLSOHelperImpl
content::BrowserContext* browser_context); content::BrowserContext* browser_context);
// BrowsingDataFlashLSOHelper implementation: // BrowsingDataFlashLSOHelper implementation:
virtual void StartFetching( void StartFetching(const GetSitesWithFlashDataCallback& callback) override;
const GetSitesWithFlashDataCallback& callback) override; void DeleteFlashLSOsForSite(const std::string& site) override;
virtual void DeleteFlashLSOsForSite(const std::string& site) override;
// PepperFlashSettingsManager::Client overrides: // PepperFlashSettingsManager::Client overrides:
virtual void OnGetSitesWithDataCompleted( void OnGetSitesWithDataCompleted(
uint32 request_id, uint32 request_id,
const std::vector<std::string>& sites) override; const std::vector<std::string>& sites) override;
virtual void OnClearSiteDataCompleted( void OnClearSiteDataCompleted(uint32 request_id, bool success) override;
uint32 request_id,
bool success) override;
private: private:
virtual ~BrowsingDataFlashLSOHelperImpl(); ~BrowsingDataFlashLSOHelperImpl() override;
// Asynchronously fetches and deletes data and calls us back. // Asynchronously fetches and deletes data and calls us back.
PepperFlashSettingsManager settings_manager_; PepperFlashSettingsManager settings_manager_;
......
...@@ -115,13 +115,12 @@ class CannedBrowsingDataIndexedDBHelper ...@@ -115,13 +115,12 @@ class CannedBrowsingDataIndexedDBHelper
GetIndexedDBInfo() const; GetIndexedDBInfo() const;
// BrowsingDataIndexedDBHelper methods. // BrowsingDataIndexedDBHelper methods.
virtual void StartFetching( void StartFetching(const base::Callback<
const base::Callback<void(const std::list<content::IndexedDBInfo>&)>& void(const std::list<content::IndexedDBInfo>&)>& callback) override;
callback) override; void DeleteIndexedDB(const GURL& origin) override;
virtual void DeleteIndexedDB(const GURL& origin) override;
private: private:
virtual ~CannedBrowsingDataIndexedDBHelper(); ~CannedBrowsingDataIndexedDBHelper() override;
std::set<PendingIndexedDBInfo> pending_indexed_db_info_; std::set<PendingIndexedDBInfo> pending_indexed_db_info_;
......
...@@ -92,13 +92,13 @@ class CannedBrowsingDataLocalStorageHelper ...@@ -92,13 +92,13 @@ class CannedBrowsingDataLocalStorageHelper
const std::set<GURL>& GetLocalStorageInfo() const; const std::set<GURL>& GetLocalStorageInfo() const;
// BrowsingDataLocalStorageHelper implementation. // BrowsingDataLocalStorageHelper implementation.
virtual void StartFetching( void StartFetching(
const base::Callback<void(const std::list<LocalStorageInfo>&)>& callback) const base::Callback<void(const std::list<LocalStorageInfo>&)>& callback)
override; override;
virtual void DeleteOrigin(const GURL& origin) override; void DeleteOrigin(const GURL& origin) override;
private: private:
virtual ~CannedBrowsingDataLocalStorageHelper(); ~CannedBrowsingDataLocalStorageHelper() override;
std::set<GURL> pending_local_storage_info_; std::set<GURL> pending_local_storage_info_;
......
...@@ -27,14 +27,14 @@ class QuotaManager; ...@@ -27,14 +27,14 @@ class QuotaManager;
// IO thread, we have to communicate over thread using PostTask. // IO thread, we have to communicate over thread using PostTask.
class BrowsingDataQuotaHelperImpl : public BrowsingDataQuotaHelper { class BrowsingDataQuotaHelperImpl : public BrowsingDataQuotaHelper {
public: public:
virtual void StartFetching(const FetchResultCallback& callback) override; void StartFetching(const FetchResultCallback& callback) override;
virtual void RevokeHostQuota(const std::string& host) override; void RevokeHostQuota(const std::string& host) override;
private: private:
BrowsingDataQuotaHelperImpl(base::MessageLoopProxy* ui_thread, BrowsingDataQuotaHelperImpl(base::MessageLoopProxy* ui_thread,
base::MessageLoopProxy* io_thread, base::MessageLoopProxy* io_thread,
storage::QuotaManager* quota_manager); storage::QuotaManager* quota_manager);
virtual ~BrowsingDataQuotaHelperImpl(); ~BrowsingDataQuotaHelperImpl() override;
void FetchQuotaInfo(); void FetchQuotaInfo();
......
...@@ -250,7 +250,14 @@ class BrowsingDataRemover ...@@ -250,7 +250,14 @@ class BrowsingDataRemover
// to be deleted by other objects so make destructor private and DeleteHelper // to be deleted by other objects so make destructor private and DeleteHelper
// a friend. // a friend.
friend class base::DeleteHelper<BrowsingDataRemover>; friend class base::DeleteHelper<BrowsingDataRemover>;
virtual ~BrowsingDataRemover();
// When plugins aren't enabled, there is no base class, so adding an override
// specifier would result in a compile error.
#if defined(ENABLE_PLUGINS)
~BrowsingDataRemover() override;
#else
~BrowsingDataRemover();
#endif
// Callback for when TemplateURLService has finished loading. Clears the data, // Callback for when TemplateURLService has finished loading. Clears the data,
// clears the respective waiting flag, and invokes NotifyAndDeleteIfDone. // clears the respective waiting flag, and invokes NotifyAndDeleteIfDone.
...@@ -261,7 +268,7 @@ class BrowsingDataRemover ...@@ -261,7 +268,7 @@ class BrowsingDataRemover
#if defined(ENABLE_PLUGINS) #if defined(ENABLE_PLUGINS)
// PepperFlashSettingsManager::Client implementation. // PepperFlashSettingsManager::Client implementation.
virtual void OnDeauthorizeContentLicensesCompleted(uint32 request_id, void OnDeauthorizeContentLicensesCompleted(uint32 request_id,
bool success) override; bool success) override;
#endif #endif
......
...@@ -38,7 +38,7 @@ class BrowsingDataRemoverBrowserTest : public InProcessBrowserTest { ...@@ -38,7 +38,7 @@ class BrowsingDataRemoverBrowserTest : public InProcessBrowserTest {
public: public:
BrowsingDataRemoverBrowserTest() {} BrowsingDataRemoverBrowserTest() {}
virtual void SetUpOnMainThread() override { void SetUpOnMainThread() override {
base::FilePath path; base::FilePath path;
PathService::Get(content::DIR_TEST_DATA, &path); PathService::Get(content::DIR_TEST_DATA, &path);
BrowserThread::PostTask( BrowserThread::PostTask(
......
...@@ -14,13 +14,13 @@ class BrowsingDataRemoverCompletionObserver ...@@ -14,13 +14,13 @@ class BrowsingDataRemoverCompletionObserver
: public BrowsingDataRemover::Observer { : public BrowsingDataRemover::Observer {
public: public:
explicit BrowsingDataRemoverCompletionObserver(BrowsingDataRemover* remover); explicit BrowsingDataRemoverCompletionObserver(BrowsingDataRemover* remover);
virtual ~BrowsingDataRemoverCompletionObserver(); ~BrowsingDataRemoverCompletionObserver() override;
void BlockUntilCompletion(); void BlockUntilCompletion();
protected: protected:
// BrowsingDataRemover::Observer: // BrowsingDataRemover::Observer:
virtual void OnBrowsingDataRemoverDone() override; void OnBrowsingDataRemoverDone() override;
private: private:
scoped_refptr<content::MessageLoopRunner> message_loop_runner_; scoped_refptr<content::MessageLoopRunner> message_loop_runner_;
...@@ -32,14 +32,14 @@ class BrowsingDataRemoverCompletionInhibitor ...@@ -32,14 +32,14 @@ class BrowsingDataRemoverCompletionInhibitor
: public BrowsingDataRemover::CompletionInhibitor { : public BrowsingDataRemover::CompletionInhibitor {
public: public:
BrowsingDataRemoverCompletionInhibitor(); BrowsingDataRemoverCompletionInhibitor();
virtual ~BrowsingDataRemoverCompletionInhibitor(); ~BrowsingDataRemoverCompletionInhibitor() override;
void BlockUntilNearCompletion(); void BlockUntilNearCompletion();
void ContinueToCompletion(); void ContinueToCompletion();
protected: protected:
// BrowsingDataRemover::CompletionInhibitor: // BrowsingDataRemover::CompletionInhibitor:
virtual void OnBrowsingDataRemoverWouldComplete( void OnBrowsingDataRemoverWouldComplete(
BrowsingDataRemover* remover, BrowsingDataRemover* remover,
const base::Closure& continue_to_completion) override; const base::Closure& continue_to_completion) override;
......
...@@ -133,37 +133,25 @@ struct StoragePartitionRemovalData { ...@@ -133,37 +133,25 @@ struct StoragePartitionRemovalData {
class TestStoragePartition : public StoragePartition { class TestStoragePartition : public StoragePartition {
public: public:
TestStoragePartition() {} TestStoragePartition() {}
virtual ~TestStoragePartition() {} ~TestStoragePartition() override {}
// content::StoragePartition implementation. // content::StoragePartition implementation.
virtual base::FilePath GetPath() override { return base::FilePath(); } base::FilePath GetPath() override { return base::FilePath(); }
virtual net::URLRequestContextGetter* GetURLRequestContext() override { net::URLRequestContextGetter* GetURLRequestContext() override { return NULL; }
net::URLRequestContextGetter* GetMediaURLRequestContext() override {
return NULL; return NULL;
} }
virtual net::URLRequestContextGetter* GetMediaURLRequestContext() override { storage::QuotaManager* GetQuotaManager() override { return NULL; }
return NULL; content::AppCacheService* GetAppCacheService() override { return NULL; }
} storage::FileSystemContext* GetFileSystemContext() override { return NULL; }
virtual storage::QuotaManager* GetQuotaManager() override { return NULL; } storage::DatabaseTracker* GetDatabaseTracker() override { return NULL; }
virtual content::AppCacheService* GetAppCacheService() override { content::DOMStorageContext* GetDOMStorageContext() override { return NULL; }
return NULL; content::IndexedDBContext* GetIndexedDBContext() override { return NULL; }
} content::ServiceWorkerContext* GetServiceWorkerContext() override {
virtual storage::FileSystemContext* GetFileSystemContext() override {
return NULL;
}
virtual storage::DatabaseTracker* GetDatabaseTracker() override {
return NULL;
}
virtual content::DOMStorageContext* GetDOMStorageContext() override {
return NULL;
}
virtual content::IndexedDBContext* GetIndexedDBContext() override {
return NULL;
}
virtual content::ServiceWorkerContext* GetServiceWorkerContext() override {
return NULL; return NULL;
} }
virtual void ClearDataForOrigin(uint32 remove_mask, void ClearDataForOrigin(uint32 remove_mask,
uint32 quota_storage_remove_mask, uint32 quota_storage_remove_mask,
const GURL& storage_origin, const GURL& storage_origin,
net::URLRequestContextGetter* rq_context, net::URLRequestContextGetter* rq_context,
...@@ -175,7 +163,7 @@ class TestStoragePartition : public StoragePartition { ...@@ -175,7 +163,7 @@ class TestStoragePartition : public StoragePartition {
callback)); callback));
} }
virtual void ClearData(uint32 remove_mask, void ClearData(uint32 remove_mask,
uint32 quota_storage_remove_mask, uint32 quota_storage_remove_mask,
const GURL& storage_origin, const GURL& storage_origin,
const OriginMatcherFunction& origin_matcher, const OriginMatcherFunction& origin_matcher,
...@@ -317,7 +305,7 @@ class RemoveChannelIDTester : public net::SSLConfigService::Observer { ...@@ -317,7 +305,7 @@ class RemoveChannelIDTester : public net::SSLConfigService::Observer {
ssl_config_service_->AddObserver(this); ssl_config_service_->AddObserver(this);
} }
virtual ~RemoveChannelIDTester() { ~RemoveChannelIDTester() override {
ssl_config_service_->RemoveObserver(this); ssl_config_service_->RemoveObserver(this);
} }
...@@ -361,9 +349,7 @@ class RemoveChannelIDTester : public net::SSLConfigService::Observer { ...@@ -361,9 +349,7 @@ class RemoveChannelIDTester : public net::SSLConfigService::Observer {
} }
// net::SSLConfigService::Observer implementation: // net::SSLConfigService::Observer implementation:
virtual void OnSSLConfigChanged() override { void OnSSLConfigChanged() override { ssl_config_changed_count_++; }
ssl_config_changed_count_++;
}
private: private:
static void GetAllChannelIDsCallback( static void GetAllChannelIDsCallback(
...@@ -441,7 +427,7 @@ class RemoveAutofillTester : public autofill::PersonalDataManagerObserver { ...@@ -441,7 +427,7 @@ class RemoveAutofillTester : public autofill::PersonalDataManagerObserver {
personal_data_manager_->AddObserver(this); personal_data_manager_->AddObserver(this);
} }
virtual ~RemoveAutofillTester() { ~RemoveAutofillTester() override {
personal_data_manager_->RemoveObserver(this); personal_data_manager_->RemoveObserver(this);
} }
...@@ -512,7 +498,7 @@ class RemoveAutofillTester : public autofill::PersonalDataManagerObserver { ...@@ -512,7 +498,7 @@ class RemoveAutofillTester : public autofill::PersonalDataManagerObserver {
} }
private: private:
virtual void OnPersonalDataChanged() override { void OnPersonalDataChanged() override {
base::MessageLoop::current()->Quit(); base::MessageLoop::current()->Quit();
} }
...@@ -597,25 +583,24 @@ class MockDomainReliabilityService : public DomainReliabilityService { ...@@ -597,25 +583,24 @@ class MockDomainReliabilityService : public DomainReliabilityService {
public: public:
MockDomainReliabilityService() : clear_count_(0) {} MockDomainReliabilityService() : clear_count_(0) {}
virtual ~MockDomainReliabilityService() {} ~MockDomainReliabilityService() override {}
virtual scoped_ptr<DomainReliabilityMonitor> CreateMonitor( scoped_ptr<DomainReliabilityMonitor> CreateMonitor(
scoped_refptr<base::SingleThreadTaskRunner> network_task_runner) scoped_refptr<base::SingleThreadTaskRunner> network_task_runner)
override { override {
NOTREACHED(); NOTREACHED();
return scoped_ptr<DomainReliabilityMonitor>(); return scoped_ptr<DomainReliabilityMonitor>();
} }
virtual void ClearBrowsingData(DomainReliabilityClearMode clear_mode, void ClearBrowsingData(DomainReliabilityClearMode clear_mode,
const base::Closure& callback) override { const base::Closure& callback) override {
clear_count_++; clear_count_++;
last_clear_mode_ = clear_mode; last_clear_mode_ = clear_mode;
callback.Run(); callback.Run();
} }
virtual void GetWebUIData( void GetWebUIData(const base::Callback<void(scoped_ptr<base::Value>)>&
const base::Callback<void(scoped_ptr<base::Value>)>& callback) callback) const override {
const override {
NOTREACHED(); NOTREACHED();
} }
...@@ -638,7 +623,7 @@ struct TestingDomainReliabilityServiceFactoryUserData ...@@ -638,7 +623,7 @@ struct TestingDomainReliabilityServiceFactoryUserData
: context(context), : context(context),
service(service), service(service),
attached(false) {} attached(false) {}
virtual ~TestingDomainReliabilityServiceFactoryUserData() {} ~TestingDomainReliabilityServiceFactoryUserData() override {}
content::BrowserContext* const context; content::BrowserContext* const context;
MockDomainReliabilityService* const service; MockDomainReliabilityService* const service;
...@@ -801,7 +786,7 @@ class BrowsingDataRemoverTest : public testing::Test, ...@@ -801,7 +786,7 @@ class BrowsingDataRemoverTest : public testing::Test,
} }
// content::NotificationObserver implementation. // content::NotificationObserver implementation.
virtual void Observe(int type, void Observe(int type,
const content::NotificationSource& source, const content::NotificationSource& source,
const content::NotificationDetails& details) override { const content::NotificationDetails& details) override {
DCHECK_EQ(type, chrome::NOTIFICATION_BROWSING_DATA_REMOVED); DCHECK_EQ(type, chrome::NOTIFICATION_BROWSING_DATA_REMOVED);
......
...@@ -126,12 +126,12 @@ class CannedBrowsingDataServiceWorkerHelper ...@@ -126,12 +126,12 @@ class CannedBrowsingDataServiceWorkerHelper
GetServiceWorkerUsageInfo() const; GetServiceWorkerUsageInfo() const;
// BrowsingDataServiceWorkerHelper methods. // BrowsingDataServiceWorkerHelper methods.
virtual void StartFetching(const base::Callback<void( void StartFetching(const base::Callback<void(
const std::list<content::ServiceWorkerUsageInfo>&)>& callback) override; const std::list<content::ServiceWorkerUsageInfo>&)>& callback) override;
virtual void DeleteServiceWorkers(const GURL& origin) override; void DeleteServiceWorkers(const GURL& origin) override;
private: private:
virtual ~CannedBrowsingDataServiceWorkerHelper(); ~CannedBrowsingDataServiceWorkerHelper() override;
std::set<PendingServiceWorkerUsageInfo> pending_service_worker_info_; std::set<PendingServiceWorkerUsageInfo> pending_service_worker_info_;
......
...@@ -148,7 +148,7 @@ class CookieTreeNode : public ui::TreeNode<CookieTreeNode> { ...@@ -148,7 +148,7 @@ class CookieTreeNode : public ui::TreeNode<CookieTreeNode> {
CookieTreeNode() {} CookieTreeNode() {}
explicit CookieTreeNode(const base::string16& title) explicit CookieTreeNode(const base::string16& title)
: ui::TreeNode<CookieTreeNode>(title) {} : ui::TreeNode<CookieTreeNode>(title) {}
virtual ~CookieTreeNode() {} ~CookieTreeNode() override {}
// Delete backend storage for this node, and any children nodes. (E.g. delete // Delete backend storage for this node, and any children nodes. (E.g. delete
// the cookie from CookieMonster, clear the database, and so forth.) // the cookie from CookieMonster, clear the database, and so forth.)
...@@ -173,13 +173,13 @@ class CookieTreeNode : public ui::TreeNode<CookieTreeNode> { ...@@ -173,13 +173,13 @@ class CookieTreeNode : public ui::TreeNode<CookieTreeNode> {
class CookieTreeRootNode : public CookieTreeNode { class CookieTreeRootNode : public CookieTreeNode {
public: public:
explicit CookieTreeRootNode(CookiesTreeModel* model); explicit CookieTreeRootNode(CookiesTreeModel* model);
virtual ~CookieTreeRootNode(); ~CookieTreeRootNode() override;
CookieTreeHostNode* GetOrCreateHostNode(const GURL& url); CookieTreeHostNode* GetOrCreateHostNode(const GURL& url);
// CookieTreeNode methods: // CookieTreeNode methods:
virtual CookiesTreeModel* GetModel() const override; CookiesTreeModel* GetModel() const override;
virtual DetailedInfo GetDetailedInfo() const override; DetailedInfo GetDetailedInfo() const override;
private: private:
CookiesTreeModel* model_; CookiesTreeModel* model_;
...@@ -194,10 +194,10 @@ class CookieTreeHostNode : public CookieTreeNode { ...@@ -194,10 +194,10 @@ class CookieTreeHostNode : public CookieTreeNode {
static base::string16 TitleForUrl(const GURL& url); static base::string16 TitleForUrl(const GURL& url);
explicit CookieTreeHostNode(const GURL& url); explicit CookieTreeHostNode(const GURL& url);
virtual ~CookieTreeHostNode(); ~CookieTreeHostNode() override;
// CookieTreeNode methods: // CookieTreeNode methods:
virtual DetailedInfo GetDetailedInfo() const override; DetailedInfo GetDetailedInfo() const override;
// CookieTreeHostNode methods: // CookieTreeHostNode methods:
CookieTreeCookiesNode* GetOrCreateCookiesNode(); CookieTreeCookiesNode* GetOrCreateCookiesNode();
...@@ -260,11 +260,11 @@ class CookieTreeCookieNode : public CookieTreeNode { ...@@ -260,11 +260,11 @@ class CookieTreeCookieNode : public CookieTreeNode {
// CookieTreeCookieNode is valid. // CookieTreeCookieNode is valid.
explicit CookieTreeCookieNode( explicit CookieTreeCookieNode(
std::list<net::CanonicalCookie>::iterator cookie); std::list<net::CanonicalCookie>::iterator cookie);
virtual ~CookieTreeCookieNode(); ~CookieTreeCookieNode() override;
// CookieTreeNode methods: // CookieTreeNode methods:
virtual void DeleteStoredObjects() override; void DeleteStoredObjects() override;
virtual DetailedInfo GetDetailedInfo() const override; DetailedInfo GetDetailedInfo() const override;
private: private:
// cookie_ is expected to remain valid as long as the CookieTreeCookieNode is // cookie_ is expected to remain valid as long as the CookieTreeCookieNode is
...@@ -277,9 +277,9 @@ class CookieTreeCookieNode : public CookieTreeNode { ...@@ -277,9 +277,9 @@ class CookieTreeCookieNode : public CookieTreeNode {
class CookieTreeCookiesNode : public CookieTreeNode { class CookieTreeCookiesNode : public CookieTreeNode {
public: public:
CookieTreeCookiesNode(); CookieTreeCookiesNode();
virtual ~CookieTreeCookiesNode(); ~CookieTreeCookiesNode() override;
virtual DetailedInfo GetDetailedInfo() const override; DetailedInfo GetDetailedInfo() const override;
void AddCookieNode(CookieTreeCookieNode* child) { void AddCookieNode(CookieTreeCookieNode* child) {
AddChildSortedByTitle(child); AddChildSortedByTitle(child);
...@@ -299,10 +299,10 @@ class CookieTreeAppCacheNode : public CookieTreeNode { ...@@ -299,10 +299,10 @@ class CookieTreeAppCacheNode : public CookieTreeNode {
explicit CookieTreeAppCacheNode( explicit CookieTreeAppCacheNode(
const GURL& origin_url, const GURL& origin_url,
std::list<content::AppCacheInfo>::iterator appcache_info); std::list<content::AppCacheInfo>::iterator appcache_info);
virtual ~CookieTreeAppCacheNode(); ~CookieTreeAppCacheNode() override;
virtual void DeleteStoredObjects() override; void DeleteStoredObjects() override;
virtual DetailedInfo GetDetailedInfo() const override; DetailedInfo GetDetailedInfo() const override;
private: private:
GURL origin_url_; GURL origin_url_;
...@@ -313,9 +313,9 @@ class CookieTreeAppCacheNode : public CookieTreeNode { ...@@ -313,9 +313,9 @@ class CookieTreeAppCacheNode : public CookieTreeNode {
class CookieTreeAppCachesNode : public CookieTreeNode { class CookieTreeAppCachesNode : public CookieTreeNode {
public: public:
CookieTreeAppCachesNode(); CookieTreeAppCachesNode();
virtual ~CookieTreeAppCachesNode(); ~CookieTreeAppCachesNode() override;
virtual DetailedInfo GetDetailedInfo() const override; DetailedInfo GetDetailedInfo() const override;
void AddAppCacheNode(CookieTreeAppCacheNode* child) { void AddAppCacheNode(CookieTreeAppCacheNode* child) {
AddChildSortedByTitle(child); AddChildSortedByTitle(child);
...@@ -335,10 +335,10 @@ class CookieTreeDatabaseNode : public CookieTreeNode { ...@@ -335,10 +335,10 @@ class CookieTreeDatabaseNode : public CookieTreeNode {
explicit CookieTreeDatabaseNode( explicit CookieTreeDatabaseNode(
std::list<BrowsingDataDatabaseHelper::DatabaseInfo>::iterator std::list<BrowsingDataDatabaseHelper::DatabaseInfo>::iterator
database_info); database_info);
virtual ~CookieTreeDatabaseNode(); ~CookieTreeDatabaseNode() override;
virtual void DeleteStoredObjects() override; void DeleteStoredObjects() override;
virtual DetailedInfo GetDetailedInfo() const override; DetailedInfo GetDetailedInfo() const override;
private: private:
// database_info_ is expected to remain valid as long as the // database_info_ is expected to remain valid as long as the
...@@ -352,9 +352,9 @@ class CookieTreeDatabaseNode : public CookieTreeNode { ...@@ -352,9 +352,9 @@ class CookieTreeDatabaseNode : public CookieTreeNode {
class CookieTreeDatabasesNode : public CookieTreeNode { class CookieTreeDatabasesNode : public CookieTreeNode {
public: public:
CookieTreeDatabasesNode(); CookieTreeDatabasesNode();
virtual ~CookieTreeDatabasesNode(); ~CookieTreeDatabasesNode() override;
virtual DetailedInfo GetDetailedInfo() const override; DetailedInfo GetDetailedInfo() const override;
void AddDatabaseNode(CookieTreeDatabaseNode* child) { void AddDatabaseNode(CookieTreeDatabaseNode* child) {
AddChildSortedByTitle(child); AddChildSortedByTitle(child);
...@@ -374,10 +374,10 @@ class CookieTreeFileSystemNode : public CookieTreeNode { ...@@ -374,10 +374,10 @@ class CookieTreeFileSystemNode : public CookieTreeNode {
explicit CookieTreeFileSystemNode( explicit CookieTreeFileSystemNode(
std::list<BrowsingDataFileSystemHelper::FileSystemInfo>::iterator std::list<BrowsingDataFileSystemHelper::FileSystemInfo>::iterator
file_system_info); file_system_info);
virtual ~CookieTreeFileSystemNode(); ~CookieTreeFileSystemNode() override;
virtual void DeleteStoredObjects() override; void DeleteStoredObjects() override;
virtual DetailedInfo GetDetailedInfo() const override; DetailedInfo GetDetailedInfo() const override;
private: private:
// file_system_info_ expected to remain valid as long as the // file_system_info_ expected to remain valid as long as the
...@@ -391,9 +391,9 @@ class CookieTreeFileSystemNode : public CookieTreeNode { ...@@ -391,9 +391,9 @@ class CookieTreeFileSystemNode : public CookieTreeNode {
class CookieTreeFileSystemsNode : public CookieTreeNode { class CookieTreeFileSystemsNode : public CookieTreeNode {
public: public:
CookieTreeFileSystemsNode(); CookieTreeFileSystemsNode();
virtual ~CookieTreeFileSystemsNode(); ~CookieTreeFileSystemsNode() override;
virtual DetailedInfo GetDetailedInfo() const override; DetailedInfo GetDetailedInfo() const override;
void AddFileSystemNode(CookieTreeFileSystemNode* child) { void AddFileSystemNode(CookieTreeFileSystemNode* child) {
AddChildSortedByTitle(child); AddChildSortedByTitle(child);
...@@ -411,11 +411,11 @@ class CookieTreeLocalStorageNode : public CookieTreeNode { ...@@ -411,11 +411,11 @@ class CookieTreeLocalStorageNode : public CookieTreeNode {
explicit CookieTreeLocalStorageNode( explicit CookieTreeLocalStorageNode(
std::list<BrowsingDataLocalStorageHelper::LocalStorageInfo>::iterator std::list<BrowsingDataLocalStorageHelper::LocalStorageInfo>::iterator
local_storage_info); local_storage_info);
virtual ~CookieTreeLocalStorageNode(); ~CookieTreeLocalStorageNode() override;
// CookieTreeNode methods: // CookieTreeNode methods:
virtual void DeleteStoredObjects() override; void DeleteStoredObjects() override;
virtual DetailedInfo GetDetailedInfo() const override; DetailedInfo GetDetailedInfo() const override;
private: private:
// local_storage_info_ is expected to remain valid as long as the // local_storage_info_ is expected to remain valid as long as the
...@@ -429,9 +429,9 @@ class CookieTreeLocalStorageNode : public CookieTreeNode { ...@@ -429,9 +429,9 @@ class CookieTreeLocalStorageNode : public CookieTreeNode {
class CookieTreeLocalStoragesNode : public CookieTreeNode { class CookieTreeLocalStoragesNode : public CookieTreeNode {
public: public:
CookieTreeLocalStoragesNode(); CookieTreeLocalStoragesNode();
virtual ~CookieTreeLocalStoragesNode(); ~CookieTreeLocalStoragesNode() override;
virtual DetailedInfo GetDetailedInfo() const override; DetailedInfo GetDetailedInfo() const override;
void AddLocalStorageNode(CookieTreeLocalStorageNode* child) { void AddLocalStorageNode(CookieTreeLocalStorageNode* child) {
AddChildSortedByTitle(child); AddChildSortedByTitle(child);
...@@ -450,11 +450,11 @@ class CookieTreeSessionStorageNode : public CookieTreeNode { ...@@ -450,11 +450,11 @@ class CookieTreeSessionStorageNode : public CookieTreeNode {
explicit CookieTreeSessionStorageNode( explicit CookieTreeSessionStorageNode(
std::list<BrowsingDataLocalStorageHelper::LocalStorageInfo>::iterator std::list<BrowsingDataLocalStorageHelper::LocalStorageInfo>::iterator
session_storage_info); session_storage_info);
virtual ~CookieTreeSessionStorageNode(); ~CookieTreeSessionStorageNode() override;
// CookieTreeNode methods: // CookieTreeNode methods:
virtual void DeleteStoredObjects() override; void DeleteStoredObjects() override;
virtual DetailedInfo GetDetailedInfo() const override; DetailedInfo GetDetailedInfo() const override;
private: private:
// session_storage_info_ is expected to remain valid as long as the // session_storage_info_ is expected to remain valid as long as the
...@@ -468,9 +468,9 @@ class CookieTreeSessionStorageNode : public CookieTreeNode { ...@@ -468,9 +468,9 @@ class CookieTreeSessionStorageNode : public CookieTreeNode {
class CookieTreeSessionStoragesNode : public CookieTreeNode { class CookieTreeSessionStoragesNode : public CookieTreeNode {
public: public:
CookieTreeSessionStoragesNode(); CookieTreeSessionStoragesNode();
virtual ~CookieTreeSessionStoragesNode(); ~CookieTreeSessionStoragesNode() override;
virtual DetailedInfo GetDetailedInfo() const override; DetailedInfo GetDetailedInfo() const override;
void AddSessionStorageNode(CookieTreeSessionStorageNode* child) { void AddSessionStorageNode(CookieTreeSessionStorageNode* child) {
AddChildSortedByTitle(child); AddChildSortedByTitle(child);
...@@ -488,11 +488,11 @@ class CookieTreeIndexedDBNode : public CookieTreeNode { ...@@ -488,11 +488,11 @@ class CookieTreeIndexedDBNode : public CookieTreeNode {
explicit CookieTreeIndexedDBNode( explicit CookieTreeIndexedDBNode(
std::list<content::IndexedDBInfo>::iterator std::list<content::IndexedDBInfo>::iterator
indexed_db_info); indexed_db_info);
virtual ~CookieTreeIndexedDBNode(); ~CookieTreeIndexedDBNode() override;
// CookieTreeNode methods: // CookieTreeNode methods:
virtual void DeleteStoredObjects() override; void DeleteStoredObjects() override;
virtual DetailedInfo GetDetailedInfo() const override; DetailedInfo GetDetailedInfo() const override;
private: private:
// indexed_db_info_ is expected to remain valid as long as the // indexed_db_info_ is expected to remain valid as long as the
...@@ -506,9 +506,9 @@ class CookieTreeIndexedDBNode : public CookieTreeNode { ...@@ -506,9 +506,9 @@ class CookieTreeIndexedDBNode : public CookieTreeNode {
class CookieTreeIndexedDBsNode : public CookieTreeNode { class CookieTreeIndexedDBsNode : public CookieTreeNode {
public: public:
CookieTreeIndexedDBsNode(); CookieTreeIndexedDBsNode();
virtual ~CookieTreeIndexedDBsNode(); ~CookieTreeIndexedDBsNode() override;
virtual DetailedInfo GetDetailedInfo() const override; DetailedInfo GetDetailedInfo() const override;
void AddIndexedDBNode(CookieTreeIndexedDBNode* child) { void AddIndexedDBNode(CookieTreeIndexedDBNode* child) {
AddChildSortedByTitle(child); AddChildSortedByTitle(child);
...@@ -525,10 +525,10 @@ class CookieTreeQuotaNode : public CookieTreeNode { ...@@ -525,10 +525,10 @@ class CookieTreeQuotaNode : public CookieTreeNode {
// is valid. // is valid.
explicit CookieTreeQuotaNode( explicit CookieTreeQuotaNode(
std::list<BrowsingDataQuotaHelper::QuotaInfo>::iterator quota_info); std::list<BrowsingDataQuotaHelper::QuotaInfo>::iterator quota_info);
virtual ~CookieTreeQuotaNode(); ~CookieTreeQuotaNode() override;
virtual void DeleteStoredObjects() override; void DeleteStoredObjects() override;
virtual DetailedInfo GetDetailedInfo() const override; DetailedInfo GetDetailedInfo() const override;
private: private:
// quota_info_ is expected to remain valid as long as the CookieTreeQuotaNode // quota_info_ is expected to remain valid as long as the CookieTreeQuotaNode
...@@ -547,11 +547,11 @@ class CookieTreeChannelIDNode : public CookieTreeNode { ...@@ -547,11 +547,11 @@ class CookieTreeChannelIDNode : public CookieTreeNode {
// CookieTreeChannelIDNode is valid. // CookieTreeChannelIDNode is valid.
explicit CookieTreeChannelIDNode( explicit CookieTreeChannelIDNode(
net::ChannelIDStore::ChannelIDList::iterator cert); net::ChannelIDStore::ChannelIDList::iterator cert);
virtual ~CookieTreeChannelIDNode(); ~CookieTreeChannelIDNode() override;
// CookieTreeNode methods: // CookieTreeNode methods:
virtual void DeleteStoredObjects() override; void DeleteStoredObjects() override;
virtual DetailedInfo GetDetailedInfo() const override; DetailedInfo GetDetailedInfo() const override;
private: private:
// channel_id_ is expected to remain valid as long as the // channel_id_ is expected to remain valid as long as the
...@@ -564,9 +564,9 @@ class CookieTreeChannelIDNode : public CookieTreeNode { ...@@ -564,9 +564,9 @@ class CookieTreeChannelIDNode : public CookieTreeNode {
class CookieTreeChannelIDsNode : public CookieTreeNode { class CookieTreeChannelIDsNode : public CookieTreeNode {
public: public:
CookieTreeChannelIDsNode(); CookieTreeChannelIDsNode();
virtual ~CookieTreeChannelIDsNode(); ~CookieTreeChannelIDsNode() override;
virtual DetailedInfo GetDetailedInfo() const override; DetailedInfo GetDetailedInfo() const override;
void AddChannelIDNode(CookieTreeChannelIDNode* child) { void AddChannelIDNode(CookieTreeChannelIDNode* child) {
AddChildSortedByTitle(child); AddChildSortedByTitle(child);
...@@ -583,11 +583,11 @@ class CookieTreeServiceWorkerNode : public CookieTreeNode { ...@@ -583,11 +583,11 @@ class CookieTreeServiceWorkerNode : public CookieTreeNode {
// CookieTreeServiceWorkerNode is valid. // CookieTreeServiceWorkerNode is valid.
explicit CookieTreeServiceWorkerNode( explicit CookieTreeServiceWorkerNode(
std::list<content::ServiceWorkerUsageInfo>::iterator service_worker_info); std::list<content::ServiceWorkerUsageInfo>::iterator service_worker_info);
virtual ~CookieTreeServiceWorkerNode(); ~CookieTreeServiceWorkerNode() override;
// CookieTreeNode methods: // CookieTreeNode methods:
virtual void DeleteStoredObjects() override; void DeleteStoredObjects() override;
virtual DetailedInfo GetDetailedInfo() const override; DetailedInfo GetDetailedInfo() const override;
private: private:
// service_worker_info_ is expected to remain valid as long as the // service_worker_info_ is expected to remain valid as long as the
...@@ -600,9 +600,9 @@ class CookieTreeServiceWorkerNode : public CookieTreeNode { ...@@ -600,9 +600,9 @@ class CookieTreeServiceWorkerNode : public CookieTreeNode {
class CookieTreeServiceWorkersNode : public CookieTreeNode { class CookieTreeServiceWorkersNode : public CookieTreeNode {
public: public:
CookieTreeServiceWorkersNode(); CookieTreeServiceWorkersNode();
virtual ~CookieTreeServiceWorkersNode(); ~CookieTreeServiceWorkersNode() override;
virtual DetailedInfo GetDetailedInfo() const override; DetailedInfo GetDetailedInfo() const override;
void AddServiceWorkerNode(CookieTreeServiceWorkerNode* child) { void AddServiceWorkerNode(CookieTreeServiceWorkerNode* child) {
AddChildSortedByTitle(child); AddChildSortedByTitle(child);
...@@ -616,11 +616,11 @@ class CookieTreeServiceWorkersNode : public CookieTreeNode { ...@@ -616,11 +616,11 @@ class CookieTreeServiceWorkersNode : public CookieTreeNode {
class CookieTreeFlashLSONode : public CookieTreeNode { class CookieTreeFlashLSONode : public CookieTreeNode {
public: public:
explicit CookieTreeFlashLSONode(const std::string& domain); explicit CookieTreeFlashLSONode(const std::string& domain);
virtual ~CookieTreeFlashLSONode(); ~CookieTreeFlashLSONode() override;
// CookieTreeNode methods: // CookieTreeNode methods:
virtual void DeleteStoredObjects() override; void DeleteStoredObjects() override;
virtual DetailedInfo GetDetailedInfo() const override; DetailedInfo GetDetailedInfo() const override;
private: private:
std::string domain_; std::string domain_;
...@@ -634,7 +634,7 @@ class CookiesTreeModel : public ui::TreeNodeModel<CookieTreeNode> { ...@@ -634,7 +634,7 @@ class CookiesTreeModel : public ui::TreeNodeModel<CookieTreeNode> {
CookiesTreeModel(LocalDataContainer* data_container, CookiesTreeModel(LocalDataContainer* data_container,
ExtensionSpecialStoragePolicy* special_storage_policy, ExtensionSpecialStoragePolicy* special_storage_policy,
bool group_by_cookie_source); bool group_by_cookie_source);
virtual ~CookiesTreeModel(); ~CookiesTreeModel() override;
// Because non-cookie nodes are fetched in a background thread, they are not // Because non-cookie nodes are fetched in a background thread, they are not
// present at the time the Model is created. The Model then notifies its // present at the time the Model is created. The Model then notifies its
...@@ -667,12 +667,12 @@ class CookiesTreeModel : public ui::TreeNodeModel<CookieTreeNode> { ...@@ -667,12 +667,12 @@ class CookiesTreeModel : public ui::TreeNodeModel<CookieTreeNode> {
// ui::TreeModel methods: // ui::TreeModel methods:
// Returns the set of icons for the nodes in the tree. You only need override // Returns the set of icons for the nodes in the tree. You only need override
// this if you don't want to use the default folder icons. // this if you don't want to use the default folder icons.
virtual void GetIcons(std::vector<gfx::ImageSkia>* icons) override; void GetIcons(std::vector<gfx::ImageSkia>* icons) override;
// Returns the index of the icon to use for |node|. Return -1 to use the // Returns the index of the icon to use for |node|. Return -1 to use the
// default icon. The index is relative to the list of icons returned from // default icon. The index is relative to the list of icons returned from
// GetIcons. // GetIcons.
virtual int GetIconIndex(ui::TreeModelNode* node) override; int GetIconIndex(ui::TreeModelNode* node) override;
// CookiesTreeModel methods: // CookiesTreeModel methods:
void DeleteAllStoredObjects(); void DeleteAllStoredObjects();
......
...@@ -14,11 +14,11 @@ class MockBrowsingDataAppCacheHelper ...@@ -14,11 +14,11 @@ class MockBrowsingDataAppCacheHelper
explicit MockBrowsingDataAppCacheHelper( explicit MockBrowsingDataAppCacheHelper(
content::BrowserContext* browser_context); content::BrowserContext* browser_context);
virtual void StartFetching(const base::Closure& completion_callback) override; void StartFetching(const base::Closure& completion_callback) override;
virtual void DeleteAppCacheGroup(const GURL& manifest_url) override; void DeleteAppCacheGroup(const GURL& manifest_url) override;
private: private:
virtual ~MockBrowsingDataAppCacheHelper(); ~MockBrowsingDataAppCacheHelper() override;
DISALLOW_COPY_AND_ASSIGN(MockBrowsingDataAppCacheHelper); DISALLOW_COPY_AND_ASSIGN(MockBrowsingDataAppCacheHelper);
}; };
......
...@@ -17,8 +17,8 @@ class MockBrowsingDataChannelIDHelper ...@@ -17,8 +17,8 @@ class MockBrowsingDataChannelIDHelper
MockBrowsingDataChannelIDHelper(); MockBrowsingDataChannelIDHelper();
// BrowsingDataChannelIDHelper methods. // BrowsingDataChannelIDHelper methods.
virtual void StartFetching(const FetchResultCallback& callback) override; void StartFetching(const FetchResultCallback& callback) override;
virtual void DeleteChannelID(const std::string& server_id) override; void DeleteChannelID(const std::string& server_id) override;
// Adds a channel_id sample. // Adds a channel_id sample.
void AddChannelIDSample(const std::string& server_id); void AddChannelIDSample(const std::string& server_id);
...@@ -34,7 +34,7 @@ class MockBrowsingDataChannelIDHelper ...@@ -34,7 +34,7 @@ class MockBrowsingDataChannelIDHelper
bool AllDeleted(); bool AllDeleted();
private: private:
virtual ~MockBrowsingDataChannelIDHelper(); ~MockBrowsingDataChannelIDHelper() override;
FetchResultCallback callback_; FetchResultCallback callback_;
......
...@@ -18,9 +18,9 @@ class MockBrowsingDataCookieHelper : public BrowsingDataCookieHelper { ...@@ -18,9 +18,9 @@ class MockBrowsingDataCookieHelper : public BrowsingDataCookieHelper {
net::URLRequestContextGetter* request_context_getter); net::URLRequestContextGetter* request_context_getter);
// BrowsingDataCookieHelper methods. // BrowsingDataCookieHelper methods.
virtual void StartFetching( void StartFetching(
const net::CookieMonster::GetCookieListCallback &callback) override; const net::CookieMonster::GetCookieListCallback& callback) override;
virtual void DeleteCookie(const net::CanonicalCookie& cookie) override; void DeleteCookie(const net::CanonicalCookie& cookie) override;
// Adds some cookie samples. // Adds some cookie samples.
void AddCookieSamples(const GURL& url, const std::string& cookie_line); void AddCookieSamples(const GURL& url, const std::string& cookie_line);
...@@ -36,7 +36,7 @@ class MockBrowsingDataCookieHelper : public BrowsingDataCookieHelper { ...@@ -36,7 +36,7 @@ class MockBrowsingDataCookieHelper : public BrowsingDataCookieHelper {
bool AllDeleted(); bool AllDeleted();
private: private:
virtual ~MockBrowsingDataCookieHelper(); ~MockBrowsingDataCookieHelper() override;
net::CookieMonster::GetCookieListCallback callback_; net::CookieMonster::GetCookieListCallback callback_;
......
...@@ -19,11 +19,10 @@ class MockBrowsingDataDatabaseHelper : public BrowsingDataDatabaseHelper { ...@@ -19,11 +19,10 @@ class MockBrowsingDataDatabaseHelper : public BrowsingDataDatabaseHelper {
public: public:
explicit MockBrowsingDataDatabaseHelper(Profile* profile); explicit MockBrowsingDataDatabaseHelper(Profile* profile);
virtual void StartFetching( void StartFetching(const base::Callback<void(const std::list<DatabaseInfo>&)>&
const base::Callback<void(const std::list<DatabaseInfo>&)>& callback) callback) override;
override;
virtual void DeleteDatabase(const std::string& origin, void DeleteDatabase(const std::string& origin,
const std::string& name) override; const std::string& name) override;
// Adds some DatabaseInfo samples. // Adds some DatabaseInfo samples.
...@@ -44,7 +43,7 @@ class MockBrowsingDataDatabaseHelper : public BrowsingDataDatabaseHelper { ...@@ -44,7 +43,7 @@ class MockBrowsingDataDatabaseHelper : public BrowsingDataDatabaseHelper {
std::string last_deleted_db_; std::string last_deleted_db_;
private: private:
virtual ~MockBrowsingDataDatabaseHelper(); ~MockBrowsingDataDatabaseHelper() override;
base::Callback<void(const std::list<DatabaseInfo>&)> callback_; base::Callback<void(const std::list<DatabaseInfo>&)> callback_;
......
...@@ -21,9 +21,10 @@ class MockBrowsingDataFileSystemHelper : public BrowsingDataFileSystemHelper { ...@@ -21,9 +21,10 @@ class MockBrowsingDataFileSystemHelper : public BrowsingDataFileSystemHelper {
explicit MockBrowsingDataFileSystemHelper(Profile* profile); explicit MockBrowsingDataFileSystemHelper(Profile* profile);
// BrowsingDataFileSystemHelper implementation. // BrowsingDataFileSystemHelper implementation.
virtual void StartFetching(const base::Callback< void StartFetching(
void(const std::list<FileSystemInfo>&)>& callback) override; const base::Callback<void(const std::list<FileSystemInfo>&)>& callback)
virtual void DeleteFileSystemOrigin(const GURL& origin) override; override;
void DeleteFileSystemOrigin(const GURL& origin) override;
// Adds a specific filesystem. // Adds a specific filesystem.
void AddFileSystem(const GURL& origin, void AddFileSystem(const GURL& origin,
...@@ -47,7 +48,7 @@ class MockBrowsingDataFileSystemHelper : public BrowsingDataFileSystemHelper { ...@@ -47,7 +48,7 @@ class MockBrowsingDataFileSystemHelper : public BrowsingDataFileSystemHelper {
GURL last_deleted_origin_; GURL last_deleted_origin_;
private: private:
virtual ~MockBrowsingDataFileSystemHelper(); ~MockBrowsingDataFileSystemHelper() override;
base::Callback<void(const std::list<FileSystemInfo>&)> callback_; base::Callback<void(const std::list<FileSystemInfo>&)> callback_;
......
...@@ -17,9 +17,8 @@ class MockBrowsingDataFlashLSOHelper : public BrowsingDataFlashLSOHelper { ...@@ -17,9 +17,8 @@ class MockBrowsingDataFlashLSOHelper : public BrowsingDataFlashLSOHelper {
content::BrowserContext* browser_context); content::BrowserContext* browser_context);
// BrowsingDataFlashLSOHelper implementation: // BrowsingDataFlashLSOHelper implementation:
virtual void StartFetching( void StartFetching(const GetSitesWithFlashDataCallback& callback) override;
const GetSitesWithFlashDataCallback& callback) override; void DeleteFlashLSOsForSite(const std::string& site) override;
virtual void DeleteFlashLSOsForSite(const std::string& site) override;
// Adds a domain sample. // Adds a domain sample.
void AddFlashLSODomain(const std::string& domain); void AddFlashLSODomain(const std::string& domain);
...@@ -31,7 +30,7 @@ class MockBrowsingDataFlashLSOHelper : public BrowsingDataFlashLSOHelper { ...@@ -31,7 +30,7 @@ class MockBrowsingDataFlashLSOHelper : public BrowsingDataFlashLSOHelper {
bool AllDeleted(); bool AllDeleted();
private: private:
virtual ~MockBrowsingDataFlashLSOHelper(); ~MockBrowsingDataFlashLSOHelper() override;
GetSitesWithFlashDataCallback callback_; GetSitesWithFlashDataCallback callback_;
......
...@@ -36,13 +36,12 @@ class MockBrowsingDataIndexedDBHelper ...@@ -36,13 +36,12 @@ class MockBrowsingDataIndexedDBHelper
bool AllDeleted(); bool AllDeleted();
// BrowsingDataIndexedDBHelper. // BrowsingDataIndexedDBHelper.
virtual void StartFetching( void StartFetching(const base::Callback<
const base::Callback<void(const std::list<content::IndexedDBInfo>&)>& void(const std::list<content::IndexedDBInfo>&)>& callback) override;
callback) override; void DeleteIndexedDB(const GURL& origin) override;
virtual void DeleteIndexedDB(const GURL& origin) override;
private: private:
virtual ~MockBrowsingDataIndexedDBHelper(); ~MockBrowsingDataIndexedDBHelper() override;
base::Callback<void(const std::list<content::IndexedDBInfo>&)> callback_; base::Callback<void(const std::list<content::IndexedDBInfo>&)> callback_;
std::map<GURL, bool> origins_; std::map<GURL, bool> origins_;
......
...@@ -21,10 +21,10 @@ class MockBrowsingDataLocalStorageHelper ...@@ -21,10 +21,10 @@ class MockBrowsingDataLocalStorageHelper
explicit MockBrowsingDataLocalStorageHelper(Profile* profile); explicit MockBrowsingDataLocalStorageHelper(Profile* profile);
// BrowsingDataLocalStorageHelper implementation. // BrowsingDataLocalStorageHelper implementation.
virtual void StartFetching( void StartFetching(
const base::Callback<void(const std::list<LocalStorageInfo>&)>& callback) const base::Callback<void(const std::list<LocalStorageInfo>&)>& callback)
override; override;
virtual void DeleteOrigin(const GURL& origin) override; void DeleteOrigin(const GURL& origin) override;
// Adds some LocalStorageInfo samples. // Adds some LocalStorageInfo samples.
void AddLocalStorageSamples(); void AddLocalStorageSamples();
...@@ -42,7 +42,7 @@ class MockBrowsingDataLocalStorageHelper ...@@ -42,7 +42,7 @@ class MockBrowsingDataLocalStorageHelper
GURL last_deleted_origin_; GURL last_deleted_origin_;
private: private:
virtual ~MockBrowsingDataLocalStorageHelper(); ~MockBrowsingDataLocalStorageHelper() override;
base::Callback<void(const std::list<LocalStorageInfo>&)> callback_; base::Callback<void(const std::list<LocalStorageInfo>&)> callback_;
......
...@@ -15,8 +15,8 @@ class MockBrowsingDataQuotaHelper : public BrowsingDataQuotaHelper { ...@@ -15,8 +15,8 @@ class MockBrowsingDataQuotaHelper : public BrowsingDataQuotaHelper {
public: public:
explicit MockBrowsingDataQuotaHelper(Profile* profile); explicit MockBrowsingDataQuotaHelper(Profile* profile);
virtual void StartFetching(const FetchResultCallback& callback) override; void StartFetching(const FetchResultCallback& callback) override;
virtual void RevokeHostQuota(const std::string& host) override; void RevokeHostQuota(const std::string& host) override;
void AddHost(const std::string& host, void AddHost(const std::string& host,
int64 temporary_usage, int64 temporary_usage,
...@@ -26,7 +26,7 @@ class MockBrowsingDataQuotaHelper : public BrowsingDataQuotaHelper { ...@@ -26,7 +26,7 @@ class MockBrowsingDataQuotaHelper : public BrowsingDataQuotaHelper {
void Notify(); void Notify();
private: private:
virtual ~MockBrowsingDataQuotaHelper(); ~MockBrowsingDataQuotaHelper() override;
FetchResultCallback callback_; FetchResultCallback callback_;
std::list<QuotaInfo> response_; std::list<QuotaInfo> response_;
......
...@@ -36,12 +36,12 @@ class MockBrowsingDataServiceWorkerHelper ...@@ -36,12 +36,12 @@ class MockBrowsingDataServiceWorkerHelper
bool AllDeleted(); bool AllDeleted();
// BrowsingDataServiceWorkerHelper. // BrowsingDataServiceWorkerHelper.
virtual void StartFetching(const base::Callback<void( void StartFetching(const base::Callback<void(
const std::list<content::ServiceWorkerUsageInfo>&)>& callback) override; const std::list<content::ServiceWorkerUsageInfo>&)>& callback) override;
virtual void DeleteServiceWorkers(const GURL& origin) override; void DeleteServiceWorkers(const GURL& origin) override;
private: private:
virtual ~MockBrowsingDataServiceWorkerHelper(); ~MockBrowsingDataServiceWorkerHelper() override;
base::Callback<void(const std::list<content::ServiceWorkerUsageInfo>&)> base::Callback<void(const std::list<content::ServiceWorkerUsageInfo>&)>
callback_; callback_;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment