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

Side by Side Diff: content/browser/in_process_webkit/indexed_db_quota_client.cc

Issue 8437002: Move BrowserThread to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: A few updates. Created 9 years, 1 month 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 (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/message_loop_proxy.h" 10 #include "base/message_loop_proxy.h"
11 #include "content/browser/in_process_webkit/indexed_db_context.h" 11 #include "content/browser/in_process_webkit/indexed_db_context.h"
12 #include "net/base/net_util.h" 12 #include "net/base/net_util.h"
13 #include "webkit/database/database_util.h" 13 #include "webkit/database/database_util.h"
14 14
15 using content::BrowserThread;
15 using quota::QuotaClient; 16 using quota::QuotaClient;
16 using webkit_database::DatabaseUtil; 17 using webkit_database::DatabaseUtil;
17 18
18 19
19 // Helper tasks --------------------------------------------------------------- 20 // Helper tasks ---------------------------------------------------------------
20 21
21 class IndexedDBQuotaClient::HelperTask : public quota::QuotaThreadTask { 22 class IndexedDBQuotaClient::HelperTask : public quota::QuotaThreadTask {
22 protected: 23 protected:
23 HelperTask( 24 HelperTask(
24 IndexedDBQuotaClient* client, 25 IndexedDBQuotaClient* client,
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 DCHECK(origins_for_type_callbacks_.HasCallbacks()); 253 DCHECK(origins_for_type_callbacks_.HasCallbacks());
253 origins_for_type_callbacks_.Run(origins, type); 254 origins_for_type_callbacks_.Run(origins, type);
254 } 255 }
255 256
256 void IndexedDBQuotaClient::DidGetOriginsForHost( 257 void IndexedDBQuotaClient::DidGetOriginsForHost(
257 const std::string& host, const std::set<GURL>& origins, 258 const std::string& host, const std::set<GURL>& origins,
258 quota::StorageType type) { 259 quota::StorageType type) {
259 DCHECK(origins_for_host_callbacks_.HasCallbacks(host)); 260 DCHECK(origins_for_host_callbacks_.HasCallbacks(host));
260 origins_for_host_callbacks_.Run(host, origins, type); 261 origins_for_host_callbacks_.Run(host, origins, type);
261 } 262 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698