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

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

Issue 8340028: Salient parts of http://codereview.chromium.org/8392042/ (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: 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
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/browser_thread.h"
16 #include "content/browser/in_process_webkit/indexed_db_quota_client.h" 15 #include "content/browser/in_process_webkit/indexed_db_quota_client.h"
17 #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"
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"
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 } 333 }
334 } 334 }
335 return origin_set_.get(); 335 return origin_set_.get();
336 } 336 }
337 337
338 void IndexedDBContext::ResetCaches() { 338 void IndexedDBContext::ResetCaches() {
339 origin_set_.reset(); 339 origin_set_.reset();
340 origin_size_map_.clear(); 340 origin_size_map_.clear();
341 space_available_map_.clear(); 341 space_available_map_.clear();
342 } 342 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698