| 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 #ifndef CONTENT_RENDERER_PEPPER_RENDERER_PPAPI_HOST_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_PEPPER_RENDERER_PPAPI_HOST_IMPL_H_ |
| 6 #define CONTENT_RENDERER_PEPPER_RENDERER_PPAPI_HOST_IMPL_H_ | 6 #define CONTENT_RENDERER_PEPPER_RENDERER_PPAPI_HOST_IMPL_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 // Factory functions to create in process or out-of-process host impls. The | 42 // Factory functions to create in process or out-of-process host impls. The |
| 43 // host will be created and associated with the given module, which must not | 43 // host will be created and associated with the given module, which must not |
| 44 // already have embedder state on it. | 44 // already have embedder state on it. |
| 45 // | 45 // |
| 46 // The module will take ownership of the new host impl. The returned value | 46 // The module will take ownership of the new host impl. The returned value |
| 47 // does not pass ownership, it's just for the information of the caller. | 47 // does not pass ownership, it's just for the information of the caller. |
| 48 static RendererPpapiHostImpl* CreateOnModuleForOutOfProcess( | 48 static RendererPpapiHostImpl* CreateOnModuleForOutOfProcess( |
| 49 PluginModule* module, | 49 PluginModule* module, |
| 50 ppapi::proxy::HostDispatcher* dispatcher, | 50 ppapi::proxy::HostDispatcher* dispatcher, |
| 51 const ppapi::PpapiPermissions& permissions); | 51 const ppapi::PpapiPermissions& permissions); |
| 52 static RendererPpapiHostImpl* CreateOnModuleForInProcess( | 52 CONTENT_EXPORT static RendererPpapiHostImpl* CreateOnModuleForInProcess( |
| 53 PluginModule* module, | 53 PluginModule* module, |
| 54 const ppapi::PpapiPermissions& permissions); | 54 const ppapi::PpapiPermissions& permissions); |
| 55 | 55 |
| 56 // Returns the RendererPpapiHostImpl associated with the given PP_Instance, | 56 // Returns the RendererPpapiHostImpl associated with the given PP_Instance, |
| 57 // or NULL if the instance is invalid. | 57 // or NULL if the instance is invalid. |
| 58 static RendererPpapiHostImpl* GetForPPInstance(PP_Instance pp_instance); | 58 static RendererPpapiHostImpl* GetForPPInstance(PP_Instance pp_instance); |
| 59 | 59 |
| 60 // Returns the router that we use for in-process IPC emulation (see the | 60 // Returns the router that we use for in-process IPC emulation (see the |
| 61 // pepper_in_process_router.h for more). This will be NULL when the plugin | 61 // pepper_in_process_router.h for more). This will be NULL when the plugin |
| 62 // is running out-of-process. | 62 // is running out-of-process. |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 | 143 |
| 144 // The scale between the viewport and dip. | 144 // The scale between the viewport and dip. |
| 145 float viewport_to_dip_scale_ = 1.0f; | 145 float viewport_to_dip_scale_ = 1.0f; |
| 146 | 146 |
| 147 DISALLOW_COPY_AND_ASSIGN(RendererPpapiHostImpl); | 147 DISALLOW_COPY_AND_ASSIGN(RendererPpapiHostImpl); |
| 148 }; | 148 }; |
| 149 | 149 |
| 150 } // namespace content | 150 } // namespace content |
| 151 | 151 |
| 152 #endif // CONTENT_RENDERER_PEPPER_RENDERER_PPAPI_HOST_IMPL_H_ | 152 #endif // CONTENT_RENDERER_PEPPER_RENDERER_PPAPI_HOST_IMPL_H_ |
| OLD | NEW |