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

Side by Side Diff: content/renderer/render_thread_impl.cc

Issue 19641008: Implement ChildThread::shutdown and clear members that have refs into blink (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 7 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « content/plugin/plugin_thread.cc ('k') | content/utility/utility_thread_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "content/renderer/render_thread_impl.h" 5 #include "content/renderer/render_thread_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <limits> 8 #include <limits>
9 #include <map> 9 #include <map>
10 #include <vector> 10 #include <vector>
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after
426 TRACE_EVENT_END_ETW("RenderThreadImpl::Init", 0, ""); 426 TRACE_EVENT_END_ETW("RenderThreadImpl::Init", 0, "");
427 } 427 }
428 428
429 RenderThreadImpl::~RenderThreadImpl() { 429 RenderThreadImpl::~RenderThreadImpl() {
430 } 430 }
431 431
432 void RenderThreadImpl::Shutdown() { 432 void RenderThreadImpl::Shutdown() {
433 FOR_EACH_OBSERVER( 433 FOR_EACH_OBSERVER(
434 RenderProcessObserver, observers_, OnRenderProcessShutdown()); 434 RenderProcessObserver, observers_, OnRenderProcessShutdown());
435 435
436 ChildThread::Shutdown();
437
436 // Wait for all databases to be closed. 438 // Wait for all databases to be closed.
437 if (web_database_observer_impl_) 439 if (web_database_observer_impl_)
438 web_database_observer_impl_->WaitForAllDatabasesToClose(); 440 web_database_observer_impl_->WaitForAllDatabasesToClose();
439 441
440 // Shutdown in reverse of the initialization order. 442 // Shutdown in reverse of the initialization order.
441 if (devtools_agent_message_filter_.get()) { 443 if (devtools_agent_message_filter_.get()) {
442 RemoveFilter(devtools_agent_message_filter_.get()); 444 RemoveFilter(devtools_agent_message_filter_.get());
443 devtools_agent_message_filter_ = NULL; 445 devtools_agent_message_filter_ = NULL;
444 } 446 }
445 447
(...skipping 859 matching lines...) Expand 10 before | Expand all | Expand 10 after
1305 1307
1306 void RenderThreadImpl::SetFlingCurveParameters( 1308 void RenderThreadImpl::SetFlingCurveParameters(
1307 const std::vector<float>& new_touchpad, 1309 const std::vector<float>& new_touchpad,
1308 const std::vector<float>& new_touchscreen) { 1310 const std::vector<float>& new_touchscreen) {
1309 webkit_platform_support_->SetFlingCurveParameters(new_touchpad, 1311 webkit_platform_support_->SetFlingCurveParameters(new_touchpad,
1310 new_touchscreen); 1312 new_touchscreen);
1311 1313
1312 } 1314 }
1313 1315
1314 } // namespace content 1316 } // namespace content
OLDNEW
« no previous file with comments | « content/plugin/plugin_thread.cc ('k') | content/utility/utility_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698