| 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_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 "chrome/browser/cancelable_request.h" | 10 #include "chrome/browser/common/cancelable_request.h" |
| 11 #include "chrome/browser/history/android/android_history_types.h" | 11 #include "chrome/browser/history/android/android_history_types.h" |
| 12 #include "sql/statement.h" | 12 #include "sql/statement.h" |
| 13 | 13 |
| 14 class Profile; | 14 class Profile; |
| 15 | 15 |
| 16 // This class provides the methods to communicate with history backend service | 16 // This class provides the methods to communicate with history backend service |
| 17 // for the Android content provider. | 17 // for the Android content provider. |
| 18 // 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 |
| 19 // BookmarkModel task posted in the DB thread. | 19 // BookmarkModel task posted in the DB thread. |
| 20 class AndroidHistoryProviderService : public CancelableRequestProvider { | 20 class AndroidHistoryProviderService : public CancelableRequestProvider { |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 CancelableRequestConsumerBase* consumer, | 169 CancelableRequestConsumerBase* consumer, |
| 170 const QueryCallback& callback); | 170 const QueryCallback& callback); |
| 171 | 171 |
| 172 private: | 172 private: |
| 173 Profile* profile_; | 173 Profile* profile_; |
| 174 | 174 |
| 175 DISALLOW_COPY_AND_ASSIGN(AndroidHistoryProviderService); | 175 DISALLOW_COPY_AND_ASSIGN(AndroidHistoryProviderService); |
| 176 }; | 176 }; |
| 177 | 177 |
| 178 #endif // CHROME_BROWSER_HISTORY_ANDROID_ANDROID_HISTORY_PROVIDER_SERVICE_H_ | 178 #endif // CHROME_BROWSER_HISTORY_ANDROID_ANDROID_HISTORY_PROVIDER_SERVICE_H_ |
| OLD | NEW |