OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_impl.h" | 5 #include "content/browser/in_process_webkit/indexed_db_context_impl.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/utf_string_conversions.h" | 13 #include "base/utf_string_conversions.h" |
14 #include "content/browser/in_process_webkit/indexed_db_quota_client.h" | 14 #include "content/browser/in_process_webkit/indexed_db_quota_client.h" |
15 #include "content/public/browser/browser_thread.h" | 15 #include "content/public/browser/browser_thread.h" |
16 #include "content/public/common/content_switches.h" | 16 #include "content/public/common/content_switches.h" |
17 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebCString.h
" | 17 #include "third_party/WebKit/Source/Platform/chromium/public/WebCString.h" |
| 18 #include "third_party/WebKit/Source/Platform/chromium/public/WebString.h" |
18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBDatabase.h" | 19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBDatabase.h" |
19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBFactory.h" | 20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBFactory.h" |
20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSecurityOrigin.h" | 21 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSecurityOrigin.h" |
21 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h" | |
22 #include "webkit/base/file_path_string_conversions.h" | 22 #include "webkit/base/file_path_string_conversions.h" |
23 #include "webkit/database/database_util.h" | 23 #include "webkit/database/database_util.h" |
24 #include "webkit/quota/quota_manager.h" | 24 #include "webkit/quota/quota_manager.h" |
25 #include "webkit/quota/special_storage_policy.h" | 25 #include "webkit/quota/special_storage_policy.h" |
26 | 26 |
27 using webkit_database::DatabaseUtil; | 27 using webkit_database::DatabaseUtil; |
28 using WebKit::WebIDBDatabase; | 28 using WebKit::WebIDBDatabase; |
29 using WebKit::WebIDBFactory; | 29 using WebKit::WebIDBFactory; |
30 using WebKit::WebSecurityOrigin; | 30 using WebKit::WebSecurityOrigin; |
31 | 31 |
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
363 return origin_set_.get(); | 363 return origin_set_.get(); |
364 } | 364 } |
365 | 365 |
366 void IndexedDBContextImpl::ResetCaches() { | 366 void IndexedDBContextImpl::ResetCaches() { |
367 origin_set_.reset(); | 367 origin_set_.reset(); |
368 origin_size_map_.clear(); | 368 origin_size_map_.clear(); |
369 space_available_map_.clear(); | 369 space_available_map_.clear(); |
370 } | 370 } |
371 | 371 |
372 } // namespace content | 372 } // namespace content |
OLD | NEW |