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

Side by Side Diff: webkit/quota/mock_quota_manager.h

Issue 10197007: Change webkit/{fileapi,quota} code to use TaskRunner. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: test fix Created 8 years, 7 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 | « webkit/fileapi/sandbox_mount_point_provider.cc ('k') | webkit/quota/mock_quota_manager.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 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
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
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_
OLDNEW
« no previous file with comments | « webkit/fileapi/sandbox_mount_point_provider.cc ('k') | webkit/quota/mock_quota_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698