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

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

Issue 2686063003: [remote suggestions] Attach the fetch time to RemoteSnippets, ContentSnippets and SnippetArticle (Closed)
Patch Set: rebase Created 3 years, 10 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 const base::android::JavaParamRef<jobject>& obj, 92 const base::android::JavaParamRef<jobject>& obj,
93 const base::android::JavaParamRef<jintArray>& jcategories, 93 const base::android::JavaParamRef<jintArray>& jcategories,
94 const base::android::JavaParamRef<jintArray>& jsuggestions_per_category); 94 const base::android::JavaParamRef<jintArray>& jsuggestions_per_category);
95 95
96 void OnSuggestionShown(JNIEnv* env, 96 void OnSuggestionShown(JNIEnv* env,
97 const base::android::JavaParamRef<jobject>& obj, 97 const base::android::JavaParamRef<jobject>& obj,
98 jint global_position, 98 jint global_position,
99 jint j_category_id, 99 jint j_category_id,
100 jint position_in_category, 100 jint position_in_category,
101 jlong publish_timestamp_ms, 101 jlong publish_timestamp_ms,
102 jfloat score); 102 jfloat score,
103 jlong fetch_timestamp_ms);
103 104
104 void OnSuggestionOpened(JNIEnv* env, 105 void OnSuggestionOpened(JNIEnv* env,
105 const base::android::JavaParamRef<jobject>& obj, 106 const base::android::JavaParamRef<jobject>& obj,
106 jint global_position, 107 jint global_position,
107 jint j_category_id, 108 jint j_category_id,
108 jint category_index, 109 jint category_index,
109 jint position_in_category, 110 jint position_in_category,
110 jlong publish_timestamp_ms, 111 jlong publish_timestamp_ms,
111 jfloat score, 112 jfloat score,
112 int windowOpenDisposition); 113 int windowOpenDisposition);
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 169
169 // The Java SnippetsBridge. 170 // The Java SnippetsBridge.
170 base::android::ScopedJavaGlobalRef<jobject> bridge_; 171 base::android::ScopedJavaGlobalRef<jobject> bridge_;
171 172
172 base::WeakPtrFactory<NTPSnippetsBridge> weak_ptr_factory_; 173 base::WeakPtrFactory<NTPSnippetsBridge> weak_ptr_factory_;
173 174
174 DISALLOW_COPY_AND_ASSIGN(NTPSnippetsBridge); 175 DISALLOW_COPY_AND_ASSIGN(NTPSnippetsBridge);
175 }; 176 };
176 177
177 #endif // CHROME_BROWSER_ANDROID_NTP_NTP_SNIPPETS_BRIDGE_H_ 178 #endif // CHROME_BROWSER_ANDROID_NTP_NTP_SNIPPETS_BRIDGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698