| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/in_process_webkit/indexed_db_quota_client.h" | 5 #include "content/browser/in_process_webkit/indexed_db_quota_client.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
| 10 #include "base/logging.h" |
| 10 #include "base/message_loop_proxy.h" | 11 #include "base/message_loop_proxy.h" |
| 11 #include "content/browser/in_process_webkit/indexed_db_context_impl.h" | 12 #include "content/browser/in_process_webkit/indexed_db_context_impl.h" |
| 12 #include "content/public/browser/browser_thread.h" | 13 #include "content/public/browser/browser_thread.h" |
| 13 #include "net/base/net_util.h" | 14 #include "net/base/net_util.h" |
| 14 #include "webkit/database/database_util.h" | 15 #include "webkit/database/database_util.h" |
| 15 | 16 |
| 16 using content::BrowserThread; | 17 using content::BrowserThread; |
| 17 using quota::QuotaClient; | 18 using quota::QuotaClient; |
| 18 using webkit_database::DatabaseUtil; | 19 using webkit_database::DatabaseUtil; |
| 19 | 20 |
| (...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 253 DCHECK(origins_for_type_callbacks_.HasCallbacks()); | 254 DCHECK(origins_for_type_callbacks_.HasCallbacks()); |
| 254 origins_for_type_callbacks_.Run(origins, type); | 255 origins_for_type_callbacks_.Run(origins, type); |
| 255 } | 256 } |
| 256 | 257 |
| 257 void IndexedDBQuotaClient::DidGetOriginsForHost( | 258 void IndexedDBQuotaClient::DidGetOriginsForHost( |
| 258 const std::string& host, const std::set<GURL>& origins, | 259 const std::string& host, const std::set<GURL>& origins, |
| 259 quota::StorageType type) { | 260 quota::StorageType type) { |
| 260 DCHECK(origins_for_host_callbacks_.HasCallbacks(host)); | 261 DCHECK(origins_for_host_callbacks_.HasCallbacks(host)); |
| 261 origins_for_host_callbacks_.Run(host, origins, type); | 262 origins_for_host_callbacks_.Run(host, origins, type); |
| 262 } | 263 } |
| OLD | NEW |