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/renderer/pepper/renderer_ppapi_host_impl.h" | 5 #include "content/renderer/pepper/renderer_ppapi_host_impl.h" |
6 | 6 |
7 #include "base/files/file_path.h" | 7 #include "base/files/file_path.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/process_util.h" | 9 #include "base/process/process_handle.h" |
10 #include "content/common/sandbox_util.h" | 10 #include "content/common/sandbox_util.h" |
11 #include "content/renderer/pepper/pepper_browser_connection.h" | 11 #include "content/renderer/pepper/pepper_browser_connection.h" |
12 #include "content/renderer/pepper/pepper_graphics_2d_host.h" | 12 #include "content/renderer/pepper/pepper_graphics_2d_host.h" |
13 #include "content/renderer/pepper/pepper_in_process_resource_creation.h" | 13 #include "content/renderer/pepper/pepper_in_process_resource_creation.h" |
14 #include "content/renderer/pepper/pepper_in_process_router.h" | 14 #include "content/renderer/pepper/pepper_in_process_router.h" |
15 #include "content/renderer/pepper/pepper_plugin_delegate_impl.h" | 15 #include "content/renderer/pepper/pepper_plugin_delegate_impl.h" |
16 #include "content/renderer/render_view_impl.h" | 16 #include "content/renderer/render_view_impl.h" |
17 #include "content/renderer/render_widget_fullscreen_pepper.h" | 17 #include "content/renderer/render_widget_fullscreen_pepper.h" |
18 #include "ipc/ipc_message.h" | 18 #include "ipc/ipc_message.h" |
19 #include "ppapi/host/ppapi_host.h" | 19 #include "ppapi/host/ppapi_host.h" |
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
296 PP_Instance pp_instance) const { | 296 PP_Instance pp_instance) const { |
297 PluginInstance* instance = HostGlobals::Get()->GetInstance(pp_instance); | 297 PluginInstance* instance = HostGlobals::Get()->GetInstance(pp_instance); |
298 if (!instance) | 298 if (!instance) |
299 return NULL; | 299 return NULL; |
300 if (!instance->IsValidInstanceOf(module_)) | 300 if (!instance->IsValidInstanceOf(module_)) |
301 return NULL; | 301 return NULL; |
302 return instance; | 302 return instance; |
303 } | 303 } |
304 | 304 |
305 } // namespace content | 305 } // namespace content |
OLD | NEW |