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

Side by Side Diff: content/browser/indexed_db/indexed_db_context_impl.cc

Issue 136573007: Quota: Factor out (Mock)QuotaManagerProxy into its own file for readability (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review fix Created 6 years, 11 months 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) 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 <algorithm> 7 #include <algorithm>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 12 matching lines...) Expand all
23 #include "content/browser/indexed_db/indexed_db_dispatcher_host.h" 23 #include "content/browser/indexed_db/indexed_db_dispatcher_host.h"
24 #include "content/browser/indexed_db/indexed_db_factory.h" 24 #include "content/browser/indexed_db/indexed_db_factory.h"
25 #include "content/browser/indexed_db/indexed_db_quota_client.h" 25 #include "content/browser/indexed_db/indexed_db_quota_client.h"
26 #include "content/browser/indexed_db/indexed_db_tracing.h" 26 #include "content/browser/indexed_db/indexed_db_tracing.h"
27 #include "content/browser/indexed_db/indexed_db_transaction.h" 27 #include "content/browser/indexed_db/indexed_db_transaction.h"
28 #include "content/public/browser/browser_thread.h" 28 #include "content/public/browser/browser_thread.h"
29 #include "content/public/browser/indexed_db_info.h" 29 #include "content/public/browser/indexed_db_info.h"
30 #include "content/public/common/content_switches.h" 30 #include "content/public/common/content_switches.h"
31 #include "ui/base/text/bytes_formatting.h" 31 #include "ui/base/text/bytes_formatting.h"
32 #include "webkit/browser/database/database_util.h" 32 #include "webkit/browser/database/database_util.h"
33 #include "webkit/browser/quota/quota_manager.h" 33 #include "webkit/browser/quota/quota_manager_proxy.h"
34 #include "webkit/browser/quota/special_storage_policy.h" 34 #include "webkit/browser/quota/special_storage_policy.h"
35 #include "webkit/common/database/database_identifier.h" 35 #include "webkit/common/database/database_identifier.h"
36 36
37 using base::DictionaryValue; 37 using base::DictionaryValue;
38 using base::ListValue; 38 using base::ListValue;
39 using webkit_database::DatabaseUtil; 39 using webkit_database::DatabaseUtil;
40 40
41 namespace content { 41 namespace content {
42 const base::FilePath::CharType IndexedDBContextImpl::kIndexedDBDirectory[] = 42 const base::FilePath::CharType IndexedDBContextImpl::kIndexedDBDirectory[] =
43 FILE_PATH_LITERAL("IndexedDB"); 43 FILE_PATH_LITERAL("IndexedDB");
(...skipping 517 matching lines...) Expand 10 before | Expand all | Expand 10 after
561 origin_set_.reset(); 561 origin_set_.reset();
562 origin_size_map_.clear(); 562 origin_size_map_.clear();
563 space_available_map_.clear(); 563 space_available_map_.clear();
564 } 564 }
565 565
566 base::TaskRunner* IndexedDBContextImpl::TaskRunner() const { 566 base::TaskRunner* IndexedDBContextImpl::TaskRunner() const {
567 return task_runner_; 567 return task_runner_;
568 } 568 }
569 569
570 } // namespace content 570 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698