OLD | NEW |
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 WEBKIT_QUOTA_MOCK_QUOTA_MANAGER_H_ | 5 #ifndef WEBKIT_QUOTA_MOCK_QUOTA_MANAGER_H_ |
6 #define WEBKIT_QUOTA_MOCK_QUOTA_MANAGER_H_ | 6 #define WEBKIT_QUOTA_MOCK_QUOTA_MANAGER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 #include <string> | 10 #include <string> |
(...skipping 25 matching lines...) Expand all Loading... |
36 ~OriginInfo(); | 36 ~OriginInfo(); |
37 | 37 |
38 GURL origin; | 38 GURL origin; |
39 StorageType type; | 39 StorageType type; |
40 int quota_client_mask; | 40 int quota_client_mask; |
41 base::Time modified; | 41 base::Time modified; |
42 }; | 42 }; |
43 | 43 |
44 MockQuotaManager(bool is_incognito, | 44 MockQuotaManager(bool is_incognito, |
45 const FilePath& profile_path, | 45 const FilePath& profile_path, |
46 base::MessageLoopProxy* io_thread, | 46 base::SingleThreadTaskRunner* io_thread, |
47 base::MessageLoopProxy* db_thread, | 47 base::SequencedTaskRunner* db_thread, |
48 SpecialStoragePolicy* special_storage_policy); | 48 SpecialStoragePolicy* special_storage_policy); |
49 | 49 |
50 // Adds an origin to the canned list that will be searched through via | 50 // Adds an origin to the canned list that will be searched through via |
51 // GetOriginsModifiedSince. The caller must provide |quota_client_mask| | 51 // GetOriginsModifiedSince. The caller must provide |quota_client_mask| |
52 // which specifies the types of QuotaClients this canned origin contains | 52 // which specifies the types of QuotaClients this canned origin contains |
53 // as a bitmask built from QuotaClient::IDs. | 53 // as a bitmask built from QuotaClient::IDs. |
54 bool AddOrigin(const GURL& origin, | 54 bool AddOrigin(const GURL& origin, |
55 StorageType type, | 55 StorageType type, |
56 int quota_client_mask, | 56 int quota_client_mask, |
57 base::Time modified); | 57 base::Time modified); |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 | 91 |
92 // The list of stored origins that have been added via AddOrigin. | 92 // The list of stored origins that have been added via AddOrigin. |
93 std::vector<OriginInfo> origins_; | 93 std::vector<OriginInfo> origins_; |
94 | 94 |
95 DISALLOW_COPY_AND_ASSIGN(MockQuotaManager); | 95 DISALLOW_COPY_AND_ASSIGN(MockQuotaManager); |
96 }; | 96 }; |
97 | 97 |
98 } // namespace quota | 98 } // namespace quota |
99 | 99 |
100 #endif // WEBKIT_QUOTA_MOCK_QUOTA_MANAGER_H_ | 100 #endif // WEBKIT_QUOTA_MOCK_QUOTA_MANAGER_H_ |
OLD | NEW |