| Index: chrome/browser/android/ntp/ntp_snippets_bridge.h
|
| diff --git a/chrome/browser/android/ntp/ntp_snippets_bridge.h b/chrome/browser/android/ntp/ntp_snippets_bridge.h
|
| index 05fb4e81db76d75dccf5bbc189e7a648af198f67..4cb8c70667dc4f5ae155d3e72739c8d9c21d2607 100644
|
| --- a/chrome/browser/android/ntp/ntp_snippets_bridge.h
|
| +++ b/chrome/browser/android/ntp/ntp_snippets_bridge.h
|
| @@ -50,10 +50,27 @@ class NTPSnippetsBridge
|
| const base::android::JavaParamRef<jobject>& callback,
|
| const base::android::JavaParamRef<jstring>& jurl);
|
|
|
| + // Returns all categories in the order they should be displayed.
|
| + base::android::ScopedJavaLocalRef<jintArray> GetCategories(
|
| + JNIEnv* env,
|
| + const base::android::JavaParamRef<jobject>& obj);
|
| +
|
| + // Returns all suggestions for the given category.
|
| + base::android::ScopedJavaLocalRef<jobjectArray> GetSuggestionsForCategory(
|
| + JNIEnv* env,
|
| + const base::android::JavaParamRef<jobject>& obj,
|
| + const int category);
|
| +
|
| // Returns the status of the ARTICLES category.
|
| // See ContentSuggestionsCategoryStatus for more info.
|
| + int GetArticlesCategoryStatus(
|
| + JNIEnv* env,
|
| + const base::android::JavaParamRef<jobject>& obj);
|
| +
|
| + // See ContentSuggestionsCategoryStatus for more info.
|
| int GetCategoryStatus(JNIEnv* env,
|
| - const base::android::JavaParamRef<jobject>& obj);
|
| + const base::android::JavaParamRef<jobject>& obj,
|
| + jint category);
|
|
|
| static bool Register(JNIEnv* env);
|
|
|
|
|