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 <map> | |
9 | |
8 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
9 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
10 #include "content/public/renderer/renderer_ppapi_host.h" | 12 #include "content/public/renderer/renderer_ppapi_host.h" |
11 #include "content/renderer/pepper/content_renderer_pepper_host_factory.h" | 13 #include "content/renderer/pepper/content_renderer_pepper_host_factory.h" |
12 #include "ppapi/host/ppapi_host.h" | 14 #include "ppapi/host/ppapi_host.h" |
13 #include "webkit/plugins/ppapi/plugin_delegate.h" | 15 #include "webkit/plugins/ppapi/plugin_delegate.h" |
14 #include "webkit/plugins/ppapi/plugin_module.h" | 16 #include "webkit/plugins/ppapi/plugin_module.h" |
15 | 17 |
16 namespace IPC { | 18 namespace IPC { |
17 class Sender; | 19 class Sender; |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
96 virtual base::ProcessId GetPluginPID() const OVERRIDE; | 98 virtual base::ProcessId GetPluginPID() const OVERRIDE; |
97 virtual bool HasUserGesture(PP_Instance instance) const OVERRIDE; | 99 virtual bool HasUserGesture(PP_Instance instance) const OVERRIDE; |
98 virtual int GetRoutingIDForWidget(PP_Instance instance) const OVERRIDE; | 100 virtual int GetRoutingIDForWidget(PP_Instance instance) const OVERRIDE; |
99 virtual gfx::Point PluginPointToRenderView( | 101 virtual gfx::Point PluginPointToRenderView( |
100 PP_Instance instance, | 102 PP_Instance instance, |
101 const gfx::Point& pt) const OVERRIDE; | 103 const gfx::Point& pt) const OVERRIDE; |
102 virtual IPC::PlatformFileForTransit ShareHandleWithRemote( | 104 virtual IPC::PlatformFileForTransit ShareHandleWithRemote( |
103 base::PlatformFile handle, | 105 base::PlatformFile handle, |
104 bool should_close_source) OVERRIDE; | 106 bool should_close_source) OVERRIDE; |
105 virtual bool IsRunningInProcess() const OVERRIDE; | 107 virtual bool IsRunningInProcess() const OVERRIDE; |
108 virtual void CreateBrowserResourceHost( | |
109 PP_Instance instance, | |
110 const IPC::Message& nested_msg, | |
111 base::Callback<void(int32)> callback) const OVERRIDE; | |
teravest
2013/05/29 15:19:36
nit: You've got int32 here, and int in the impleme
raymes
2013/05/29 15:53:03
good catch thanks
| |
106 | 112 |
107 private: | 113 private: |
108 RendererPpapiHostImpl(webkit::ppapi::PluginModule* module, | 114 RendererPpapiHostImpl(webkit::ppapi::PluginModule* module, |
109 ppapi::proxy::HostDispatcher* dispatcher, | 115 ppapi::proxy::HostDispatcher* dispatcher, |
110 const ppapi::PpapiPermissions& permissions); | 116 const ppapi::PpapiPermissions& permissions); |
111 RendererPpapiHostImpl(webkit::ppapi::PluginModule* module, | 117 RendererPpapiHostImpl(webkit::ppapi::PluginModule* module, |
112 const ppapi::PpapiPermissions& permissions); | 118 const ppapi::PpapiPermissions& permissions); |
113 | 119 |
114 // Retrieves the plugin instance object associated with the given PP_Instance | 120 // Retrieves the plugin instance object associated with the given PP_Instance |
115 // and validates that it is one of the instances associated with our module. | 121 // and validates that it is one of the instances associated with our module. |
(...skipping 17 matching lines...) Expand all Loading... | |
133 | 139 |
134 // Whether the plugin is running in process. | 140 // Whether the plugin is running in process. |
135 bool is_running_in_process_; | 141 bool is_running_in_process_; |
136 | 142 |
137 DISALLOW_COPY_AND_ASSIGN(RendererPpapiHostImpl); | 143 DISALLOW_COPY_AND_ASSIGN(RendererPpapiHostImpl); |
138 }; | 144 }; |
139 | 145 |
140 } // namespace content | 146 } // namespace content |
141 | 147 |
142 #endif // CONTENT_RENDERER_PEPPER_RENDERER_PPAPI_HOST_IMPL_H_ | 148 #endif // CONTENT_RENDERER_PEPPER_RENDERER_PPAPI_HOST_IMPL_H_ |
OLD | NEW |