| OLD | NEW |
| 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 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 | 217 |
| 218 // Sets the java client | 218 // Sets the java client |
| 219 void SetAwAutofillClient(jobject client); | 219 void SetAwAutofillClient(jobject client); |
| 220 | 220 |
| 221 void SetJsOnlineProperty(JNIEnv* env, jobject obj, jboolean network_up); | 221 void SetJsOnlineProperty(JNIEnv* env, jobject obj, jboolean network_up); |
| 222 void TrimMemory(JNIEnv* env, jobject obj, jint level, jboolean visible); | 222 void TrimMemory(JNIEnv* env, jobject obj, jint level, jboolean visible); |
| 223 | 223 |
| 224 scoped_refptr<AwMessagePortMessageFilter> GetMessagePortMessageFilter(); | 224 scoped_refptr<AwMessagePortMessageFilter> GetMessagePortMessageFilter(); |
| 225 void PostMessageToFrame(JNIEnv* env, jobject obj, jstring frame_id, | 225 void PostMessageToFrame(JNIEnv* env, jobject obj, jstring frame_id, |
| 226 jstring message, jstring source_origin, jstring target_origin, | 226 jstring message, jstring source_origin, jstring target_origin, |
| 227 jintArray msgPorts); | 227 jintArray sent_ports); |
| 228 void CreateMessageChannel(JNIEnv* env, jobject obj, jobject callback); | 228 void CreateMessageChannel(JNIEnv* env, jobject obj, jobject callback); |
| 229 | 229 |
| 230 private: | 230 private: |
| 231 void InitDataReductionProxyIfNecessary(); | 231 void InitDataReductionProxyIfNecessary(); |
| 232 void InitAutofillIfNecessary(bool enabled); | 232 void InitAutofillIfNecessary(bool enabled); |
| 233 | 233 |
| 234 // Geolocation API support | 234 // Geolocation API support |
| 235 void ShowGeolocationPrompt(const GURL& origin, base::Callback<void(bool)>); | 235 void ShowGeolocationPrompt(const GURL& origin, base::Callback<void(bool)>); |
| 236 void HideGeolocationPrompt(const GURL& origin); | 236 void HideGeolocationPrompt(const GURL& origin); |
| 237 | 237 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 258 GLViewRendererManager::Key renderer_manager_key_; | 258 GLViewRendererManager::Key renderer_manager_key_; |
| 259 | 259 |
| 260 DISALLOW_COPY_AND_ASSIGN(AwContents); | 260 DISALLOW_COPY_AND_ASSIGN(AwContents); |
| 261 }; | 261 }; |
| 262 | 262 |
| 263 bool RegisterAwContents(JNIEnv* env); | 263 bool RegisterAwContents(JNIEnv* env); |
| 264 | 264 |
| 265 } // namespace android_webview | 265 } // namespace android_webview |
| 266 | 266 |
| 267 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ | 267 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ |
| OLD | NEW |