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

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

Issue 923913004: Use an empty origin as source origin when posting messages from android_webview (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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
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 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 void SetSaveFormData(bool enabled); 215 void SetSaveFormData(bool enabled);
216 216
217 // Sets the java client 217 // Sets the java client
218 void SetAwAutofillClient(jobject client); 218 void SetAwAutofillClient(jobject client);
219 219
220 void SetJsOnlineProperty(JNIEnv* env, jobject obj, jboolean network_up); 220 void SetJsOnlineProperty(JNIEnv* env, jobject obj, jboolean network_up);
221 void TrimMemory(JNIEnv* env, jobject obj, jint level, jboolean visible); 221 void TrimMemory(JNIEnv* env, jobject obj, jint level, jboolean visible);
222 222
223 scoped_refptr<AwMessagePortMessageFilter> GetMessagePortMessageFilter(); 223 scoped_refptr<AwMessagePortMessageFilter> GetMessagePortMessageFilter();
224 void PostMessageToFrame(JNIEnv* env, jobject obj, jstring frame_id, 224 void PostMessageToFrame(JNIEnv* env, jobject obj, jstring frame_id,
225 jstring message, jstring source_origin, jstring target_origin, 225 jstring message, jstring target_origin, jintArray sent_ports);
226 jintArray sent_ports);
227 void CreateMessageChannel(JNIEnv* env, jobject obj, jobjectArray ports); 226 void CreateMessageChannel(JNIEnv* env, jobject obj, jobjectArray ports);
228 227
229 private: 228 private:
230 void InitDataReductionProxyIfNecessary(); 229 void InitDataReductionProxyIfNecessary();
231 void InitAutofillIfNecessary(bool enabled); 230 void InitAutofillIfNecessary(bool enabled);
232 231
233 // Geolocation API support 232 // Geolocation API support
234 void ShowGeolocationPrompt(const GURL& origin, base::Callback<void(bool)>); 233 void ShowGeolocationPrompt(const GURL& origin, base::Callback<void(bool)>);
235 void HideGeolocationPrompt(const GURL& origin); 234 void HideGeolocationPrompt(const GURL& origin);
236 235
(...skipping 20 matching lines...) Expand all
257 GLViewRendererManager::Key renderer_manager_key_; 256 GLViewRendererManager::Key renderer_manager_key_;
258 257
259 DISALLOW_COPY_AND_ASSIGN(AwContents); 258 DISALLOW_COPY_AND_ASSIGN(AwContents);
260 }; 259 };
261 260
262 bool RegisterAwContents(JNIEnv* env); 261 bool RegisterAwContents(JNIEnv* env);
263 262
264 } // namespace android_webview 263 } // namespace android_webview
265 264
266 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ 265 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698