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

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

Issue 10946008: Componentize IgnoreNavigationResourceThrottle and add chrome and webview specific implementations. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed presubmit warning for jni_generator.py Created 8 years, 2 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 void onReceivedHttpAuthRequest(const base::android::JavaRef<jobject>& handler, 58 void onReceivedHttpAuthRequest(const base::android::JavaRef<jobject>& handler,
59 const std::string& host, 59 const std::string& host,
60 const std::string& realm); 60 const std::string& realm);
61 61
62 // Methods called from Java. 62 // Methods called from Java.
63 jint GetWebContents(JNIEnv* env, jobject obj); 63 jint GetWebContents(JNIEnv* env, jobject obj);
64 void Destroy(JNIEnv* env, jobject obj); 64 void Destroy(JNIEnv* env, jobject obj);
65 void DocumentHasImages(JNIEnv* env, jobject obj, jobject message); 65 void DocumentHasImages(JNIEnv* env, jobject obj, jobject message);
66 void GenerateMHTML(JNIEnv* env, jobject obj, jstring jpath, jobject callback); 66 void GenerateMHTML(JNIEnv* env, jobject obj, jstring jpath, jobject callback);
67 void SetIoThreadClient(JNIEnv* env, jobject obj, jobject client); 67 void SetIoThreadClient(JNIEnv* env, jobject obj, jobject client);
68 void SetInterceptNavigationDelegate(JNIEnv* env, jobject obj,
69 jobject delegate);
68 base::android::ScopedJavaLocalRef<jbyteArray> GetCertificate( 70 base::android::ScopedJavaLocalRef<jbyteArray> GetCertificate(
69 JNIEnv* env, jobject obj); 71 JNIEnv* env, jobject obj);
70 72
71 // Find-in-page API and related methods. 73 // Find-in-page API and related methods.
72 jint FindAllSync(JNIEnv* env, jobject obj, jstring search_string); 74 jint FindAllSync(JNIEnv* env, jobject obj, jstring search_string);
73 void FindAllAsync(JNIEnv* env, jobject obj, jstring search_string); 75 void FindAllAsync(JNIEnv* env, jobject obj, jstring search_string);
74 void FindNext(JNIEnv* env, jobject obj, jboolean forward); 76 void FindNext(JNIEnv* env, jobject obj, jboolean forward);
75 void ClearMatches(JNIEnv* env, jobject obj); 77 void ClearMatches(JNIEnv* env, jobject obj);
76 void ClearCache(JNIEnv* env, jobject obj, jboolean include_disk_files); 78 void ClearCache(JNIEnv* env, jobject obj, jboolean include_disk_files);
77 79
(...skipping 12 matching lines...) Expand all
90 scoped_ptr<FindHelper> find_helper_; 92 scoped_ptr<FindHelper> find_helper_;
91 93
92 DISALLOW_COPY_AND_ASSIGN(AwContents); 94 DISALLOW_COPY_AND_ASSIGN(AwContents);
93 }; 95 };
94 96
95 bool RegisterAwContents(JNIEnv* env); 97 bool RegisterAwContents(JNIEnv* env);
96 98
97 } // namespace android_webview 99 } // namespace android_webview
98 100
99 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ 101 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698