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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 public PermissionRequestHandlerClient, | 61 public PermissionRequestHandlerClient, |
62 public AwBrowserPermissionRequestDelegate { | 62 public AwBrowserPermissionRequestDelegate { |
63 public: | 63 public: |
64 // Returns the AwContents instance associated with |web_contents|, or NULL. | 64 // Returns the AwContents instance associated with |web_contents|, or NULL. |
65 static AwContents* FromWebContents(content::WebContents* web_contents); | 65 static AwContents* FromWebContents(content::WebContents* web_contents); |
66 | 66 |
67 // Returns the AwContents instance associated with with the given | 67 // Returns the AwContents instance associated with with the given |
68 // render_process_id and render_view_id, or NULL. | 68 // render_process_id and render_view_id, or NULL. |
69 static AwContents* FromID(int render_process_id, int render_view_id); | 69 static AwContents* FromID(int render_process_id, int render_view_id); |
70 | 70 |
| 71 static std::string GetLocale(); |
| 72 |
71 AwContents(scoped_ptr<content::WebContents> web_contents); | 73 AwContents(scoped_ptr<content::WebContents> web_contents); |
72 ~AwContents() override; | 74 ~AwContents() override; |
73 | 75 |
74 AwRenderViewHostExt* render_view_host_ext() { | 76 AwRenderViewHostExt* render_view_host_ext() { |
75 return render_view_host_ext_.get(); | 77 return render_view_host_ext_.get(); |
76 } | 78 } |
77 | 79 |
78 // |handler| is an instance of | 80 // |handler| is an instance of |
79 // org.chromium.android_webview.AwHttpAuthHandler. | 81 // org.chromium.android_webview.AwHttpAuthHandler. |
80 bool OnReceivedHttpAuthRequest(const base::android::JavaRef<jobject>& handler, | 82 bool OnReceivedHttpAuthRequest(const base::android::JavaRef<jobject>& handler, |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
268 GLViewRendererManager::Key renderer_manager_key_; | 270 GLViewRendererManager::Key renderer_manager_key_; |
269 | 271 |
270 DISALLOW_COPY_AND_ASSIGN(AwContents); | 272 DISALLOW_COPY_AND_ASSIGN(AwContents); |
271 }; | 273 }; |
272 | 274 |
273 bool RegisterAwContents(JNIEnv* env); | 275 bool RegisterAwContents(JNIEnv* env); |
274 | 276 |
275 } // namespace android_webview | 277 } // namespace android_webview |
276 | 278 |
277 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ | 279 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ |
OLD | NEW |