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

Side by Side Diff: content/ppapi_plugin/ppapi_thread.cc

Issue 536783003: Call ChildThread::Shutdown in PpapiThread::Shutdown. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
« no previous file with comments | « no previous file | no next file » | 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/ppapi_plugin/ppapi_thread.h" 5 #include "content/ppapi_plugin/ppapi_thread.h"
6 6
7 #include <limits> 7 #include <limits>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/cpu.h" 10 #include "base/cpu.h"
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 channel()->AddFilter( 118 channel()->AddFilter(
119 new ppapi::proxy::PluginMessageFilter( 119 new ppapi::proxy::PluginMessageFilter(
120 NULL, globals->resource_reply_thread_registrar())); 120 NULL, globals->resource_reply_thread_registrar()));
121 } 121 }
122 } 122 }
123 123
124 PpapiThread::~PpapiThread() { 124 PpapiThread::~PpapiThread() {
125 } 125 }
126 126
127 void PpapiThread::Shutdown() { 127 void PpapiThread::Shutdown() {
128 ChildThread::Shutdown();
129
128 ppapi::proxy::PluginGlobals::Get()->set_plugin_proxy_delegate(NULL); 130 ppapi::proxy::PluginGlobals::Get()->set_plugin_proxy_delegate(NULL);
129 if (plugin_entry_points_.shutdown_module) 131 if (plugin_entry_points_.shutdown_module)
130 plugin_entry_points_.shutdown_module(); 132 plugin_entry_points_.shutdown_module();
131 webkit_platform_support_->Shutdown(); 133 webkit_platform_support_->Shutdown();
132 blink::shutdown(); 134 blink::shutdown();
133 } 135 }
134 136
135 bool PpapiThread::Send(IPC::Message* msg) { 137 bool PpapiThread::Send(IPC::Message* msg) {
136 // Allow access from multiple threads. 138 // Allow access from multiple threads.
137 if (base::MessageLoop::current() == message_loop()) 139 if (base::MessageLoop::current() == message_loop())
(...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after
541 std::string("Plugin.Ppapi") + (is_broker_ ? "Broker" : "Plugin") + 543 std::string("Plugin.Ppapi") + (is_broker_ ? "Broker" : "Plugin") +
542 "LoadErrorCode_" + path.BaseName().MaybeAsASCII(); 544 "LoadErrorCode_" + path.BaseName().MaybeAsASCII();
543 545
544 // For sparse histograms, we can use the macro, as it does not incorporate a 546 // For sparse histograms, we can use the macro, as it does not incorporate a
545 // static. 547 // static.
546 UMA_HISTOGRAM_SPARSE_SLOWLY(histogram_name, error.code); 548 UMA_HISTOGRAM_SPARSE_SLOWLY(histogram_name, error.code);
547 #endif 549 #endif
548 } 550 }
549 551
550 } // namespace content 552 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698