OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_MOST_VISITED_SITES_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_MOST_VISITED_SITES_H_ |
6 #define CHROME_BROWSER_ANDROID_MOST_VISITED_SITES_H_ | 6 #define CHROME_BROWSER_ANDROID_MOST_VISITED_SITES_H_ |
7 | 7 |
8 #include <jni.h> | 8 #include <jni.h> |
9 | 9 |
10 #include "base/android/scoped_java_ref.h" | 10 #include "base/android/scoped_java_ref.h" |
11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
12 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
13 #include "chrome/browser/history/history_types.h" | |
14 #include "chrome/browser/profiles/profile.h" | 13 #include "chrome/browser/profiles/profile.h" |
15 #include "chrome/browser/sync/profile_sync_service_observer.h" | 14 #include "chrome/browser/sync/profile_sync_service_observer.h" |
| 15 #include "components/history/core/browser/history_types.h" |
16 #include "components/suggestions/proto/suggestions.pb.h" | 16 #include "components/suggestions/proto/suggestions.pb.h" |
17 #include "content/public/browser/notification_observer.h" | 17 #include "content/public/browser/notification_observer.h" |
18 #include "content/public/browser/notification_registrar.h" | 18 #include "content/public/browser/notification_registrar.h" |
19 | 19 |
20 namespace suggestions { | 20 namespace suggestions { |
21 class SuggestionsService; | 21 class SuggestionsService; |
22 } | 22 } |
23 | 23 |
24 // Provides the list of most visited sites and their thumbnails to Java. | 24 // Provides the list of most visited sites and their thumbnails to Java. |
25 class MostVisitedSites : public ProfileSyncServiceObserver, | 25 class MostVisitedSites : public ProfileSyncServiceObserver, |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 enum MostVisitedSource { | 128 enum MostVisitedSource { |
129 TOP_SITES, | 129 TOP_SITES, |
130 SUGGESTIONS_SERVICE | 130 SUGGESTIONS_SERVICE |
131 }; | 131 }; |
132 MostVisitedSource mv_source_; | 132 MostVisitedSource mv_source_; |
133 | 133 |
134 DISALLOW_COPY_AND_ASSIGN(MostVisitedSites); | 134 DISALLOW_COPY_AND_ASSIGN(MostVisitedSites); |
135 }; | 135 }; |
136 | 136 |
137 #endif // CHROME_BROWSER_ANDROID_MOST_VISITED_SITES_H_ | 137 #endif // CHROME_BROWSER_ANDROID_MOST_VISITED_SITES_H_ |
OLD | NEW |