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

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, 8 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
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::SingleThreadTaskRunner* db_thread,
48 SpecialStoragePolicy* special_storage_policy); 48 SpecialStoragePolicy* special_storage_policy);
49 49
50 virtual ~MockQuotaManager(); 50 virtual ~MockQuotaManager();
51 51
52 // Adds an origin to the canned list that will be searched through via 52 // Adds an origin to the canned list that will be searched through via
53 // GetOriginsModifiedSince. The caller must provide |quota_client_mask| 53 // GetOriginsModifiedSince. The caller must provide |quota_client_mask|
54 // which specifies the types of QuotaClients this canned origin contains 54 // which specifies the types of QuotaClients this canned origin contains
55 // as a bitmask built from QuotaClient::IDs. 55 // as a bitmask built from QuotaClient::IDs.
56 bool AddOrigin(const GURL& origin, 56 bool AddOrigin(const GURL& origin,
57 StorageType type, 57 StorageType type,
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 90
91 // The list of stored origins that have been added via AddOrigin. 91 // The list of stored origins that have been added via AddOrigin.
92 std::vector<OriginInfo> origins_; 92 std::vector<OriginInfo> origins_;
93 93
94 DISALLOW_COPY_AND_ASSIGN(MockQuotaManager); 94 DISALLOW_COPY_AND_ASSIGN(MockQuotaManager);
95 }; 95 };
96 96
97 } // namespace quota 97 } // namespace quota
98 98
99 #endif // WEBKIT_QUOTA_MOCK_QUOTA_MANAGER_H_ 99 #endif // WEBKIT_QUOTA_MOCK_QUOTA_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698