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

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

Issue 9481008: Move GenericHandler back to Chrome since it was really Chrome specific (i.e. chrome's mapping of cl… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 9 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/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"
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 return it->second.second; 86 return it->second.second;
87 return string16(); 87 return string16();
88 } 88 }
89 89
90 OriginInfo::OriginInfo(const string16& origin, int64 total_size) 90 OriginInfo::OriginInfo(const string16& origin, int64 total_size)
91 : origin_(origin), total_size_(total_size) {} 91 : origin_(origin), total_size_(total_size) {}
92 92
93 DatabaseTracker::DatabaseTracker( 93 DatabaseTracker::DatabaseTracker(
94 const FilePath& profile_path, 94 const FilePath& profile_path,
95 bool is_incognito, 95 bool is_incognito,
96 bool clear_local_state_on_exit,
97 quota::SpecialStoragePolicy* special_storage_policy, 96 quota::SpecialStoragePolicy* special_storage_policy,
98 quota::QuotaManagerProxy* quota_manager_proxy, 97 quota::QuotaManagerProxy* quota_manager_proxy,
99 base::MessageLoopProxy* db_tracker_thread) 98 base::MessageLoopProxy* db_tracker_thread)
100 : is_initialized_(false), 99 : is_initialized_(false),
101 is_incognito_(is_incognito), 100 is_incognito_(is_incognito),
102 clear_local_state_on_exit_(clear_local_state_on_exit), 101 clear_local_state_on_exit_(false),
103 save_session_state_(false), 102 save_session_state_(false),
104 shutting_down_(false), 103 shutting_down_(false),
105 profile_path_(profile_path), 104 profile_path_(profile_path),
106 db_dir_(is_incognito_ ? 105 db_dir_(is_incognito_ ?
107 profile_path_.Append(kIncognitoDatabaseDirectoryName) : 106 profile_path_.Append(kIncognitoDatabaseDirectoryName) :
108 profile_path_.Append(kDatabaseDirectoryName)), 107 profile_path_.Append(kDatabaseDirectoryName)),
109 db_(new sql::Connection()), 108 db_(new sql::Connection()),
110 databases_table_(NULL), 109 databases_table_(NULL),
111 meta_table_(NULL), 110 meta_table_(NULL),
112 special_storage_policy_(special_storage_policy), 111 special_storage_policy_(special_storage_policy),
(...skipping 782 matching lines...) Expand 10 before | Expand all | Expand 10 after
895 if (!db_tracker_thread_->BelongsToCurrentThread()) { 894 if (!db_tracker_thread_->BelongsToCurrentThread()) {
896 db_tracker_thread_->PostTask( 895 db_tracker_thread_->PostTask(
897 FROM_HERE, 896 FROM_HERE,
898 base::Bind(&DatabaseTracker::SaveSessionState, this)); 897 base::Bind(&DatabaseTracker::SaveSessionState, this));
899 return; 898 return;
900 } 899 }
901 save_session_state_ = true; 900 save_session_state_ = true;
902 } 901 }
903 902
904 } // namespace webkit_database 903 } // namespace webkit_database
OLDNEW
« webkit/database/database_tracker.h ('K') | « webkit/database/database_tracker.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698