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

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

Issue 12225076: Delete most web intents code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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
« no previous file with comments | « chrome/browser/webdata/web_data_service.cc ('k') | chrome/browser/webdata/web_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_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"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 42
43 // Transactions management 43 // Transactions management
44 void BeginTransaction(); 44 void BeginTransaction();
45 void CommitTransaction(); 45 void CommitTransaction();
46 46
47 virtual AutofillTable* GetAutofillTable(); 47 virtual AutofillTable* GetAutofillTable();
48 virtual KeywordTable* GetKeywordTable(); 48 virtual KeywordTable* GetKeywordTable();
49 virtual LoginsTable* GetLoginsTable(); 49 virtual LoginsTable* GetLoginsTable();
50 virtual TokenServiceTable* GetTokenServiceTable(); 50 virtual TokenServiceTable* GetTokenServiceTable();
51 virtual WebAppsTable* GetWebAppsTable(); 51 virtual WebAppsTable* GetWebAppsTable();
52 #if defined(ENABLE_WEB_INTENTS)
53 virtual WebIntentsTable* GetWebIntentsTable();
54 #endif
55 52
56 // Exposed for testing only. 53 // Exposed for testing only.
57 sql::Connection* GetSQLConnection(); 54 sql::Connection* GetSQLConnection();
58 55
59 private: 56 private:
60 // Used by |Init()| to migration database schema from older versions to 57 // Used by |Init()| to migration database schema from older versions to
61 // current version. Requires the |app_locale| to be passed as a parameter as 58 // current version. Requires the |app_locale| to be passed as a parameter as
62 // the locale can only safely be queried on the UI thread. 59 // the locale can only safely be queried on the UI thread.
63 sql::InitStatus MigrateOldVersionsAsNeeded(const std::string& app_locale); 60 sql::InitStatus MigrateOldVersionsAsNeeded(const std::string& app_locale);
64 61
65 sql::Connection db_; 62 sql::Connection db_;
66 sql::MetaTable meta_table_; 63 sql::MetaTable meta_table_;
67 64
68 scoped_ptr<AutofillTable> autofill_table_; 65 scoped_ptr<AutofillTable> autofill_table_;
69 scoped_ptr<KeywordTable> keyword_table_; 66 scoped_ptr<KeywordTable> keyword_table_;
70 scoped_ptr<LoginsTable> logins_table_; 67 scoped_ptr<LoginsTable> logins_table_;
71 scoped_ptr<TokenServiceTable> token_service_table_; 68 scoped_ptr<TokenServiceTable> token_service_table_;
72 scoped_ptr<WebAppsTable> web_apps_table_; 69 scoped_ptr<WebAppsTable> web_apps_table_;
70 // TODO(thakis): Add a migration to delete this table, then remove this.
73 scoped_ptr<WebIntentsTable> web_intents_table_; 71 scoped_ptr<WebIntentsTable> web_intents_table_;
74 72
75 scoped_ptr<content::NotificationService> notification_service_; 73 scoped_ptr<content::NotificationService> notification_service_;
76 74
77 DISALLOW_COPY_AND_ASSIGN(WebDatabase); 75 DISALLOW_COPY_AND_ASSIGN(WebDatabase);
78 }; 76 };
79 77
80 #endif // CHROME_BROWSER_WEBDATA_WEB_DATABASE_H_ 78 #endif // CHROME_BROWSER_WEBDATA_WEB_DATABASE_H_
OLDNEW
« no previous file with comments | « chrome/browser/webdata/web_data_service.cc ('k') | chrome/browser/webdata/web_database.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698