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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 */ | 151 */ |
153 return ppapi_host_->OnMessageReceived(msg); | 152 return ppapi_host_->OnMessageReceived(msg); |
154 } | 153 } |
155 | 154 |
156 void BrowserPpapiHostImpl::HostMessageFilter::OnHostDestroyed() { | 155 void BrowserPpapiHostImpl::HostMessageFilter::OnHostDestroyed() { |
157 DCHECK(ppapi_host_); | 156 DCHECK(ppapi_host_); |
158 ppapi_host_ = NULL; | 157 ppapi_host_ = NULL; |
159 } | 158 } |
160 | 159 |
161 } // namespace content | 160 } // namespace content |
OLD | NEW |