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/indexed_db/indexed_db_context_impl.h" | 5 #include "content/browser/indexed_db/indexed_db_context_impl.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
11 #include "base/file_util.h" | 11 #include "base/file_util.h" |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
13 #include "base/message_loop_proxy.h" | 13 #include "base/message_loop_proxy.h" |
14 #include "base/string_util.h" | 14 #include "base/string_util.h" |
15 #include "base/utf_string_conversions.h" | 15 #include "base/utf_string_conversions.h" |
16 #include "content/browser/indexed_db/indexed_db_quota_client.h" | 16 #include "content/browser/indexed_db/indexed_db_quota_client.h" |
17 #include "content/public/browser/browser_thread.h" | 17 #include "content/public/browser/browser_thread.h" |
18 #include "content/public/browser/indexed_db_info.h" | 18 #include "content/public/browser/indexed_db_info.h" |
19 #include "content/public/common/content_switches.h" | 19 #include "content/public/common/content_switches.h" |
20 #include "third_party/WebKit/Source/Platform/chromium/public/WebCString.h" | 20 #include "third_party/WebKit/Source/Platform/chromium/public/WebCString.h" |
21 #include "third_party/WebKit/Source/Platform/chromium/public/WebIDBDatabase.h" | 21 #include "third_party/WebKit/Source/Platform/chromium/public/WebIDBDatabase.h" |
22 #include "third_party/WebKit/Source/Platform/chromium/public/WebIDBFactory.h" | 22 #include "third_party/WebKit/Source/Platform/chromium/public/WebIDBFactory.h" |
23 #include "third_party/WebKit/Source/Platform/chromium/public/WebString.h" | 23 #include "third_party/WebKit/Source/Platform/chromium/public/WebString.h" |
24 #include "webkit/base/file_path_string_conversions.h" | 24 #include "webkit/base/file_path_string_conversions.h" |
25 #include "webkit/base/origin_url_conversions.h" | 25 #include "webkit/base/origin_url_conversions.h" |
26 #include "webkit/browser/database/database_util.h" | 26 #include "webkit/browser/database/database_util.h" |
27 #include "webkit/quota/quota_manager.h" | 27 #include "webkit/browser/quota/quota_manager.h" |
28 #include "webkit/quota/special_storage_policy.h" | 28 #include "webkit/browser/quota/special_storage_policy.h" |
29 | 29 |
30 using webkit_database::DatabaseUtil; | 30 using webkit_database::DatabaseUtil; |
31 using WebKit::WebIDBDatabase; | 31 using WebKit::WebIDBDatabase; |
32 using WebKit::WebIDBFactory; | 32 using WebKit::WebIDBFactory; |
33 | 33 |
34 namespace content { | 34 namespace content { |
35 const base::FilePath::CharType IndexedDBContextImpl::kIndexedDBDirectory[] = | 35 const base::FilePath::CharType IndexedDBContextImpl::kIndexedDBDirectory[] = |
36 FILE_PATH_LITERAL("IndexedDB"); | 36 FILE_PATH_LITERAL("IndexedDB"); |
37 | 37 |
38 const base::FilePath::CharType IndexedDBContextImpl::kIndexedDBExtension[] = | 38 const base::FilePath::CharType IndexedDBContextImpl::kIndexedDBExtension[] = |
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
394 return origin_set_.get(); | 394 return origin_set_.get(); |
395 } | 395 } |
396 | 396 |
397 void IndexedDBContextImpl::ResetCaches() { | 397 void IndexedDBContextImpl::ResetCaches() { |
398 origin_set_.reset(); | 398 origin_set_.reset(); |
399 origin_size_map_.clear(); | 399 origin_size_map_.clear(); |
400 space_available_map_.clear(); | 400 space_available_map_.clear(); |
401 } | 401 } |
402 | 402 |
403 } // namespace content | 403 } // namespace content |
OLD | NEW |