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

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

Issue 370603003: Code cleanup (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cancelable_task_tracker.7
Patch Set: Rebase Created 6 years, 5 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_HISTORY_PROVIDER_SERVICE_H_ 5 #ifndef CHROME_BROWSER_HISTORY_ANDROID_ANDROID_HISTORY_PROVIDER_SERVICE_H_
6 #define CHROME_BROWSER_HISTORY_ANDROID_ANDROID_HISTORY_PROVIDER_SERVICE_H_ 6 #define CHROME_BROWSER_HISTORY_ANDROID_ANDROID_HISTORY_PROVIDER_SERVICE_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/task/cancelable_task_tracker.h" 10 #include "base/task/cancelable_task_tracker.h"
11 #include "chrome/browser/common/cancelable_request.h"
12 #include "chrome/browser/history/android/android_history_types.h" 11 #include "chrome/browser/history/android/android_history_types.h"
13 #include "sql/statement.h" 12 #include "sql/statement.h"
14 13
15 class Profile; 14 class Profile;
16 15
17 // This class provides the methods to communicate with history backend service 16 // This class provides the methods to communicate with history backend service
18 // for the Android content provider. 17 // for the Android content provider.
19 // The methods of this class must run on the UI thread to cooperate with the 18 // The methods of this class must run on the UI thread to cooperate with the
20 // BookmarkModel task posted in the DB thread. 19 // BookmarkModel task posted in the DB thread.
21 class AndroidHistoryProviderService : public CancelableRequestProvider { 20 class AndroidHistoryProviderService {
22 public: 21 public:
23 explicit AndroidHistoryProviderService(Profile* profile); 22 explicit AndroidHistoryProviderService(Profile* profile);
24 virtual ~AndroidHistoryProviderService(); 23 virtual ~AndroidHistoryProviderService();
25 24
26 // The callback definitions ------------------------------------------------ 25 // The callback definitions ------------------------------------------------
27 26
28 // Callback invoked when a method creating an |AndroidStatement| object is 27 // Callback invoked when a method creating an |AndroidStatement| object is
29 // complete. The pointer is NULL if the creation failed. 28 // complete. The pointer is NULL if the creation failed.
30 typedef base::Callback<void(history::AndroidStatement*)> QueryCallback; 29 typedef base::Callback<void(history::AndroidStatement*)> QueryCallback;
31 30
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 const QueryCallback& callback, 167 const QueryCallback& callback,
169 base::CancelableTaskTracker* tracker); 168 base::CancelableTaskTracker* tracker);
170 169
171 private: 170 private:
172 Profile* profile_; 171 Profile* profile_;
173 172
174 DISALLOW_COPY_AND_ASSIGN(AndroidHistoryProviderService); 173 DISALLOW_COPY_AND_ASSIGN(AndroidHistoryProviderService);
175 }; 174 };
176 175
177 #endif // CHROME_BROWSER_HISTORY_ANDROID_ANDROID_HISTORY_PROVIDER_SERVICE_H_ 176 #endif // CHROME_BROWSER_HISTORY_ANDROID_ANDROID_HISTORY_PROVIDER_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698