| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |