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/files/file_enumerator.h" | 12 #include "base/files/file_enumerator.h" |
13 #include "base/logging.h" | 13 #include "base/logging.h" |
14 #include "base/message_loop/message_loop_proxy.h" | 14 #include "base/message_loop/message_loop_proxy.h" |
15 #include "base/string_util.h" | 15 #include "base/strings/string_util.h" |
16 #include "base/strings/utf_string_conversions.h" | 16 #include "base/strings/utf_string_conversions.h" |
17 #include "content/browser/indexed_db/indexed_db_quota_client.h" | 17 #include "content/browser/indexed_db/indexed_db_quota_client.h" |
18 #include "content/browser/indexed_db/webidbdatabase_impl.h" | 18 #include "content/browser/indexed_db/webidbdatabase_impl.h" |
19 #include "content/browser/indexed_db/webidbfactory_impl.h" | 19 #include "content/browser/indexed_db/webidbfactory_impl.h" |
20 #include "content/public/browser/browser_thread.h" | 20 #include "content/public/browser/browser_thread.h" |
21 #include "content/public/browser/indexed_db_info.h" | 21 #include "content/public/browser/indexed_db_info.h" |
22 #include "content/public/common/content_switches.h" | 22 #include "content/public/common/content_switches.h" |
23 #include "third_party/WebKit/public/platform/WebCString.h" | 23 #include "third_party/WebKit/public/platform/WebCString.h" |
24 #include "third_party/WebKit/public/platform/WebIDBDatabase.h" | 24 #include "third_party/WebKit/public/platform/WebIDBDatabase.h" |
25 #include "third_party/WebKit/public/platform/WebString.h" | 25 #include "third_party/WebKit/public/platform/WebString.h" |
(...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
406 return origin_set_.get(); | 406 return origin_set_.get(); |
407 } | 407 } |
408 | 408 |
409 void IndexedDBContextImpl::ResetCaches() { | 409 void IndexedDBContextImpl::ResetCaches() { |
410 origin_set_.reset(); | 410 origin_set_.reset(); |
411 origin_size_map_.clear(); | 411 origin_size_map_.clear(); |
412 space_available_map_.clear(); | 412 space_available_map_.clear(); |
413 } | 413 } |
414 | 414 |
415 } // namespace content | 415 } // namespace content |
OLD | NEW |