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" | 13 #include "chrome/browser/history/history_types.h" |
14 #include "chrome/browser/profiles/profile.h" | 14 #include "chrome/browser/profiles/profile.h" |
15 #include "chrome/browser/search/suggestions/proto/suggestions.pb.h" | 15 #include "components/suggestions/proto/suggestions.pb.h" |
16 #include "content/public/browser/notification_observer.h" | 16 #include "content/public/browser/notification_observer.h" |
17 #include "content/public/browser/notification_registrar.h" | 17 #include "content/public/browser/notification_registrar.h" |
18 | 18 |
19 namespace suggestions { | 19 namespace suggestions { |
20 class SuggestionsService; | 20 class SuggestionsService; |
21 } | 21 } |
22 | 22 |
23 // Provides the list of most visited sites and their thumbnails to Java. | 23 // Provides the list of most visited sites and their thumbnails to Java. |
24 class MostVisitedSites : public content::NotificationObserver { | 24 class MostVisitedSites : public content::NotificationObserver { |
25 public: | 25 public: |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 enum MostVisitedSource { | 123 enum MostVisitedSource { |
124 TOP_SITES, | 124 TOP_SITES, |
125 SUGGESTIONS_SERVICE | 125 SUGGESTIONS_SERVICE |
126 }; | 126 }; |
127 MostVisitedSource mv_source_; | 127 MostVisitedSource mv_source_; |
128 | 128 |
129 DISALLOW_COPY_AND_ASSIGN(MostVisitedSites); | 129 DISALLOW_COPY_AND_ASSIGN(MostVisitedSites); |
130 }; | 130 }; |
131 | 131 |
132 #endif // CHROME_BROWSER_ANDROID_MOST_VISITED_SITES_H_ | 132 #endif // CHROME_BROWSER_ANDROID_MOST_VISITED_SITES_H_ |
OLD | NEW |