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

Side by Side Diff: webkit/database/database_tracker.cc

Issue 9249025: Database usage adjustment for .../webkit (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to head Created 8 years, 10 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
« no previous file with comments | « webkit/appcache/appcache_database.cc ('k') | webkit/database/databases_table.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/database/database_tracker.h" 5 #include "webkit/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/message_loop_proxy.h" 13 #include "base/message_loop_proxy.h"
14 #include "base/platform_file.h" 14 #include "base/platform_file.h"
15 #include "base/string_number_conversions.h" 15 #include "base/string_number_conversions.h"
16 #include "base/utf_string_conversions.h" 16 #include "base/utf_string_conversions.h"
17 #include "net/base/net_errors.h" 17 #include "net/base/net_errors.h"
18 #include "sql/connection.h" 18 #include "sql/connection.h"
19 #include "sql/diagnostic_error_delegate.h" 19 #include "sql/diagnostic_error_delegate.h"
20 #include "sql/meta_table.h" 20 #include "sql/meta_table.h"
21 #include "sql/statement.h"
22 #include "sql/transaction.h" 21 #include "sql/transaction.h"
23 #include "webkit/database/database_quota_client.h" 22 #include "webkit/database/database_quota_client.h"
24 #include "webkit/database/database_util.h" 23 #include "webkit/database/database_util.h"
25 #include "webkit/database/databases_table.h" 24 #include "webkit/database/databases_table.h"
26 #include "webkit/quota/quota_manager.h" 25 #include "webkit/quota/quota_manager.h"
27 #include "webkit/quota/special_storage_policy.h" 26 #include "webkit/quota/special_storage_policy.h"
28 27
29 namespace { 28 namespace {
30 29
31 class HistogramUniquifier { 30 class HistogramUniquifier {
(...skipping 845 matching lines...) Expand 10 before | Expand all | Expand 10 after
877 if (!db_tracker_thread_->BelongsToCurrentThread()) { 876 if (!db_tracker_thread_->BelongsToCurrentThread()) {
878 db_tracker_thread_->PostTask( 877 db_tracker_thread_->PostTask(
879 FROM_HERE, 878 FROM_HERE,
880 base::Bind(&DatabaseTracker::SaveSessionState, this)); 879 base::Bind(&DatabaseTracker::SaveSessionState, this));
881 return; 880 return;
882 } 881 }
883 save_session_state_ = true; 882 save_session_state_ = true;
884 } 883 }
885 884
886 } // namespace webkit_database 885 } // namespace webkit_database
OLDNEW
« no previous file with comments | « webkit/appcache/appcache_database.cc ('k') | webkit/database/databases_table.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698