| 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 "webkit/browser/quota/mock_quota_manager.h" |
| 6 | 6 |
| 7 #include <set> | 7 #include <set> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
| 12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
| 13 #include "base/message_loop.h" | 13 #include "base/message_loop.h" |
| 14 #include "base/single_thread_task_runner.h" | 14 #include "base/single_thread_task_runner.h" |
| 15 #include "googleurl/src/gurl.h" | 15 #include "url/gurl.h" |
| 16 | 16 |
| 17 namespace quota { | 17 namespace quota { |
| 18 | 18 |
| 19 MockQuotaManager::OriginInfo::OriginInfo( | 19 MockQuotaManager::OriginInfo::OriginInfo( |
| 20 const GURL& origin, | 20 const GURL& origin, |
| 21 StorageType type, | 21 StorageType type, |
| 22 int quota_client_mask, | 22 int quota_client_mask, |
| 23 base::Time modified) | 23 base::Time modified) |
| 24 : origin(origin), | 24 : origin(origin), |
| 25 type(type), | 25 type(type), |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 last_notified_delta_ = delta; | 190 last_notified_delta_ = delta; |
| 191 if (mock_manager()) | 191 if (mock_manager()) |
| 192 mock_manager()->UpdateUsage(origin, type, delta); | 192 mock_manager()->UpdateUsage(origin, type, delta); |
| 193 } | 193 } |
| 194 | 194 |
| 195 MockQuotaManagerProxy::~MockQuotaManagerProxy() { | 195 MockQuotaManagerProxy::~MockQuotaManagerProxy() { |
| 196 DCHECK(!registered_client_); | 196 DCHECK(!registered_client_); |
| 197 } | 197 } |
| 198 | 198 |
| 199 } // namespace quota | 199 } // namespace quota |
| OLD | NEW |