Update broken references to image assets
[chromium-blink-merge.git] / chrome / browser / android / large_icon_bridge.h
blobcb71270539b44b9909297634f06c11cbfd3e3106
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.
5 #ifndef CHROME_BROWSER_ANDROID_LARGE_ICON_BRIDGE_H_
6 #define CHROME_BROWSER_ANDROID_LARGE_ICON_BRIDGE_H_
8 #include <jni.h>
10 #include "base/memory/scoped_ptr.h"
11 #include "base/task/cancelable_task_tracker.h"
13 // The C++ counterpart to Java's LargeIconBridge. Together these classes expose
14 // LargeIconService to Java.
15 class LargeIconBridge {
16 public:
17 LargeIconBridge();
18 void Destroy(JNIEnv* env, jobject obj);
19 jboolean GetLargeIconForURL(JNIEnv* env,
20 jobject obj,
21 jobject j_profile,
22 jstring j_page_url,
23 jint min_source_size_px,
24 jobject j_callback);
25 static bool RegisterLargeIconBridge(JNIEnv* env);
27 private:
28 virtual ~LargeIconBridge();
30 base::CancelableTaskTracker cancelable_task_tracker_;
32 DISALLOW_COPY_AND_ASSIGN(LargeIconBridge);
35 #endif // CHROME_BROWSER_ANDROID_LARGE_ICON_BRIDGE_H_