| 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_ANDROID_PROVIDER_CHROME_BROWSER_PROVIDER_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_PROVIDER_CHROME_BROWSER_PROVIDER_H_ |
| 6 #define CHROME_BROWSER_ANDROID_PROVIDER_CHROME_BROWSER_PROVIDER_H_ | 6 #define CHROME_BROWSER_ANDROID_PROVIDER_CHROME_BROWSER_PROVIDER_H_ |
| 7 | 7 |
| 8 #include "base/android/jni_weak_ref.h" | 8 #include "base/android/jni_weak_ref.h" |
| 9 #include "base/android/scoped_java_ref.h" | 9 #include "base/android/scoped_java_ref.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 // Profile must outlive this object. | 202 // Profile must outlive this object. |
| 203 // | 203 // |
| 204 // BookmarkModel, HistoryService and history::TopSites lifetime is bound to | 204 // BookmarkModel, HistoryService and history::TopSites lifetime is bound to |
| 205 // the lifetime of Profile, they are safe to use as long as the Profile is | 205 // the lifetime of Profile, they are safe to use as long as the Profile is |
| 206 // alive. | 206 // alive. |
| 207 Profile* profile_; | 207 Profile* profile_; |
| 208 BookmarkModel* bookmark_model_; | 208 BookmarkModel* bookmark_model_; |
| 209 history::TopSites* top_sites_; | 209 history::TopSites* top_sites_; |
| 210 | 210 |
| 211 scoped_ptr<AndroidHistoryProviderService> service_; | 211 scoped_ptr<AndroidHistoryProviderService> service_; |
| 212 scoped_ptr<FaviconService> favicon_service_; | |
| 213 | 212 |
| 214 base::CancelableTaskTracker cancelable_task_tracker_; | 213 base::CancelableTaskTracker cancelable_task_tracker_; |
| 215 | 214 |
| 216 // Used to register/unregister notification observer. | 215 // Used to register/unregister notification observer. |
| 217 content::NotificationRegistrar notification_registrar_; | 216 content::NotificationRegistrar notification_registrar_; |
| 218 ScopedObserver<HistoryService, HistoryServiceObserver> | 217 ScopedObserver<HistoryService, HistoryServiceObserver> |
| 219 history_service_observer_; | 218 history_service_observer_; |
| 220 | 219 |
| 221 bool handling_extensive_changes_; | 220 bool handling_extensive_changes_; |
| 222 | 221 |
| 223 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserProvider); | 222 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserProvider); |
| 224 }; | 223 }; |
| 225 | 224 |
| 226 #endif // CHROME_BROWSER_ANDROID_PROVIDER_CHROME_BROWSER_PROVIDER_H_ | 225 #endif // CHROME_BROWSER_ANDROID_PROVIDER_CHROME_BROWSER_PROVIDER_H_ |
| OLD | NEW |