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

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

Issue 920873003: Return created channels synchronously (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: disable a test for real and remove a wrong assertion 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 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 // Sets the java client 213 // Sets the java client
214 void SetAwAutofillClient(jobject client); 214 void SetAwAutofillClient(jobject client);
215 215
216 void SetJsOnlineProperty(JNIEnv* env, jobject obj, jboolean network_up); 216 void SetJsOnlineProperty(JNIEnv* env, jobject obj, jboolean network_up);
217 void TrimMemory(JNIEnv* env, jobject obj, jint level, jboolean visible); 217 void TrimMemory(JNIEnv* env, jobject obj, jint level, jboolean visible);
218 218
219 scoped_refptr<AwMessagePortMessageFilter> GetMessagePortMessageFilter(); 219 scoped_refptr<AwMessagePortMessageFilter> GetMessagePortMessageFilter();
220 void PostMessageToFrame(JNIEnv* env, jobject obj, jstring frame_id, 220 void PostMessageToFrame(JNIEnv* env, jobject obj, jstring frame_id,
221 jstring message, jstring source_origin, jstring target_origin, 221 jstring message, jstring source_origin, jstring target_origin,
222 jintArray sent_ports); 222 jintArray sent_ports);
223 void CreateMessageChannel(JNIEnv* env, jobject obj, jobject callback); 223 void CreateMessageChannel(JNIEnv* env, jobject obj, jobjectArray ports);
224 224
225 private: 225 private:
226 void InitDataReductionProxyIfNecessary(); 226 void InitDataReductionProxyIfNecessary();
227 void InitAutofillIfNecessary(bool enabled); 227 void InitAutofillIfNecessary(bool enabled);
228 228
229 // Geolocation API support 229 // Geolocation API support
230 void ShowGeolocationPrompt(const GURL& origin, base::Callback<void(bool)>); 230 void ShowGeolocationPrompt(const GURL& origin, base::Callback<void(bool)>);
231 void HideGeolocationPrompt(const GURL& origin); 231 void HideGeolocationPrompt(const GURL& origin);
232 232
233 JavaObjectWeakGlobalRef java_ref_; 233 JavaObjectWeakGlobalRef java_ref_;
(...skipping 19 matching lines...) Expand all
253 GLViewRendererManager::Key renderer_manager_key_; 253 GLViewRendererManager::Key renderer_manager_key_;
254 254
255 DISALLOW_COPY_AND_ASSIGN(AwContents); 255 DISALLOW_COPY_AND_ASSIGN(AwContents);
256 }; 256 };
257 257
258 bool RegisterAwContents(JNIEnv* env); 258 bool RegisterAwContents(JNIEnv* env);
259 259
260 } // namespace android_webview 260 } // namespace android_webview
261 261
262 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ 262 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698