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

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

Issue 12518017: Generalize migration code in WebDatabase. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to parent. Created 7 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 #ifndef CHROME_BROWSER_WEBDATA_WEB_INTENTS_TABLE_H_ 5 #ifndef CHROME_BROWSER_WEBDATA_WEB_INTENTS_TABLE_H_
6 #define CHROME_BROWSER_WEBDATA_WEB_INTENTS_TABLE_H_ 6 #define CHROME_BROWSER_WEBDATA_WEB_INTENTS_TABLE_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 // The defaults are scoped by action, then type, then url prefix. 49 // The defaults are scoped by action, then type, then url prefix.
50 // 50 //
51 class WebIntentsTable : public WebDatabaseTable { 51 class WebIntentsTable : public WebDatabaseTable {
52 public: 52 public:
53 WebIntentsTable(sql::Connection* db, sql::MetaTable* meta_table); 53 WebIntentsTable(sql::Connection* db, sql::MetaTable* meta_table);
54 virtual ~WebIntentsTable(); 54 virtual ~WebIntentsTable();
55 55
56 // WebDatabaseTable implementation. 56 // WebDatabaseTable implementation.
57 virtual bool Init() OVERRIDE; 57 virtual bool Init() OVERRIDE;
58 virtual bool IsSyncable() OVERRIDE; 58 virtual bool IsSyncable() OVERRIDE;
59 virtual bool MigrateToVersion(int version,
60 const std::string& app_locale,
61 bool* update_compatible_version) OVERRIDE;
59 62
60 // Adds "scheme" column to the web_intents and web_intents_defaults tables. 63 // Adds "scheme" column to the web_intents and web_intents_defaults tables.
61 bool MigrateToVersion46AddSchemeColumn(); 64 bool MigrateToVersion46AddSchemeColumn();
62 65
63 private: 66 private:
64 DISALLOW_COPY_AND_ASSIGN(WebIntentsTable); 67 DISALLOW_COPY_AND_ASSIGN(WebIntentsTable);
65 }; 68 };
66 69
67 #endif // CHROME_BROWSER_WEBDATA_WEB_INTENTS_TABLE_H_ 70 #endif // CHROME_BROWSER_WEBDATA_WEB_INTENTS_TABLE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698