OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "content/browser/quota/mock_quota_manager.h" | 5 #include "content/browser/quota/mock_quota_manager.h" |
6 | 6 |
7 #include <limits> | 7 #include <limits> |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/location.h" | 10 #include "base/location.h" |
11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
12 #include "base/single_thread_task_runner.h" | 12 #include "base/single_thread_task_runner.h" |
13 #include "base/thread_task_runner_handle.h" | 13 #include "base/threading/thread_task_runner_handle.h" |
14 #include "url/gurl.h" | 14 #include "url/gurl.h" |
15 | 15 |
16 using storage::kQuotaStatusOk; | 16 using storage::kQuotaStatusOk; |
17 | 17 |
18 namespace content { | 18 namespace content { |
19 | 19 |
20 MockQuotaManager::OriginInfo::OriginInfo( | 20 MockQuotaManager::OriginInfo::OriginInfo( |
21 const GURL& origin, | 21 const GURL& origin, |
22 StorageType type, | 22 StorageType type, |
23 int quota_client_mask, | 23 int quota_client_mask, |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 callback.Run(*origins, storage_type); | 142 callback.Run(*origins, storage_type); |
143 } | 143 } |
144 | 144 |
145 void MockQuotaManager::DidDeleteOriginData( | 145 void MockQuotaManager::DidDeleteOriginData( |
146 const StatusCallback& callback, | 146 const StatusCallback& callback, |
147 QuotaStatusCode status) { | 147 QuotaStatusCode status) { |
148 callback.Run(status); | 148 callback.Run(status); |
149 } | 149 } |
150 | 150 |
151 } // namespace content | 151 } // namespace content |
OLD | NEW |