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

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

Issue 10825214: AndroidProvider: Add history for bookmarks if it doesn't exist. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add set_hidden Created 8 years, 4 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 | « no previous file | chrome/browser/history/android/android_provider_backend.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_PROVIDER_BACKEND_H_ 5 #ifndef CHROME_BROWSER_HISTORY_ANDROID_ANDROID_PROVIDER_BACKEND_H_
6 #define CHROME_BROWSER_HISTORY_ANDROID_ANDROID_PROVIDER_BACKEND_H_ 6 #define CHROME_BROWSER_HISTORY_ANDROID_ANDROID_PROVIDER_BACKEND_H_
7 7
8 #include <set> 8 #include <set>
9 9
10 #include "base/file_path.h" 10 #include "base/file_path.h"
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 // |selection_args| is the arguments for the WHERE clause. 200 // |selection_args| is the arguments for the WHERE clause.
201 bool UpdateHistoryAndBookmarks(const HistoryAndBookmarkRow& row, 201 bool UpdateHistoryAndBookmarks(const HistoryAndBookmarkRow& row,
202 const std::string& selection, 202 const std::string& selection,
203 const std::vector<string16>& selection_args, 203 const std::vector<string16>& selection_args,
204 int* update_count, 204 int* update_count,
205 HistoryNotifications* notifications); 205 HistoryNotifications* notifications);
206 206
207 // Inserts the given values and returns the URLID of the inserted row. 207 // Inserts the given values and returns the URLID of the inserted row.
208 // The notifications are returned in |notifications| and the ownership of them 208 // The notifications are returned in |notifications| and the ownership of them
209 // is transfered to caller. 209 // is transfered to caller.
210 // The EnsureInitializedAndUpdated() will not be invoked if the
211 // |ensure_initialized_and_updated| is false.
210 AndroidURLID InsertHistoryAndBookmark(const HistoryAndBookmarkRow& values, 212 AndroidURLID InsertHistoryAndBookmark(const HistoryAndBookmarkRow& values,
211 HistoryNotifications* notifications); 213 HistoryNotifications* notifications,
214 bool ensure_initialized_and_updated);
212 215
213 // Deletes the specified rows and returns the number of the deleted rows in 216 // Deletes the specified rows and returns the number of the deleted rows in
214 // |deleted_count|. 217 // |deleted_count|.
215 // |selection| is the SQL WHERE clause without 'WHERE'. 218 // |selection| is the SQL WHERE clause without 'WHERE'.
216 // |selection_args| is the arguments for the WHERE clause. 219 // |selection_args| is the arguments for the WHERE clause.
217 // 220 //
218 // The notifications are returned in |notifications| and the ownership of them 221 // The notifications are returned in |notifications| and the ownership of them
219 // is transfered to the caller. 222 // is transfered to the caller.
220 // if |selection| is empty all history and bookmarks are deleted. 223 // if |selection| is empty all history and bookmarks are deleted.
221 bool DeleteHistoryAndBookmarks(const std::string& selection, 224 bool DeleteHistoryAndBookmarks(const std::string& selection,
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 bool initialized_; 343 bool initialized_;
341 344
342 HistoryBackend::Delegate* delegate_; 345 HistoryBackend::Delegate* delegate_;
343 346
344 DISALLOW_COPY_AND_ASSIGN(AndroidProviderBackend); 347 DISALLOW_COPY_AND_ASSIGN(AndroidProviderBackend);
345 }; 348 };
346 349
347 } // namespace history 350 } // namespace history
348 351
349 #endif // CHROME_BROWSER_HISTORY_ANDROID_ANDROID_PROVIDER_BACKEND_H_ 352 #endif // CHROME_BROWSER_HISTORY_ANDROID_ANDROID_PROVIDER_BACKEND_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/history/android/android_provider_backend.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698