| 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 #include "android_webview/native/aw_contents_io_thread_client_impl.h" | 5 #include "android_webview/native/aw_contents_io_thread_client_impl.h" |
| 6 | 6 |
| 7 #include <map> | 7 #include <map> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "android_webview/native/intercepted_request_data_impl.h" | 10 #include "android_webview/native/intercepted_request_data_impl.h" |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 | 97 |
| 98 class ClientMapEntryUpdater : public content::WebContentsObserver { | 98 class ClientMapEntryUpdater : public content::WebContentsObserver { |
| 99 public: | 99 public: |
| 100 ClientMapEntryUpdater(JNIEnv* env, WebContents* web_contents, | 100 ClientMapEntryUpdater(JNIEnv* env, WebContents* web_contents, |
| 101 jobject jdelegate); | 101 jobject jdelegate); |
| 102 | 102 |
| 103 virtual void RenderViewCreated(RenderViewHost* render_view_host) OVERRIDE; | 103 virtual void RenderViewCreated(RenderViewHost* render_view_host) OVERRIDE; |
| 104 virtual void RenderViewForInterstitialPageCreated( | 104 virtual void RenderViewForInterstitialPageCreated( |
| 105 RenderViewHost* render_view_host) OVERRIDE; | 105 RenderViewHost* render_view_host) OVERRIDE; |
| 106 virtual void RenderViewDeleted(RenderViewHost* render_view_host) OVERRIDE; | 106 virtual void RenderViewDeleted(RenderViewHost* render_view_host) OVERRIDE; |
| 107 virtual void WebContentsDestroyed(WebContents* web_contents); | 107 virtual void WebContentsDestroyed(WebContents* web_contents) OVERRIDE; |
| 108 | 108 |
| 109 private: | 109 private: |
| 110 JavaObjectWeakGlobalRef jdelegate_; | 110 JavaObjectWeakGlobalRef jdelegate_; |
| 111 }; | 111 }; |
| 112 | 112 |
| 113 ClientMapEntryUpdater::ClientMapEntryUpdater(JNIEnv* env, | 113 ClientMapEntryUpdater::ClientMapEntryUpdater(JNIEnv* env, |
| 114 WebContents* web_contents, | 114 WebContents* web_contents, |
| 115 jobject jdelegate) | 115 jobject jdelegate) |
| 116 : content::WebContentsObserver(web_contents), | 116 : content::WebContentsObserver(web_contents), |
| 117 jdelegate_(env, jdelegate) { | 117 jdelegate_(env, jdelegate) { |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 289 | 289 |
| 290 Java_AwContentsIoThreadClient_newLoginRequest( | 290 Java_AwContentsIoThreadClient_newLoginRequest( |
| 291 env, java_object_.obj(), jrealm.obj(), jaccount.obj(), jargs.obj()); | 291 env, java_object_.obj(), jrealm.obj(), jaccount.obj(), jargs.obj()); |
| 292 } | 292 } |
| 293 | 293 |
| 294 bool RegisterAwContentsIoThreadClientImpl(JNIEnv* env) { | 294 bool RegisterAwContentsIoThreadClientImpl(JNIEnv* env) { |
| 295 return RegisterNativesImpl(env); | 295 return RegisterNativesImpl(env); |
| 296 } | 296 } |
| 297 | 297 |
| 298 } // namespace android_webview | 298 } // namespace android_webview |
| OLD | NEW |