| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ | 5 #ifndef ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ |
| 6 #define ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ | 6 #define ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ |
| 7 | 7 |
| 8 #include <jni.h> | 8 #include <jni.h> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 // |handler| is an instance of | 42 // |handler| is an instance of |
| 43 // org.chromium.android_webview.AwHttpAuthHandler. | 43 // org.chromium.android_webview.AwHttpAuthHandler. |
| 44 void onReceivedHttpAuthRequest(const base::android::JavaRef<jobject>& handler, | 44 void onReceivedHttpAuthRequest(const base::android::JavaRef<jobject>& handler, |
| 45 const std::string& host, | 45 const std::string& host, |
| 46 const std::string& realm); | 46 const std::string& realm); |
| 47 | 47 |
| 48 // Methods called from Java. | 48 // Methods called from Java. |
| 49 jint GetWebContents(JNIEnv* env, jobject obj); | 49 jint GetWebContents(JNIEnv* env, jobject obj); |
| 50 void Destroy(JNIEnv* env, jobject obj); | 50 void Destroy(JNIEnv* env, jobject obj); |
| 51 void DocumentHasImages(JNIEnv* env, jobject obj, jobject message); | 51 void DocumentHasImages(JNIEnv* env, jobject obj, jobject message); |
| 52 void GenerateMHTML(JNIEnv* env, jobject obj, jstring jpath, jobject callback); |
| 52 void SetIoThreadClient(JNIEnv* env, jobject obj, jobject client); | 53 void SetIoThreadClient(JNIEnv* env, jobject obj, jobject client); |
| 53 | 54 |
| 54 private: | 55 private: |
| 55 JavaObjectWeakGlobalRef java_ref_; | 56 JavaObjectWeakGlobalRef java_ref_; |
| 56 scoped_ptr<AwContentsContainer> contents_container_; | 57 scoped_ptr<AwContentsContainer> contents_container_; |
| 57 scoped_ptr<AwWebContentsDelegate> web_contents_delegate_; | 58 scoped_ptr<AwWebContentsDelegate> web_contents_delegate_; |
| 58 scoped_ptr<AwRenderViewHostExt> render_view_host_ext_; | 59 scoped_ptr<AwRenderViewHostExt> render_view_host_ext_; |
| 59 | 60 |
| 60 DISALLOW_COPY_AND_ASSIGN(AwContents); | 61 DISALLOW_COPY_AND_ASSIGN(AwContents); |
| 61 }; | 62 }; |
| 62 | 63 |
| 63 bool RegisterAwContents(JNIEnv* env); | 64 bool RegisterAwContents(JNIEnv* env); |
| 64 | 65 |
| 65 } // namespace android_webview | 66 } // namespace android_webview |
| 66 | 67 |
| 67 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ | 68 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ |
| OLD | NEW |