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

Side by Side Diff: chrome/browser/history/history_database.h

Issue 22569006: tmp Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 4 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
« no previous file with comments | « no previous file | chrome/browser/history/history_database.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) 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 #ifndef CHROME_BROWSER_HISTORY_HISTORY_DATABASE_H_ 5 #ifndef CHROME_BROWSER_HISTORY_HISTORY_DATABASE_H_
6 #define CHROME_BROWSER_HISTORY_HISTORY_DATABASE_H_ 6 #define CHROME_BROWSER_HISTORY_HISTORY_DATABASE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/gtest_prod_util.h" 10 #include "base/gtest_prod_util.h"
(...skipping 13 matching lines...) Expand all
24 #endif 24 #endif
25 25
26 namespace base { 26 namespace base {
27 class FilePath; 27 class FilePath;
28 } 28 }
29 29
30 class HistoryQuickProviderTest; 30 class HistoryQuickProviderTest;
31 31
32 namespace history { 32 namespace history {
33 33
34 class HistoryDatabaseDelegate;
35
34 // Encapsulates the SQL connection for the history database. This class holds 36 // Encapsulates the SQL connection for the history database. This class holds
35 // the database connection and has methods the history system (including full 37 // the database connection and has methods the history system (including full
36 // text search) uses for writing and retrieving information. 38 // text search) uses for writing and retrieving information.
37 // 39 //
38 // We try to keep most logic out of the history database; this should be seen 40 // We try to keep most logic out of the history database; this should be seen
39 // as the storage interface. Logic for manipulating this storage layer should 41 // as the storage interface. Logic for manipulating this storage layer should
40 // be in HistoryBackend.cc. 42 // be in HistoryBackend.cc.
41 class HistoryDatabase : public DownloadDatabase, 43 class HistoryDatabase : public DownloadDatabase,
42 #if defined(OS_ANDROID) 44 #if defined(OS_ANDROID)
43 public AndroidURLsDatabase, 45 public AndroidURLsDatabase,
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 205
204 sql::Connection::ErrorCallback error_callback_; 206 sql::Connection::ErrorCallback error_callback_;
205 sql::Connection db_; 207 sql::Connection db_;
206 sql::MetaTable meta_table_; 208 sql::MetaTable meta_table_;
207 209
208 base::Time cached_early_expiration_threshold_; 210 base::Time cached_early_expiration_threshold_;
209 211
210 // See the getters above. 212 // See the getters above.
211 bool needs_version_17_migration_; 213 bool needs_version_17_migration_;
212 214
215 scoped_ptr<HistoryDatabaseDelegate> delegate_;
216
213 DISALLOW_COPY_AND_ASSIGN(HistoryDatabase); 217 DISALLOW_COPY_AND_ASSIGN(HistoryDatabase);
214 }; 218 };
215 219
216 } // namespace history 220 } // namespace history
217 221
218 #endif // CHROME_BROWSER_HISTORY_HISTORY_DATABASE_H_ 222 #endif // CHROME_BROWSER_HISTORY_HISTORY_DATABASE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/history/history_database.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698