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

Side by Side Diff: components/webdata/common/web_database.h

Issue 13839013: Webdata Component tryjobs NOT FOR REVIEW (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: After WD/AF merge Created 7 years, 8 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 #ifndef COMPONENTS_WEBDATA_COMMON_WEB_DATABASE_H_ 5 #ifndef COMPONENTS_WEBDATA_COMMON_WEB_DATABASE_H_
6 #define COMPONENTS_WEBDATA_COMMON_WEB_DATABASE_H_ 6 #define COMPONENTS_WEBDATA_COMMON_WEB_DATABASE_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "components/webdata/common/web_database_table.h" 11 #include "components/webdata/common/web_database_table.h"
12 #include "components/webdata/common/webdata_export.h"
12 #include "sql/connection.h" 13 #include "sql/connection.h"
13 #include "sql/init_status.h" 14 #include "sql/init_status.h"
14 #include "sql/meta_table.h" 15 #include "sql/meta_table.h"
15 16
16 namespace base { 17 namespace base {
17 class FilePath; 18 class FilePath;
18 } 19 }
19 20
20 namespace content { 21 namespace content {
21 class NotificationService; 22 class NotificationService;
22 } 23 }
23 24
24 // This class manages a SQLite database that stores various web page meta data. 25 // This class manages a SQLite database that stores various web page meta data.
25 class WebDatabase { 26 class WEBDATA_EXPORT WebDatabase {
26 public: 27 public:
27 enum State { 28 enum State {
28 COMMIT_NOT_NEEDED, 29 COMMIT_NOT_NEEDED,
29 COMMIT_NEEDED 30 COMMIT_NEEDED
30 }; 31 };
31 // Exposed publicly so the keyword table can access it. 32 // Exposed publicly so the keyword table can access it.
32 static const int kCurrentVersionNumber; 33 static const int kCurrentVersionNumber;
33 34
34 WebDatabase(); 35 WebDatabase();
35 virtual ~WebDatabase(); 36 virtual ~WebDatabase();
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 // object. Non-owning. 70 // object. Non-owning.
70 typedef std::map<WebDatabaseTable::TypeKey, WebDatabaseTable*> TableMap; 71 typedef std::map<WebDatabaseTable::TypeKey, WebDatabaseTable*> TableMap;
71 TableMap tables_; 72 TableMap tables_;
72 73
73 scoped_ptr<content::NotificationService> notification_service_; 74 scoped_ptr<content::NotificationService> notification_service_;
74 75
75 DISALLOW_COPY_AND_ASSIGN(WebDatabase); 76 DISALLOW_COPY_AND_ASSIGN(WebDatabase);
76 }; 77 };
77 78
78 #endif // COMPONENTS_WEBDATA_COMMON_WEB_DATABASE_H_ 79 #endif // COMPONENTS_WEBDATA_COMMON_WEB_DATABASE_H_
OLDNEW
« no previous file with comments | « components/webdata/common/web_data_service_test_util.cc ('k') | components/webdata/common/web_database_migration_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698