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

Side by Side Diff: content/browser/in_process_webkit/indexed_db_context.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_context.h" 5 #include "content/browser/in_process_webkit/indexed_db_context.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/message_loop_proxy.h" 11 #include "base/message_loop_proxy.h"
12 #include "base/string_util.h" 12 #include "base/string_util.h"
13 #include "base/task.h" 13 #include "base/task.h"
14 #include "base/utf_string_conversions.h" 14 #include "base/utf_string_conversions.h"
15 #include "content/browser/in_process_webkit/indexed_db_quota_client.h" 15 #include "content/browser/in_process_webkit/indexed_db_quota_client.h"
16 #include "content/browser/in_process_webkit/webkit_context.h" 16 #include "content/browser/in_process_webkit/webkit_context.h"
17 #include "content/public/browser/browser_thread.h" 17 #include "content/public/browser/browser_thread.h"
18 #include "content/public/common/content_switches.h" 18 #include "content/public/common/content_switches.h"
19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCString.h" 19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCString.h"
20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBDatabase.h" 20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBDatabase.h"
21 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBFactory.h" 21 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBFactory.h"
22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSecurityOrigin.h" 22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSecurityOrigin.h"
23 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" 23 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h"
24 #include "webkit/database/database_util.h" 24 #include "webkit/database/database_util.h"
25 #include "webkit/glue/webkit_glue.h" 25 #include "webkit/glue/webkit_glue.h"
26 #include "webkit/quota/quota_manager.h" 26 #include "webkit/quota/quota_manager.h"
27 #include "webkit/quota/special_storage_policy.h" 27 #include "webkit/quota/special_storage_policy.h"
28 28
29 using content::BrowserThread;
29 using webkit_database::DatabaseUtil; 30 using webkit_database::DatabaseUtil;
30 using WebKit::WebIDBDatabase; 31 using WebKit::WebIDBDatabase;
31 using WebKit::WebIDBFactory; 32 using WebKit::WebIDBFactory;
32 using WebKit::WebSecurityOrigin; 33 using WebKit::WebSecurityOrigin;
33 34
34 namespace { 35 namespace {
35 36
36 void GetAllOriginsAndPaths( 37 void GetAllOriginsAndPaths(
37 const FilePath& indexeddb_path, 38 const FilePath& indexeddb_path,
38 std::vector<GURL>* origins, 39 std::vector<GURL>* origins,
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 } 334 }
334 } 335 }
335 return origin_set_.get(); 336 return origin_set_.get();
336 } 337 }
337 338
338 void IndexedDBContext::ResetCaches() { 339 void IndexedDBContext::ResetCaches() {
339 origin_set_.reset(); 340 origin_set_.reset();
340 origin_size_map_.clear(); 341 origin_size_map_.clear();
341 space_available_map_.clear(); 342 space_available_map_.clear();
342 } 343 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698