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

Side by Side Diff: chrome/browser/webdata/web_database.h

Issue 12163003: Add FilePath to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
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_WEBDATA_WEB_DATABASE_H_ 5 #ifndef CHROME_BROWSER_WEBDATA_WEB_DATABASE_H_
6 #define CHROME_BROWSER_WEBDATA_WEB_DATABASE_H_ 6 #define CHROME_BROWSER_WEBDATA_WEB_DATABASE_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "sql/connection.h" 9 #include "sql/connection.h"
10 #include "sql/init_status.h" 10 #include "sql/init_status.h"
11 #include "sql/meta_table.h" 11 #include "sql/meta_table.h"
12 12
13 class AutofillTable; 13 class AutofillTable;
14 class FilePath;
15 class KeywordTable; 14 class KeywordTable;
16 class LoginsTable; 15 class LoginsTable;
17 class TokenServiceTable; 16 class TokenServiceTable;
18 class WebAppsTable; 17 class WebAppsTable;
19 class WebIntentsTable; 18 class WebIntentsTable;
20 19
20 namespace base {
21 class FilePath;
22 }
23
21 namespace content { 24 namespace content {
22 class NotificationService; 25 class NotificationService;
23 } 26 }
24 27
25 // This class manages a SQLite database that stores various web page meta data. 28 // This class manages a SQLite database that stores various web page meta data.
26 class WebDatabase { 29 class WebDatabase {
27 public: 30 public:
28 // Exposed publicly so the keyword table can access it. 31 // Exposed publicly so the keyword table can access it.
29 static const int kCurrentVersionNumber; 32 static const int kCurrentVersionNumber;
30 33
31 WebDatabase(); 34 WebDatabase();
32 virtual ~WebDatabase(); 35 virtual ~WebDatabase();
33 36
34 // Initialize the database given a name. The name defines where the SQLite 37 // Initialize the database given a name. The name defines where the SQLite
35 // file is. If this returns an error code, no other method should be called. 38 // file is. If this returns an error code, no other method should be called.
36 // Requires the |app_locale| to be passed as a parameter as the locale can 39 // Requires the |app_locale| to be passed as a parameter as the locale can
37 // only safely be queried on the UI thread. 40 // only safely be queried on the UI thread.
38 sql::InitStatus Init(const FilePath& db_name, const std::string& app_locale); 41 sql::InitStatus Init(const base::FilePath& db_name, const std::string& app_loc ale);
39 42
40 // Transactions management 43 // Transactions management
41 void BeginTransaction(); 44 void BeginTransaction();
42 void CommitTransaction(); 45 void CommitTransaction();
43 46
44 virtual AutofillTable* GetAutofillTable(); 47 virtual AutofillTable* GetAutofillTable();
45 virtual KeywordTable* GetKeywordTable(); 48 virtual KeywordTable* GetKeywordTable();
46 virtual LoginsTable* GetLoginsTable(); 49 virtual LoginsTable* GetLoginsTable();
47 virtual TokenServiceTable* GetTokenServiceTable(); 50 virtual TokenServiceTable* GetTokenServiceTable();
48 virtual WebAppsTable* GetWebAppsTable(); 51 virtual WebAppsTable* GetWebAppsTable();
(...skipping 17 matching lines...) Expand all
66 scoped_ptr<TokenServiceTable> token_service_table_; 69 scoped_ptr<TokenServiceTable> token_service_table_;
67 scoped_ptr<WebAppsTable> web_apps_table_; 70 scoped_ptr<WebAppsTable> web_apps_table_;
68 scoped_ptr<WebIntentsTable> web_intents_table_; 71 scoped_ptr<WebIntentsTable> web_intents_table_;
69 72
70 scoped_ptr<content::NotificationService> notification_service_; 73 scoped_ptr<content::NotificationService> notification_service_;
71 74
72 DISALLOW_COPY_AND_ASSIGN(WebDatabase); 75 DISALLOW_COPY_AND_ASSIGN(WebDatabase);
73 }; 76 };
74 77
75 #endif // CHROME_BROWSER_WEBDATA_WEB_DATABASE_H_ 78 #endif // CHROME_BROWSER_WEBDATA_WEB_DATABASE_H_
OLDNEW
« no previous file with comments | « chrome/browser/value_store/value_store_frontend.h ('k') | chrome/browser/webdata/web_database.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698