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

Side by Side Diff: chrome/browser/android/ntp/most_visited_sites_bridge.h

Issue 1983063002: Move classes to //components/ntp_tiles. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_NTP_MOST_VISITED_SITES_BRIDGE_H_ 5 #ifndef CHROME_BROWSER_ANDROID_NTP_MOST_VISITED_SITES_BRIDGE_H_
6 #define CHROME_BROWSER_ANDROID_NTP_MOST_VISITED_SITES_BRIDGE_H_ 6 #define CHROME_BROWSER_ANDROID_NTP_MOST_VISITED_SITES_BRIDGE_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 #include <stddef.h> 9 #include <stddef.h>
10 10
11 #include <memory> 11 #include <memory>
12 #include <string> 12 #include <string>
13 #include <vector> 13 #include <vector>
14 14
15 #include "base/android/scoped_java_ref.h" 15 #include "base/android/scoped_java_ref.h"
16 #include "base/macros.h" 16 #include "base/macros.h"
17 #include "chrome/browser/android/ntp/most_visited_sites.h"
18 #include "chrome/browser/supervised_user/supervised_user_service.h" 17 #include "chrome/browser/supervised_user/supervised_user_service.h"
19 #include "chrome/browser/supervised_user/supervised_user_service_observer.h" 18 #include "chrome/browser/supervised_user/supervised_user_service_observer.h"
19 #include "components/ntp_tiles/most_visited_sites.h"
20 20
21 class Profile; 21 class Profile;
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 MostVisitedSitesBridge { 24 class MostVisitedSitesBridge {
25 public: 25 public:
26 explicit MostVisitedSitesBridge(Profile* profile); 26 explicit MostVisitedSitesBridge(Profile* profile);
27 27
28 void Destroy(JNIEnv* env, const base::android::JavaParamRef<jobject>& obj); 28 void Destroy(JNIEnv* env, const base::android::JavaParamRef<jobject>& obj);
29 29
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 register_observer_; 83 register_observer_;
84 }; 84 };
85 SupervisorBridge supervisor_; 85 SupervisorBridge supervisor_;
86 86
87 MostVisitedSites most_visited_; 87 MostVisitedSites most_visited_;
88 88
89 DISALLOW_COPY_AND_ASSIGN(MostVisitedSitesBridge); 89 DISALLOW_COPY_AND_ASSIGN(MostVisitedSitesBridge);
90 }; 90 };
91 91
92 #endif // CHROME_BROWSER_ANDROID_NTP_MOST_VISITED_SITES_BRIDGE_H_ 92 #endif // CHROME_BROWSER_ANDROID_NTP_MOST_VISITED_SITES_BRIDGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698