| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 <windows.h> | 5 #include <windows.h> |
| 6 #include <objbase.h> | 6 #include <objbase.h> |
| 7 | 7 |
| 8 #include "chrome/plugin/plugin_thread.h" | 8 #include "chrome/plugin/plugin_thread.h" |
| 9 | 9 |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 NPAPI::PluginLib::UnloadAllPlugins(); | 83 NPAPI::PluginLib::UnloadAllPlugins(); |
| 84 ChromePluginLib::UnloadAllPlugins(); | 84 ChromePluginLib::UnloadAllPlugins(); |
| 85 notification_service_.reset(); | 85 notification_service_.reset(); |
| 86 resource_dispatcher_ = NULL; | 86 resource_dispatcher_ = NULL; |
| 87 CoUninitialize(); | 87 CoUninitialize(); |
| 88 | 88 |
| 89 if (webkit_glue::ShouldForcefullyTerminatePluginProcess()) | 89 if (webkit_glue::ShouldForcefullyTerminatePluginProcess()) |
| 90 TerminateProcess(GetCurrentProcess(), 0); | 90 TerminateProcess(GetCurrentProcess(), 0); |
| 91 } | 91 } |
| 92 | 92 |
| 93 void PluginThread::OnCreateChannel(int process_id, HANDLE renderer) { | 93 void PluginThread::OnCreateChannel() { |
| 94 std::wstring channel_name; | 94 std::wstring channel_name; |
| 95 scoped_refptr<PluginChannel> channel = | 95 scoped_refptr<PluginChannel> channel = |
| 96 PluginChannel::GetPluginChannel(process_id, renderer, owner_loop()); | 96 PluginChannel::GetPluginChannel(owner_loop()); |
| 97 if (channel.get()) | 97 if (channel.get()) |
| 98 channel_name = channel->channel_name(); | 98 channel_name = channel->channel_name(); |
| 99 | 99 |
| 100 Send(new PluginProcessHostMsg_ChannelCreated(process_id, channel_name)); | 100 Send(new PluginProcessHostMsg_ChannelCreated(channel_name)); |
| 101 } | 101 } |
| 102 | 102 |
| 103 void PluginThread::OnShutdownResponse(bool ok_to_shutdown) { | 103 void PluginThread::OnShutdownResponse(bool ok_to_shutdown) { |
| 104 if (ok_to_shutdown) | 104 if (ok_to_shutdown) |
| 105 PluginProcess::current()->Shutdown(); | 105 PluginProcess::current()->Shutdown(); |
| 106 } | 106 } |
| 107 | 107 |
| 108 void PluginThread::OnBrowserShutdown() { | 108 void PluginThread::OnBrowserShutdown() { |
| 109 PluginProcess::current()->Shutdown(); | 109 PluginProcess::current()->Shutdown(); |
| 110 } | 110 } |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 } | 174 } |
| 175 | 175 |
| 176 if (!result || net_error != net::OK) | 176 if (!result || net_error != net::OK) |
| 177 return false; | 177 return false; |
| 178 | 178 |
| 179 *proxy_list = proxy_result; | 179 *proxy_list = proxy_result; |
| 180 return true; | 180 return true; |
| 181 } | 181 } |
| 182 | 182 |
| 183 } // namespace webkit_glue | 183 } // namespace webkit_glue |
| OLD | NEW |