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

Side by Side Diff: chrome/browser/interests/android/interests_service.h

Issue 2122993003: Remove unused Interests code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Forgot unit test target. Created 4 years, 5 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
« no previous file with comments | « chrome/browser/interests/OWNERS ('k') | chrome/browser/interests/android/interests_service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_INTERESTS_ANDROID_INTERESTS_SERVICE_H_
6 #define CHROME_BROWSER_INTERESTS_ANDROID_INTERESTS_SERVICE_H_
7
8 #include <jni.h>
9
10 #include <memory>
11
12 #include "base/android/scoped_java_ref.h"
13 #include "base/macros.h"
14 #include "base/memory/weak_ptr.h"
15 #include "chrome/browser/interests/interests_fetcher.h"
16
17 class Profile;
18
19 // Provides a list of user interests to Java
20 class InterestsService {
21 public:
22 explicit InterestsService(Profile* profile);
23 virtual ~InterestsService();
24
25 void Destroy(JNIEnv* env, const base::android::JavaParamRef<jobject>& obj);
26 static bool Register(JNIEnv* env);
27 void GetInterests(JNIEnv* env,
28 const base::android::JavaParamRef<jobject>& obj,
29 const base::android::JavaParamRef<jobject>& j_callback);
30
31 private:
32 void OnObtainedInterests(
33 std::unique_ptr<InterestsFetcher> fetcher,
34 const base::android::ScopedJavaGlobalRef<jobject>& j_callback,
35 std::unique_ptr<std::vector<InterestsFetcher::Interest>> interests);
36
37 Profile* profile_;
38
39 base::WeakPtrFactory<InterestsService> weak_ptr_factory_;
40
41 DISALLOW_COPY_AND_ASSIGN(InterestsService);
42 };
43
44 #endif // CHROME_BROWSER_INTERESTS_ANDROID_INTERESTS_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/interests/OWNERS ('k') | chrome/browser/interests/android/interests_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698