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

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

Issue 2092663002: Add a counter to calculate the total size of site data. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address review comments. Created 4 years, 5 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 | « no previous file | chrome/browser/browsing_data/mock_browsing_data_appcache_helper.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_APPCACHE_HELPER_H_ 5 #ifndef CHROME_BROWSER_BROWSING_DATA_MOCK_BROWSING_DATA_APPCACHE_HELPER_H_
6 #define CHROME_BROWSER_BROWSING_DATA_MOCK_BROWSING_DATA_APPCACHE_HELPER_H_ 6 #define CHROME_BROWSER_BROWSING_DATA_MOCK_BROWSING_DATA_APPCACHE_HELPER_H_
7 7
8 #include "base/callback_forward.h" 8 #include "base/callback_forward.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "chrome/browser/browsing_data/browsing_data_appcache_helper.h" 10 #include "chrome/browser/browsing_data/browsing_data_appcache_helper.h"
11 11
12 class MockBrowsingDataAppCacheHelper 12 class MockBrowsingDataAppCacheHelper
13 : public BrowsingDataAppCacheHelper { 13 : public BrowsingDataAppCacheHelper {
14 public: 14 public:
15 explicit MockBrowsingDataAppCacheHelper( 15 explicit MockBrowsingDataAppCacheHelper(
16 content::BrowserContext* browser_context); 16 content::BrowserContext* browser_context);
17 17
18 void StartFetching(const FetchCallback& completion_callback) override; 18 void StartFetching(const FetchCallback& completion_callback) override;
19 void DeleteAppCacheGroup(const GURL& manifest_url) override; 19 void DeleteAppCacheGroup(const GURL& manifest_url) override;
20 20
21 // Adds AppCache samples.
22 void AddAppCacheSamples();
23
24 // Notifies the callback.
25 void Notify();
26
21 private: 27 private:
22 ~MockBrowsingDataAppCacheHelper() override; 28 ~MockBrowsingDataAppCacheHelper() override;
23 29
24 FetchCallback completion_callback_; 30 FetchCallback completion_callback_;
25 31
32 scoped_refptr<content::AppCacheInfoCollection> response_;
33
26 DISALLOW_COPY_AND_ASSIGN(MockBrowsingDataAppCacheHelper); 34 DISALLOW_COPY_AND_ASSIGN(MockBrowsingDataAppCacheHelper);
27 }; 35 };
28 36
29 #endif // CHROME_BROWSER_BROWSING_DATA_MOCK_BROWSING_DATA_APPCACHE_HELPER_H_ 37 #endif // CHROME_BROWSER_BROWSING_DATA_MOCK_BROWSING_DATA_APPCACHE_HELPER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/browsing_data/mock_browsing_data_appcache_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698