| OLD | NEW |
| 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 class WebIntentsTable : public WebDatabaseTable { | 52 class WebIntentsTable : public WebDatabaseTable { |
| 53 public: | 53 public: |
| 54 WebIntentsTable(); | 54 WebIntentsTable(); |
| 55 virtual ~WebIntentsTable(); | 55 virtual ~WebIntentsTable(); |
| 56 | 56 |
| 57 // Retrieves the WebIntentsTable* owned by |database|. | 57 // Retrieves the WebIntentsTable* owned by |database|. |
| 58 static WebIntentsTable* FromWebDatabase(WebDatabase* database); | 58 static WebIntentsTable* FromWebDatabase(WebDatabase* database); |
| 59 | 59 |
| 60 // WebDatabaseTable implementation. | 60 // WebDatabaseTable implementation. |
| 61 virtual WebDatabaseTable::TypeKey GetTypeKey() const OVERRIDE; | 61 virtual WebDatabaseTable::TypeKey GetTypeKey() const OVERRIDE; |
| 62 virtual bool Init(sql::Connection* db, sql::MetaTable* meta_table) OVERRIDE; | 62 virtual bool CreateTablesIfNecessary() OVERRIDE; |
| 63 virtual bool IsSyncable() OVERRIDE; | 63 virtual bool IsSyncable() OVERRIDE; |
| 64 virtual bool MigrateToVersion(int version, | 64 virtual bool MigrateToVersion(int version, |
| 65 bool* update_compatible_version) OVERRIDE; | 65 bool* update_compatible_version) OVERRIDE; |
| 66 | 66 |
| 67 // Adds "scheme" column to the web_intents and web_intents_defaults tables. | 67 // Adds "scheme" column to the web_intents and web_intents_defaults tables. |
| 68 bool MigrateToVersion46AddSchemeColumn(); | 68 bool MigrateToVersion46AddSchemeColumn(); |
| 69 | 69 |
| 70 private: | 70 private: |
| 71 DISALLOW_COPY_AND_ASSIGN(WebIntentsTable); | 71 DISALLOW_COPY_AND_ASSIGN(WebIntentsTable); |
| 72 }; | 72 }; |
| 73 | 73 |
| 74 #endif // CHROME_BROWSER_WEBDATA_WEB_INTENTS_TABLE_H_ | 74 #endif // CHROME_BROWSER_WEBDATA_WEB_INTENTS_TABLE_H_ |
| OLD | NEW |