Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(89)

Side by Side Diff: android_webview/native/aw_contents_io_thread_client_impl.cc

Issue 257153003: We have a problem in the process on destroying WebContentsImpl because (Closed) Base URL: https://git.chromium.org/chromium/src.git@master
Patch Set: Rebased onto origin/lkgr Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 client_data.io_thread_client = jdelegate_; 135 client_data.io_thread_client = jdelegate_;
136 client_data.pending_association = false; 136 client_data.pending_association = false;
137 RfhToIoThreadClientMap::GetInstance()->Set( 137 RfhToIoThreadClientMap::GetInstance()->Set(
138 GetRenderFrameHostIdPair(rfh), client_data); 138 GetRenderFrameHostIdPair(rfh), client_data);
139 } 139 }
140 140
141 void ClientMapEntryUpdater::RenderFrameDeleted(RenderFrameHost* rfh) { 141 void ClientMapEntryUpdater::RenderFrameDeleted(RenderFrameHost* rfh) {
142 RfhToIoThreadClientMap::GetInstance()->Erase(GetRenderFrameHostIdPair(rfh)); 142 RfhToIoThreadClientMap::GetInstance()->Erase(GetRenderFrameHostIdPair(rfh));
143 } 143 }
144 144
145 void ClientMapEntryUpdater::WebContentsDestroyed(WebContents* web_contents) { 145 void ClientMapEntryUpdater::WebContentsDestroyed() {
146 delete this; 146 delete this;
147 } 147 }
148 148
149 } // namespace 149 } // namespace
150 150
151 // AwContentsIoThreadClientImpl ----------------------------------------------- 151 // AwContentsIoThreadClientImpl -----------------------------------------------
152 152
153 // static 153 // static
154 scoped_ptr<AwContentsIoThreadClient> 154 scoped_ptr<AwContentsIoThreadClient>
155 AwContentsIoThreadClient::FromID(int render_process_id, int render_frame_id) { 155 AwContentsIoThreadClient::FromID(int render_process_id, int render_frame_id) {
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 330
331 Java_AwContentsIoThreadClient_newLoginRequest( 331 Java_AwContentsIoThreadClient_newLoginRequest(
332 env, java_object_.obj(), jrealm.obj(), jaccount.obj(), jargs.obj()); 332 env, java_object_.obj(), jrealm.obj(), jaccount.obj(), jargs.obj());
333 } 333 }
334 334
335 bool RegisterAwContentsIoThreadClientImpl(JNIEnv* env) { 335 bool RegisterAwContentsIoThreadClientImpl(JNIEnv* env) {
336 return RegisterNativesImpl(env); 336 return RegisterNativesImpl(env);
337 } 337 }
338 338
339 } // namespace android_webview 339 } // namespace android_webview
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698