Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(171)

Side by Side Diff: android_webview/native/aw_contents.h

Issue 10946013: Add WebView.saveWebArchive support to android_webview. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 53
53 private: 54 private:
54 JavaObjectWeakGlobalRef java_ref_; 55 JavaObjectWeakGlobalRef java_ref_;
55 scoped_ptr<AwContentsContainer> contents_container_; 56 scoped_ptr<AwContentsContainer> contents_container_;
56 scoped_ptr<AwWebContentsDelegate> web_contents_delegate_; 57 scoped_ptr<AwWebContentsDelegate> web_contents_delegate_;
57 scoped_ptr<AwRenderViewHostExt> render_view_host_ext_; 58 scoped_ptr<AwRenderViewHostExt> render_view_host_ext_;
58 59
59 DISALLOW_COPY_AND_ASSIGN(AwContents); 60 DISALLOW_COPY_AND_ASSIGN(AwContents);
60 }; 61 };
61 62
62 bool RegisterAwContents(JNIEnv* env); 63 bool RegisterAwContents(JNIEnv* env);
63 64
64 } // namespace android_webview 65 } // namespace android_webview
65 66
66 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ 67 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698