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

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

Issue 2781583002: [Content suggestions] Add a function to the service API to fetch favicons (Closed)
Patch Set: Expand the FakeSuggestionsSource Created 3 years, 9 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_NTP_SNIPPETS_BRIDGE_H_ 5 #ifndef CHROME_BROWSER_ANDROID_NTP_NTP_SNIPPETS_BRIDGE_H_
6 #define CHROME_BROWSER_ANDROID_NTP_NTP_SNIPPETS_BRIDGE_H_ 6 #define CHROME_BROWSER_ANDROID_NTP_NTP_SNIPPETS_BRIDGE_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"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 const base::android::JavaParamRef<jobject>& obj, 53 const base::android::JavaParamRef<jobject>& obj,
54 jint j_category_id); 54 jint j_category_id);
55 55
56 void FetchSuggestionImage( 56 void FetchSuggestionImage(
57 JNIEnv* env, 57 JNIEnv* env,
58 const base::android::JavaParamRef<jobject>& obj, 58 const base::android::JavaParamRef<jobject>& obj,
59 jint j_category_id, 59 jint j_category_id,
60 const base::android::JavaParamRef<jstring>& id_within_category, 60 const base::android::JavaParamRef<jstring>& id_within_category,
61 const base::android::JavaParamRef<jobject>& j_callback); 61 const base::android::JavaParamRef<jobject>& j_callback);
62 62
63 void FetchSuggestionFavicon(
64 JNIEnv* env,
65 const base::android::JavaParamRef<jobject>& obj,
66 jint j_category_id,
67 const base::android::JavaParamRef<jstring>& id_within_category,
68 jint j_minimum_size_in_pixel,
69 jint j_desired_size_in_pixel,
70 const base::android::JavaParamRef<jobject>& j_callback);
71
63 void Fetch( 72 void Fetch(
64 JNIEnv* env, 73 JNIEnv* env,
65 const base::android::JavaParamRef<jobject>& obj, 74 const base::android::JavaParamRef<jobject>& obj,
66 jint j_category_id, 75 jint j_category_id,
67 const base::android::JavaParamRef<jobjectArray>& j_displayed_suggestions); 76 const base::android::JavaParamRef<jobjectArray>& j_displayed_suggestions);
68 77
69 void ReloadSuggestions(JNIEnv* env, 78 void ReloadSuggestions(JNIEnv* env,
70 const base::android::JavaParamRef<jobject>& obj); 79 const base::android::JavaParamRef<jobject>& obj);
71 80
72 void DismissSuggestion( 81 void DismissSuggestion(
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 177
169 // The Java SnippetsBridge. 178 // The Java SnippetsBridge.
170 base::android::ScopedJavaGlobalRef<jobject> bridge_; 179 base::android::ScopedJavaGlobalRef<jobject> bridge_;
171 180
172 base::WeakPtrFactory<NTPSnippetsBridge> weak_ptr_factory_; 181 base::WeakPtrFactory<NTPSnippetsBridge> weak_ptr_factory_;
173 182
174 DISALLOW_COPY_AND_ASSIGN(NTPSnippetsBridge); 183 DISALLOW_COPY_AND_ASSIGN(NTPSnippetsBridge);
175 }; 184 };
176 185
177 #endif // CHROME_BROWSER_ANDROID_NTP_NTP_SNIPPETS_BRIDGE_H_ 186 #endif // CHROME_BROWSER_ANDROID_NTP_NTP_SNIPPETS_BRIDGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698