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/common/devtools_instrumentation.h" | 10 #include "android_webview/common/devtools_instrumentation.h" |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 rfh_to_io_thread_client_.erase(rfh_id); | 109 rfh_to_io_thread_client_.erase(rfh_id); |
110 } | 110 } |
111 | 111 |
112 // ClientMapEntryUpdater ------------------------------------------------------ | 112 // ClientMapEntryUpdater ------------------------------------------------------ |
113 | 113 |
114 class ClientMapEntryUpdater : public content::WebContentsObserver { | 114 class ClientMapEntryUpdater : public content::WebContentsObserver { |
115 public: | 115 public: |
116 ClientMapEntryUpdater(JNIEnv* env, WebContents* web_contents, | 116 ClientMapEntryUpdater(JNIEnv* env, WebContents* web_contents, |
117 jobject jdelegate); | 117 jobject jdelegate); |
118 | 118 |
119 virtual void RenderFrameCreated(RenderFrameHost* render_frame_host) OVERRIDE; | 119 virtual void RenderFrameCreated(RenderFrameHost* render_frame_host) override; |
120 virtual void RenderFrameDeleted(RenderFrameHost* render_frame_host) OVERRIDE; | 120 virtual void RenderFrameDeleted(RenderFrameHost* render_frame_host) override; |
121 virtual void WebContentsDestroyed() OVERRIDE; | 121 virtual void WebContentsDestroyed() override; |
122 | 122 |
123 private: | 123 private: |
124 JavaObjectWeakGlobalRef jdelegate_; | 124 JavaObjectWeakGlobalRef jdelegate_; |
125 }; | 125 }; |
126 | 126 |
127 ClientMapEntryUpdater::ClientMapEntryUpdater(JNIEnv* env, | 127 ClientMapEntryUpdater::ClientMapEntryUpdater(JNIEnv* env, |
128 WebContents* web_contents, | 128 WebContents* web_contents, |
129 jobject jdelegate) | 129 jobject jdelegate) |
130 : content::WebContentsObserver(web_contents), | 130 : content::WebContentsObserver(web_contents), |
131 jdelegate_(env, jdelegate) { | 131 jdelegate_(env, jdelegate) { |
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
373 | 373 |
374 Java_AwContentsIoThreadClient_newLoginRequest( | 374 Java_AwContentsIoThreadClient_newLoginRequest( |
375 env, java_object_.obj(), jrealm.obj(), jaccount.obj(), jargs.obj()); | 375 env, java_object_.obj(), jrealm.obj(), jaccount.obj(), jargs.obj()); |
376 } | 376 } |
377 | 377 |
378 bool RegisterAwContentsIoThreadClientImpl(JNIEnv* env) { | 378 bool RegisterAwContentsIoThreadClientImpl(JNIEnv* env) { |
379 return RegisterNativesImpl(env); | 379 return RegisterNativesImpl(env); |
380 } | 380 } |
381 | 381 |
382 } // namespace android_webview | 382 } // namespace android_webview |
OLD | NEW |