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

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

Issue 99683006: [Android WebView] Only send extra headers for the main page (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: bulach's comments addressed Created 7 years 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 <list> 9 #include <list>
10 #include <string> 10 #include <string>
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 jint clip_bottom); 113 jint clip_bottom);
114 void SetGlobalVisibleRect(JNIEnv* env, 114 void SetGlobalVisibleRect(JNIEnv* env,
115 jobject obj, 115 jobject obj,
116 jint visible_left, 116 jint visible_left,
117 jint visible_top, 117 jint visible_top,
118 jint visible_right, 118 jint visible_right,
119 jint visible_bottom); 119 jint visible_bottom);
120 jint GetAwDrawGLViewContext(JNIEnv* env, jobject obj); 120 jint GetAwDrawGLViewContext(JNIEnv* env, jobject obj);
121 jlong CapturePicture(JNIEnv* env, jobject obj, int width, int height); 121 jlong CapturePicture(JNIEnv* env, jobject obj, int width, int height);
122 void EnableOnNewPicture(JNIEnv* env, jobject obj, jboolean enabled); 122 void EnableOnNewPicture(JNIEnv* env, jobject obj, jboolean enabled);
123 void SetExtraHeadersForUrl(JNIEnv* env, jobject obj,
124 jstring url, jstring extra_headers);
123 125
124 // Geolocation API support 126 // Geolocation API support
125 void ShowGeolocationPrompt(const GURL& origin, base::Callback<void(bool)>); 127 void ShowGeolocationPrompt(const GURL& origin, base::Callback<void(bool)>);
126 void HideGeolocationPrompt(const GURL& origin); 128 void HideGeolocationPrompt(const GURL& origin);
127 void InvokeGeolocationCallback(JNIEnv* env, 129 void InvokeGeolocationCallback(JNIEnv* env,
128 jobject obj, 130 jobject obj,
129 jboolean value, 131 jboolean value,
130 jstring origin); 132 jstring origin);
131 133
132 // Find-in-page API and related methods. 134 // Find-in-page API and related methods.
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 std::list<OriginCallback> pending_geolocation_prompts_; 209 std::list<OriginCallback> pending_geolocation_prompts_;
208 210
209 DISALLOW_COPY_AND_ASSIGN(AwContents); 211 DISALLOW_COPY_AND_ASSIGN(AwContents);
210 }; 212 };
211 213
212 bool RegisterAwContents(JNIEnv* env); 214 bool RegisterAwContents(JNIEnv* env);
213 215
214 } // namespace android_webview 216 } // namespace android_webview
215 217
216 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ 218 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698