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

Side by Side Diff: content/browser/quota/mock_quota_manager.cc

Issue 214233005: Move mock_quota_manager and friends from webkit/ to content/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nits Created 6 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #include "webkit/browser/quota/mock_quota_manager.h" 5 #include "content/browser/quota/mock_quota_manager.h"
6 6
7 #include "base/memory/ref_counted.h" 7 #include "base/memory/ref_counted.h"
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "base/single_thread_task_runner.h" 10 #include "base/single_thread_task_runner.h"
11 #include "url/gurl.h" 11 #include "url/gurl.h"
12 12
13 namespace quota { 13 using quota::kQuotaStatusOk;
14
15 namespace content {
14 16
15 MockQuotaManager::OriginInfo::OriginInfo( 17 MockQuotaManager::OriginInfo::OriginInfo(
16 const GURL& origin, 18 const GURL& origin,
17 StorageType type, 19 StorageType type,
18 int quota_client_mask, 20 int quota_client_mask,
19 base::Time modified) 21 base::Time modified)
20 : origin(origin), 22 : origin(origin),
21 type(type), 23 type(type),
22 quota_client_mask(quota_client_mask), 24 quota_client_mask(quota_client_mask),
23 modified(modified) { 25 modified(modified) {
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 StorageType storage_type) { 137 StorageType storage_type) {
136 callback.Run(*origins, storage_type); 138 callback.Run(*origins, storage_type);
137 } 139 }
138 140
139 void MockQuotaManager::DidDeleteOriginData( 141 void MockQuotaManager::DidDeleteOriginData(
140 const StatusCallback& callback, 142 const StatusCallback& callback,
141 QuotaStatusCode status) { 143 QuotaStatusCode status) {
142 callback.Run(status); 144 callback.Run(status);
143 } 145 }
144 146
145 } // namespace quota 147 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/quota/mock_quota_manager.h ('k') | content/browser/quota/mock_quota_manager_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698