| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "chrome/browser/ppapi_plugin_process_host.h" | 5 #include "chrome/browser/ppapi_plugin_process_host.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/file_path.h" | 8 #include "base/file_path.h" |
| 9 #include "base/process_util.h" | 9 #include "base/process_util.h" |
| 10 #include "chrome/browser/renderer_host/render_message_filter.h" | 10 #include "chrome/browser/renderer_host/render_message_filter.h" |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 Launch( | 56 Launch( |
| 57 #if defined(OS_WIN) | 57 #if defined(OS_WIN) |
| 58 FilePath(), | 58 FilePath(), |
| 59 #elif defined(OS_POSIX) | 59 #elif defined(OS_POSIX) |
| 60 plugin_launcher.empty(), | 60 plugin_launcher.empty(), |
| 61 base::environment_vector(), | 61 base::environment_vector(), |
| 62 #endif | 62 #endif |
| 63 cmd_line); | 63 cmd_line); |
| 64 } | 64 } |
| 65 | 65 |
| 66 bool PpapiPluginProcessHost::CanShutdown() { |
| 67 return true; |
| 68 } |
| 69 |
| 66 void PpapiPluginProcessHost::OnProcessLaunched() { | 70 void PpapiPluginProcessHost::OnProcessLaunched() { |
| 67 } | 71 } |
| 68 | 72 |
| 69 URLRequestContext* PpapiPluginProcessHost::GetRequestContext( | 73 URLRequestContext* PpapiPluginProcessHost::GetRequestContext( |
| 70 uint32 request_id, | 74 uint32 request_id, |
| 71 const ViewHostMsg_Resource_Request& request_data) { | 75 const ViewHostMsg_Resource_Request& request_data) { |
| 72 return NULL; | 76 return NULL; |
| 73 } | 77 } |
| 74 | 78 |
| 75 void PpapiPluginProcessHost::OnMessageReceived(const IPC::Message& msg) { | 79 void PpapiPluginProcessHost::OnMessageReceived(const IPC::Message& msg) { |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 | 123 |
| 120 void PpapiPluginProcessHost::ReplyToRenderer( | 124 void PpapiPluginProcessHost::ReplyToRenderer( |
| 121 base::ProcessHandle plugin_handle, | 125 base::ProcessHandle plugin_handle, |
| 122 const IPC::ChannelHandle& channel_handle) { | 126 const IPC::ChannelHandle& channel_handle) { |
| 123 DCHECK(reply_msg_.get()); | 127 DCHECK(reply_msg_.get()); |
| 124 ViewHostMsg_OpenChannelToPepperPlugin::WriteReplyParams(reply_msg_.get(), | 128 ViewHostMsg_OpenChannelToPepperPlugin::WriteReplyParams(reply_msg_.get(), |
| 125 plugin_handle, | 129 plugin_handle, |
| 126 channel_handle); | 130 channel_handle); |
| 127 filter_->Send(reply_msg_.release()); | 131 filter_->Send(reply_msg_.release()); |
| 128 } | 132 } |
| OLD | NEW |