| 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 | 9 |
| 10 #include <list> | 10 #include <list> |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 public: | 69 public: |
| 70 // Returns the AwContents instance associated with |web_contents|, or NULL. | 70 // Returns the AwContents instance associated with |web_contents|, or NULL. |
| 71 static AwContents* FromWebContents(content::WebContents* web_contents); | 71 static AwContents* FromWebContents(content::WebContents* web_contents); |
| 72 | 72 |
| 73 // Returns the AwContents instance associated with with the given | 73 // Returns the AwContents instance associated with with the given |
| 74 // render_process_id and render_view_id, or NULL. | 74 // render_process_id and render_view_id, or NULL. |
| 75 static AwContents* FromID(int render_process_id, int render_view_id); | 75 static AwContents* FromID(int render_process_id, int render_view_id); |
| 76 | 76 |
| 77 static std::string GetLocale(); | 77 static std::string GetLocale(); |
| 78 | 78 |
| 79 static std::string GetLocaleList(); |
| 80 |
| 79 AwContents(std::unique_ptr<content::WebContents> web_contents); | 81 AwContents(std::unique_ptr<content::WebContents> web_contents); |
| 80 ~AwContents() override; | 82 ~AwContents() override; |
| 81 | 83 |
| 82 AwRenderViewHostExt* render_view_host_ext() { | 84 AwRenderViewHostExt* render_view_host_ext() { |
| 83 return render_view_host_ext_.get(); | 85 return render_view_host_ext_.get(); |
| 84 } | 86 } |
| 85 | 87 |
| 86 // |handler| is an instance of | 88 // |handler| is an instance of |
| 87 // org.chromium.android_webview.AwHttpAuthHandler. | 89 // org.chromium.android_webview.AwHttpAuthHandler. |
| 88 bool OnReceivedHttpAuthRequest(const base::android::JavaRef<jobject>& handler, | 90 bool OnReceivedHttpAuthRequest(const base::android::JavaRef<jobject>& handler, |
| (...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 371 GLViewRendererManager::Key renderer_manager_key_; | 373 GLViewRendererManager::Key renderer_manager_key_; |
| 372 | 374 |
| 373 DISALLOW_COPY_AND_ASSIGN(AwContents); | 375 DISALLOW_COPY_AND_ASSIGN(AwContents); |
| 374 }; | 376 }; |
| 375 | 377 |
| 376 bool RegisterAwContents(JNIEnv* env); | 378 bool RegisterAwContents(JNIEnv* env); |
| 377 | 379 |
| 378 } // namespace android_webview | 380 } // namespace android_webview |
| 379 | 381 |
| 380 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ | 382 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ |
| OLD | NEW |