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

Side by Side Diff: webkit/browser/database/database_tracker.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 "webkit/browser/database/database_tracker.h" 5 #include "webkit/browser/database/database_tracker.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/bind.h" 11 #include "base/bind.h"
12 #include "base/file_util.h" 12 #include "base/file_util.h"
13 #include "base/files/file_enumerator.h" 13 #include "base/files/file_enumerator.h"
14 #include "base/message_loop/message_loop_proxy.h" 14 #include "base/message_loop/message_loop_proxy.h"
15 #include "base/platform_file.h" 15 #include "base/platform_file.h"
16 #include "base/strings/string_number_conversions.h" 16 #include "base/strings/string_number_conversions.h"
17 #include "base/strings/utf_string_conversions.h" 17 #include "base/strings/utf_string_conversions.h"
18 #include "net/base/net_errors.h" 18 #include "net/base/net_errors.h"
19 #include "sql/connection.h" 19 #include "sql/connection.h"
20 #include "sql/meta_table.h" 20 #include "sql/meta_table.h"
21 #include "sql/transaction.h" 21 #include "sql/transaction.h"
22 #include "third_party/sqlite/sqlite3.h" 22 #include "third_party/sqlite/sqlite3.h"
23 #include "webkit/browser/database/database_quota_client.h" 23 #include "webkit/browser/database/database_quota_client.h"
24 #include "webkit/browser/database/database_util.h" 24 #include "webkit/browser/database/database_util.h"
25 #include "webkit/browser/database/databases_table.h" 25 #include "webkit/browser/database/databases_table.h"
26 #include "webkit/browser/quota/quota_manager.h" 26 #include "webkit/browser/quota/quota_manager_proxy.h"
27 #include "webkit/browser/quota/special_storage_policy.h" 27 #include "webkit/browser/quota/special_storage_policy.h"
28 #include "webkit/common/database/database_identifier.h" 28 #include "webkit/common/database/database_identifier.h"
29 29
30 namespace webkit_database { 30 namespace webkit_database {
31 31
32 const base::FilePath::CharType kDatabaseDirectoryName[] = 32 const base::FilePath::CharType kDatabaseDirectoryName[] =
33 FILE_PATH_LITERAL("databases"); 33 FILE_PATH_LITERAL("databases");
34 const base::FilePath::CharType kIncognitoDatabaseDirectoryName[] = 34 const base::FilePath::CharType kIncognitoDatabaseDirectoryName[] =
35 FILE_PATH_LITERAL("databases-incognito"); 35 FILE_PATH_LITERAL("databases-incognito");
36 const base::FilePath::CharType kTrackerDatabaseFileName[] = 36 const base::FilePath::CharType kTrackerDatabaseFileName[] =
(...skipping 825 matching lines...) Expand 10 before | Expand all | Expand 10 after
862 if (!db_tracker_thread_->BelongsToCurrentThread()) { 862 if (!db_tracker_thread_->BelongsToCurrentThread()) {
863 db_tracker_thread_->PostTask( 863 db_tracker_thread_->PostTask(
864 FROM_HERE, 864 FROM_HERE,
865 base::Bind(&DatabaseTracker::SetForceKeepSessionState, this)); 865 base::Bind(&DatabaseTracker::SetForceKeepSessionState, this));
866 return; 866 return;
867 } 867 }
868 force_keep_session_state_ = true; 868 force_keep_session_state_ = true;
869 } 869 }
870 870
871 } // namespace webkit_database 871 } // namespace webkit_database
OLDNEW
« no previous file with comments | « webkit/browser/appcache/appcache_storage_unittest.cc ('k') | webkit/browser/database/database_tracker_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698