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 "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "content/public/renderer/renderer_ppapi_host.h" | 10 #include "content/public/renderer/renderer_ppapi_host.h" |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 // happen automatically. | 75 // happen automatically. |
76 scoped_ptr< ::ppapi::thunk::ResourceCreationAPI> | 76 scoped_ptr< ::ppapi::thunk::ResourceCreationAPI> |
77 CreateInProcessResourceCreationAPI( | 77 CreateInProcessResourceCreationAPI( |
78 webkit::ppapi::PluginInstance* instance); | 78 webkit::ppapi::PluginInstance* instance); |
79 | 79 |
80 // RendererPpapiHost. | 80 // RendererPpapiHost. |
81 virtual ppapi::host::PpapiHost* GetPpapiHost() OVERRIDE; | 81 virtual ppapi::host::PpapiHost* GetPpapiHost() OVERRIDE; |
82 virtual bool IsValidInstance(PP_Instance instance) const OVERRIDE; | 82 virtual bool IsValidInstance(PP_Instance instance) const OVERRIDE; |
83 virtual RenderView* GetRenderViewForInstance( | 83 virtual RenderView* GetRenderViewForInstance( |
84 PP_Instance instance) const OVERRIDE; | 84 PP_Instance instance) const OVERRIDE; |
| 85 virtual WebKit::WebPluginContainer* GetContainerForInstance( |
| 86 PP_Instance instance) const OVERRIDE; |
85 virtual bool HasUserGesture(PP_Instance instance) const OVERRIDE; | 87 virtual bool HasUserGesture(PP_Instance instance) const OVERRIDE; |
86 | 88 |
87 private: | 89 private: |
88 RendererPpapiHostImpl(webkit::ppapi::PluginModule* module, | 90 RendererPpapiHostImpl(webkit::ppapi::PluginModule* module, |
89 ppapi::proxy::HostDispatcher* dispatcher, | 91 ppapi::proxy::HostDispatcher* dispatcher, |
90 const ppapi::PpapiPermissions& permissions); | 92 const ppapi::PpapiPermissions& permissions); |
91 RendererPpapiHostImpl(webkit::ppapi::PluginModule* module, | 93 RendererPpapiHostImpl(webkit::ppapi::PluginModule* module, |
92 const ppapi::PpapiPermissions& permissions); | 94 const ppapi::PpapiPermissions& permissions); |
93 | 95 |
94 // Retrieves the plugin instance object associated with the given PP_Instance | 96 // Retrieves the plugin instance object associated with the given PP_Instance |
(...skipping 11 matching lines...) Expand all Loading... |
106 | 108 |
107 // Null when running out-of-process. | 109 // Null when running out-of-process. |
108 scoped_ptr<PepperInProcessRouter> in_process_router_; | 110 scoped_ptr<PepperInProcessRouter> in_process_router_; |
109 | 111 |
110 DISALLOW_COPY_AND_ASSIGN(RendererPpapiHostImpl); | 112 DISALLOW_COPY_AND_ASSIGN(RendererPpapiHostImpl); |
111 }; | 113 }; |
112 | 114 |
113 } // namespace content | 115 } // namespace content |
114 | 116 |
115 #endif // CONTENT_RENDERER_PEPPER_RENDERER_PPAPI_HOST_IMPL_H_ | 117 #endif // CONTENT_RENDERER_PEPPER_RENDERER_PPAPI_HOST_IMPL_H_ |
OLD | NEW |