| OLD | NEW |
| 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/browser/renderer_host/pepper/browser_ppapi_host_impl.h" | 5 #include "content/browser/renderer_host/pepper/browser_ppapi_host_impl.h" |
| 6 | 6 |
| 7 #include "content/browser/renderer_host/pepper/pepper_message_filter.h" | 7 #include "content/browser/renderer_host/pepper/pepper_message_filter.h" |
| 8 #include "content/browser/trace_message_filter.h" | 8 #include "content/browser/trace_message_filter.h" |
| 9 #include "content/common/pepper_renderer_instance_data.h" | 9 #include "content/common/pepper_renderer_instance_data.h" |
| 10 #include "content/public/browser/browser_thread.h" | |
| 11 #include "content/public/browser/render_view_host.h" | 10 #include "content/public/browser/render_view_host.h" |
| 12 #include "ipc/ipc_message_macros.h" | 11 #include "ipc/ipc_message_macros.h" |
| 13 | 12 |
| 14 namespace content { | 13 namespace content { |
| 15 | 14 |
| 16 // static | 15 // static |
| 17 BrowserPpapiHost* BrowserPpapiHost::CreateExternalPluginProcess( | 16 BrowserPpapiHost* BrowserPpapiHost::CreateExternalPluginProcess( |
| 18 IPC::Sender* sender, | 17 IPC::Sender* sender, |
| 19 ppapi::PpapiPermissions permissions, | 18 ppapi::PpapiPermissions permissions, |
| 20 base::ProcessHandle plugin_child_process, | 19 base::ProcessHandle plugin_child_process, |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 */ | 146 */ |
| 148 return ppapi_host_->OnMessageReceived(msg); | 147 return ppapi_host_->OnMessageReceived(msg); |
| 149 } | 148 } |
| 150 | 149 |
| 151 void BrowserPpapiHostImpl::HostMessageFilter::OnHostDestroyed() { | 150 void BrowserPpapiHostImpl::HostMessageFilter::OnHostDestroyed() { |
| 152 DCHECK(ppapi_host_); | 151 DCHECK(ppapi_host_); |
| 153 ppapi_host_ = NULL; | 152 ppapi_host_ = NULL; |
| 154 } | 153 } |
| 155 | 154 |
| 156 } // namespace content | 155 } // namespace content |
| OLD | NEW |