| 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_HISTORY_ANDROID_ANDROID_URLS_DATABASE_H_ | 5 #ifndef CHROME_BROWSER_HISTORY_ANDROID_ANDROID_URLS_DATABASE_H_ |
| 6 #define CHROME_BROWSER_HISTORY_ANDROID_ANDROID_URLS_DATABASE_H_ | 6 #define CHROME_BROWSER_HISTORY_ANDROID_ANDROID_URLS_DATABASE_H_ |
| 7 | 7 |
| 8 #include "chrome/browser/history/android/android_history_types.h" | 8 #include "chrome/browser/history/android/android_history_types.h" |
| 9 | 9 |
| 10 namespace history { | 10 namespace history { |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 // Updates the row of |id| with the given |raw_url| and |url_id|. Returns true | 49 // Updates the row of |id| with the given |raw_url| and |url_id|. Returns true |
| 50 // on success. | 50 // on success. |
| 51 bool UpdateAndroidURLRow(AndroidURLID id, | 51 bool UpdateAndroidURLRow(AndroidURLID id, |
| 52 const std::string&raw_url, | 52 const std::string&raw_url, |
| 53 URLID url_id); | 53 URLID url_id); |
| 54 | 54 |
| 55 // Clears all the rows in android_urls table, returns true on success, false | 55 // Clears all the rows in android_urls table, returns true on success, false |
| 56 // on error. | 56 // on error. |
| 57 bool ClearAndroidURLRows(); | 57 bool ClearAndroidURLRows(); |
| 58 | 58 |
| 59 // Migrate from version 21 to 22. |
| 60 bool MigrateToVersion22(); |
| 61 |
| 59 protected: | 62 protected: |
| 60 // Returns the database for the functions in this interface. The decendent of | 63 // Returns the database for the functions in this interface. The decendent of |
| 61 // this class implements these functions to return its objects. | 64 // this class implements these functions to return its objects. |
| 62 virtual sql::Connection& GetDB() = 0; | 65 virtual sql::Connection& GetDB() = 0; |
| 63 | 66 |
| 64 private: | 67 private: |
| 65 DISALLOW_COPY_AND_ASSIGN(AndroidURLsDatabase); | 68 DISALLOW_COPY_AND_ASSIGN(AndroidURLsDatabase); |
| 66 }; | 69 }; |
| 67 | 70 |
| 68 } // namespace history | 71 } // namespace history |
| 69 | 72 |
| 70 #endif // CHROME_BROWSER_HISTORY_ANDROID_ANDROID_URLS_DATABASE_H_ | 73 #endif // CHROME_BROWSER_HISTORY_ANDROID_ANDROID_URLS_DATABASE_H_ |
| OLD | NEW |