OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2014 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. | |
4 | |
5 #ifndef CHROME_BROWSER_ANDROID_OMNIBOX_ANSWERS_IMAGE_BRIDGE_H_ | |
6 #define CHROME_BROWSER_ANDROID_OMNIBOX_ANSWERS_IMAGE_BRIDGE_H_ | |
7 | |
8 #include "base/android/jni_weak_ref.h" | |
9 #include "base/android/scoped_java_ref.h" | |
10 #include "base/memory/weak_ptr.h" | |
11 | |
12 class Profile; | |
13 class AnswersImage; | |
14 | |
15 class AnswersImageBridge { | |
16 public: | |
17 explicit AnswersImageBridge(Profile*); | |
Ted C
2014/06/06 01:49:24
This header seems quite out of sync with the .cc f
groby-ooo-7-16
2014/06/13 23:52:21
Done.
| |
18 ~AnswersImageBridge(); | |
19 | |
20 void Destroy(JNIEnv* env, jobject j_answers_image_bridge); | |
21 | |
22 base::android::ScopedJavaLocalRef<jobject> GetAnswersImage( | |
23 JNIEnv* env, | |
24 jobject j_obj, | |
25 jobject j_url, | |
26 jobject j_answers_image_observer); | |
27 | |
28 private: | |
29 DISALLOW_COPY_AND_ASSIGN(AnswersImageBridge); | |
30 base::WeakPtrFactory<AnswersImageBridge> weak_ptr_factory_; | |
31 AnswersImage* answers_image_; | |
32 }; | |
33 | |
34 // Registers native methods. | |
35 bool RegisterAnswersImageBridge(JNIEnv* env); | |
36 | |
37 #endif // CHROME_BROWSER_ANDROID_OMNIBOX_ANSWERS_IMAGE_BRIDGE_H_ | |
OLD | NEW |