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

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

Issue 934083003: Cleanup HistoryService and HistoryBackend interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@android-backend-provider
Patch Set: Created 5 years, 10 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
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 <list> 8 #include <list>
9 #include <set> 9 #include <set>
10 10
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 // Android_urls and android_cache database is only updated before the related 42 // Android_urls and android_cache database is only updated before the related
43 // methods are accessed. A data change will not triger the update. 43 // methods are accessed. A data change will not triger the update.
44 // 44 //
45 // The android_cache database is deleted when shutdown. 45 // The android_cache database is deleted when shutdown.
46 class AndroidProviderBackend { 46 class AndroidProviderBackend {
47 public: 47 public:
48 AndroidProviderBackend(const base::FilePath& cache_db_name, 48 AndroidProviderBackend(const base::FilePath& cache_db_name,
49 HistoryDatabase* history_db, 49 HistoryDatabase* history_db,
50 ThumbnailDatabase* thumbnail_db, 50 ThumbnailDatabase* thumbnail_db,
51 HistoryClient* history_client, 51 HistoryClient* history_client,
52 HistoryBackendNotifier* nofifier); 52 HistoryBackendNotifier* notifier);
53 53
54 ~AndroidProviderBackend(); 54 ~AndroidProviderBackend();
55 55
56 // Bookmarks ---------------------------------------------------------------- 56 // Bookmarks ----------------------------------------------------------------
57 // 57 //
58 // Runs the given query and returns the result on success, NULL on error or 58 // Runs the given query and returns the result on success, NULL on error or
59 // the |projections| is empty. 59 // the |projections| is empty.
60 // 60 //
61 // |projections| is the vector of the result columns. 61 // |projections| is the vector of the result columns.
62 // |selection| is the SQL WHERE clause without 'WHERE'. 62 // |selection| is the SQL WHERE clause without 'WHERE'.
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 bool initialized_; 340 bool initialized_;
341 341
342 HistoryBackendNotifier* notifier_; 342 HistoryBackendNotifier* notifier_;
343 343
344 DISALLOW_COPY_AND_ASSIGN(AndroidProviderBackend); 344 DISALLOW_COPY_AND_ASSIGN(AndroidProviderBackend);
345 }; 345 };
346 346
347 } // namespace history 347 } // namespace history
348 348
349 #endif // CHROME_BROWSER_HISTORY_ANDROID_ANDROID_PROVIDER_BACKEND_H_ 349 #endif // CHROME_BROWSER_HISTORY_ANDROID_ANDROID_PROVIDER_BACKEND_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698