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

Side by Side Diff: chrome/browser/android/provider/chrome_browser_provider.h

Issue 815983002: Topsites become keyedService based. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove extra inclusion from testing_profile.h 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_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 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 207
208 JavaObjectWeakGlobalRef weak_java_provider_; 208 JavaObjectWeakGlobalRef weak_java_provider_;
209 209
210 // Profile must outlive this object. 210 // Profile must outlive this object.
211 // 211 //
212 // BookmarkModel, HistoryService and history::TopSites lifetime is bound to 212 // BookmarkModel, HistoryService and history::TopSites lifetime is bound to
213 // the lifetime of Profile, they are safe to use as long as the Profile is 213 // the lifetime of Profile, they are safe to use as long as the Profile is
214 // alive. 214 // alive.
215 Profile* profile_; 215 Profile* profile_;
216 bookmarks::BookmarkModel* bookmark_model_; 216 bookmarks::BookmarkModel* bookmark_model_;
217 history::TopSites* top_sites_; 217 scoped_refptr<history::TopSites> top_sites_;
218 FaviconService* favicon_service_; 218 FaviconService* favicon_service_;
219 219
220 scoped_ptr<AndroidHistoryProviderService> service_; 220 scoped_ptr<AndroidHistoryProviderService> service_;
221 221
222 base::CancelableTaskTracker cancelable_task_tracker_; 222 base::CancelableTaskTracker cancelable_task_tracker_;
223 223
224 // Used to register/unregister notification observer. 224 // Used to register/unregister notification observer.
225 content::NotificationRegistrar notification_registrar_; 225 content::NotificationRegistrar notification_registrar_;
226 ScopedObserver<HistoryService, HistoryServiceObserver> 226 ScopedObserver<HistoryService, HistoryServiceObserver>
227 history_service_observer_; 227 history_service_observer_;
228 228
229 bool handling_extensive_changes_; 229 bool handling_extensive_changes_;
230 230
231 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserProvider); 231 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserProvider);
232 }; 232 };
233 233
234 #endif // CHROME_BROWSER_ANDROID_PROVIDER_CHROME_BROWSER_PROVIDER_H_ 234 #endif // CHROME_BROWSER_ANDROID_PROVIDER_CHROME_BROWSER_PROVIDER_H_
OLDNEW
« no previous file with comments | « chrome/browser/android/most_visited_sites.cc ('k') | chrome/browser/android/provider/chrome_browser_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698