Update V8 to version 4.7.21.
[chromium-blink-merge.git] / chrome / browser / browsing_data / mock_browsing_data_quota_helper.h
blob845bfe7f7e034b223bbdb3d9b37859c1ddedcfbd
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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_BROWSING_DATA_MOCK_BROWSING_DATA_QUOTA_HELPER_H_
6 #define CHROME_BROWSER_BROWSING_DATA_MOCK_BROWSING_DATA_QUOTA_HELPER_H_
8 #include <list>
9 #include <string>
11 #include "chrome/browser/browsing_data/browsing_data_quota_helper.h"
13 class MockBrowsingDataQuotaHelper : public BrowsingDataQuotaHelper {
14 public:
15 explicit MockBrowsingDataQuotaHelper(Profile* profile);
17 void StartFetching(const FetchResultCallback& callback) override;
18 void RevokeHostQuota(const std::string& host) override;
20 void AddHost(const std::string& host,
21 int64 temporary_usage,
22 int64 persistent_usage,
23 int64 syncable_usage);
24 void AddQuotaSamples();
25 void Notify();
27 private:
28 ~MockBrowsingDataQuotaHelper() override;
30 FetchResultCallback callback_;
31 std::list<QuotaInfo> response_;
33 DISALLOW_COPY_AND_ASSIGN(MockBrowsingDataQuotaHelper);
36 #endif // CHROME_BROWSER_BROWSING_DATA_MOCK_BROWSING_DATA_QUOTA_HELPER_H_