Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(198)

Side by Side Diff: chrome/browser/browsing_data/mock_browsing_data_service_worker_helper.h

Issue 666123002: Standardize usage of virtual/override/final in chrome/browser/browsing_data/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Horribleness Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/browser/browsing_data/mock_browsing_data_quota_helper.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_BROWSING_DATA_MOCK_BROWSING_DATA_SERVICE_WORKER_HELPER_H_ 5 #ifndef CHROME_BROWSER_BROWSING_DATA_MOCK_BROWSING_DATA_SERVICE_WORKER_HELPER_H_
6 #define CHROME_BROWSER_BROWSING_DATA_MOCK_BROWSING_DATA_SERVICE_WORKER_HELPER_H_ 6 #define CHROME_BROWSER_BROWSING_DATA_MOCK_BROWSING_DATA_SERVICE_WORKER_HELPER_H_
7 7
8 #include <list> 8 #include <list>
9 #include <map> 9 #include <map>
10 10
(...skipping 18 matching lines...) Expand all
29 void Notify(); 29 void Notify();
30 30
31 // Marks all service worker files as existing. 31 // Marks all service worker files as existing.
32 void Reset(); 32 void Reset();
33 33
34 // Returns true if all service worker files were deleted since the last 34 // Returns true if all service worker files were deleted since the last
35 // Reset() invokation. 35 // Reset() invokation.
36 bool AllDeleted(); 36 bool AllDeleted();
37 37
38 // BrowsingDataServiceWorkerHelper. 38 // BrowsingDataServiceWorkerHelper.
39 virtual void StartFetching(const base::Callback<void( 39 void StartFetching(const base::Callback<void(
40 const std::list<content::ServiceWorkerUsageInfo>&)>& callback) override; 40 const std::list<content::ServiceWorkerUsageInfo>&)>& callback) override;
41 virtual void DeleteServiceWorkers(const GURL& origin) override; 41 void DeleteServiceWorkers(const GURL& origin) override;
42 42
43 private: 43 private:
44 virtual ~MockBrowsingDataServiceWorkerHelper(); 44 ~MockBrowsingDataServiceWorkerHelper() override;
45 45
46 base::Callback<void(const std::list<content::ServiceWorkerUsageInfo>&)> 46 base::Callback<void(const std::list<content::ServiceWorkerUsageInfo>&)>
47 callback_; 47 callback_;
48 std::map<GURL, bool> origins_; 48 std::map<GURL, bool> origins_;
49 std::list<content::ServiceWorkerUsageInfo> response_; 49 std::list<content::ServiceWorkerUsageInfo> response_;
50 50
51 DISALLOW_COPY_AND_ASSIGN(MockBrowsingDataServiceWorkerHelper); 51 DISALLOW_COPY_AND_ASSIGN(MockBrowsingDataServiceWorkerHelper);
52 }; 52 };
53 53
54 #endif // CHROME_BROWSER_BROWSING_DATA_MOCK_BROWSING_DATA_SERVICE_WORKER_HELPER _H_ 54 #endif // CHROME_BROWSER_BROWSING_DATA_MOCK_BROWSING_DATA_SERVICE_WORKER_HELPER _H_
OLDNEW
« no previous file with comments | « chrome/browser/browsing_data/mock_browsing_data_quota_helper.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698