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

Side by Side Diff: chrome/browser/android/favicon_helper.h

Issue 1272883004: Popular sites on the NTP: Favicons! (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@enable_popular_sites
Patch Set: review2 Created 5 years, 4 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_FAVICON_HELPER_H_ 5 #ifndef CHROME_BROWSER_ANDROID_FAVICON_HELPER_H_
6 #define CHROME_BROWSER_ANDROID_FAVICON_HELPER_H_ 6 #define CHROME_BROWSER_ANDROID_FAVICON_HELPER_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 16 matching lines...) Expand all
27 jobject j_profile, 27 jobject j_profile,
28 jstring j_page_url, 28 jstring j_page_url,
29 jintArray j_icon_types, 29 jintArray j_icon_types,
30 jint j_min_size_threshold_px, 30 jint j_min_size_threshold_px,
31 jobject j_favicon_image_callback); 31 jobject j_favicon_image_callback);
32 base::android::ScopedJavaLocalRef<jobject> GetSyncedFaviconImageForURL( 32 base::android::ScopedJavaLocalRef<jobject> GetSyncedFaviconImageForURL(
33 JNIEnv* env, 33 JNIEnv* env,
34 jobject obj, 34 jobject obj,
35 jobject jprofile, 35 jobject jprofile,
36 jstring j_page_url); 36 jstring j_page_url);
37 void EnsureFaviconIsAvailable(JNIEnv* env,
38 jobject obj,
39 jobject j_profile,
40 jobject j_web_contents,
41 jstring j_page_url,
42 jstring j_favicon_url,
43 jobject j_availability_callback);
37 static bool RegisterFaviconHelper(JNIEnv* env); 44 static bool RegisterFaviconHelper(JNIEnv* env);
38 45
39 private: 46 private:
40 scoped_ptr<base::CancelableTaskTracker> cancelable_task_tracker_; 47 scoped_ptr<base::CancelableTaskTracker> cancelable_task_tracker_;
41 48
42 virtual ~FaviconHelper(); 49 virtual ~FaviconHelper();
43 50
44 DISALLOW_COPY_AND_ASSIGN(FaviconHelper); 51 DISALLOW_COPY_AND_ASSIGN(FaviconHelper);
45 }; 52 };
46 53
47 #endif // CHROME_BROWSER_ANDROID_FAVICON_HELPER_H_ 54 #endif // CHROME_BROWSER_ANDROID_FAVICON_HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698