blob: cb71270539b44b9909297634f06c11cbfd3e3106 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_ANDROID_LARGE_ICON_BRIDGE_H_
#define CHROME_BROWSER_ANDROID_LARGE_ICON_BRIDGE_H_
#include <jni.h>
#include "base/memory/scoped_ptr.h"
#include "base/task/cancelable_task_tracker.h"
// The C++ counterpart to Java's LargeIconBridge. Together these classes expose
// LargeIconService to Java.
class LargeIconBridge {
public:
LargeIconBridge();
void Destroy(JNIEnv* env, jobject obj);
jboolean GetLargeIconForURL(JNIEnv* env,
jobject obj,
jobject j_profile,
jstring j_page_url,
jint min_source_size_px,
jobject j_callback);
static bool RegisterLargeIconBridge(JNIEnv* env);
private:
virtual ~LargeIconBridge();
base::CancelableTaskTracker cancelable_task_tracker_;
DISALLOW_COPY_AND_ASSIGN(LargeIconBridge);
};
#endif // CHROME_BROWSER_ANDROID_LARGE_ICON_BRIDGE_H_
|