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

Side by Side Diff: chrome/browser/history/android/android_urls_database.h

Issue 10067030: Upgrade the history database to version 23 (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Sync and update test data Created 8 years, 8 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
« no previous file with comments | « no previous file | chrome/browser/history/android/android_urls_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_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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/history/android/android_urls_database.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698