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_
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
{
18 void Destroy(JNIEnv
* env
, jobject obj
);
19 jboolean
GetLargeIconForURL(JNIEnv
* env
,
23 jint min_source_size_px
,
25 static bool RegisterLargeIconBridge(JNIEnv
* env
);
28 virtual ~LargeIconBridge();
30 base::CancelableTaskTracker cancelable_task_tracker_
;
32 DISALLOW_COPY_AND_ASSIGN(LargeIconBridge
);
35 #endif // CHROME_BROWSER_ANDROID_LARGE_ICON_BRIDGE_H_