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

Side by Side Diff: chrome/browser/mock_browsing_data_quota_helper.h

Issue 7676002: When deleting storage through the cookies tree model, also update its cache (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 9 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/mock_browsing_data_local_storage_helper.cc ('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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_MOCK_BROWSING_DATA_QUOTA_HELPER_H_ 5 #ifndef CHROME_BROWSER_MOCK_BROWSING_DATA_QUOTA_HELPER_H_
6 #define CHROME_BROWSER_MOCK_BROWSING_DATA_QUOTA_HELPER_H_ 6 #define CHROME_BROWSER_MOCK_BROWSING_DATA_QUOTA_HELPER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <list>
9 #include <string> 10 #include <string>
10 #include <vector>
11 11
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "chrome/browser/browsing_data_quota_helper.h" 14 #include "chrome/browser/browsing_data_quota_helper.h"
15 15
16 class MockBrowsingDataQuotaHelper : public BrowsingDataQuotaHelper { 16 class MockBrowsingDataQuotaHelper : public BrowsingDataQuotaHelper {
17 public: 17 public:
18 explicit MockBrowsingDataQuotaHelper(Profile* profile); 18 explicit MockBrowsingDataQuotaHelper(Profile* profile);
19 19
20 virtual void StartFetching(FetchResultCallback* callback) OVERRIDE; 20 virtual void StartFetching(FetchResultCallback* callback) OVERRIDE;
21 virtual void CancelNotification() OVERRIDE; 21 virtual void CancelNotification() OVERRIDE;
22 22
23 void AddHost(const std::string& host, 23 void AddHost(const std::string& host,
24 int64 temporary_usage, 24 int64 temporary_usage,
25 int64 persistent_usage); 25 int64 persistent_usage);
26 void AddQuotaSamples(); 26 void AddQuotaSamples();
27 void Notify(); 27 void Notify();
28 28
29 private: 29 private:
30 virtual ~MockBrowsingDataQuotaHelper(); 30 virtual ~MockBrowsingDataQuotaHelper();
31 31
32 scoped_ptr<FetchResultCallback> callback_; 32 scoped_ptr<FetchResultCallback> callback_;
33 std::vector<QuotaInfo> response_; 33 std::list<QuotaInfo> response_;
34 Profile* profile_; 34 Profile* profile_;
35 }; 35 };
36 36
37 #endif // CHROME_BROWSER_MOCK_BROWSING_DATA_QUOTA_HELPER_H_ 37 #endif // CHROME_BROWSER_MOCK_BROWSING_DATA_QUOTA_HELPER_H_
OLDNEW
« no previous file with comments | « chrome/browser/mock_browsing_data_local_storage_helper.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698