| 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" |
| 11 #include "content/renderer/pepper/content_renderer_pepper_host_factory.h" | 11 #include "content/renderer/pepper/content_renderer_pepper_host_factory.h" |
| 12 #include "ppapi/host/ppapi_host.h" | 12 #include "ppapi/host/ppapi_host.h" |
| 13 #include "ppapi/proxy/serialized_structs.h" |
| 13 | 14 |
| 14 namespace IPC { | 15 namespace IPC { |
| 15 class Sender; | 16 class Sender; |
| 16 } | 17 } |
| 17 | 18 |
| 18 namespace ppapi { | 19 namespace ppapi { |
| 19 | 20 |
| 20 namespace proxy { | 21 namespace proxy { |
| 21 class HostDispatcher; | 22 class HostDispatcher; |
| 22 } | 23 } |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 bool HasUserGesture(PP_Instance instance) const override; | 88 bool HasUserGesture(PP_Instance instance) const override; |
| 88 int GetRoutingIDForWidget(PP_Instance instance) const override; | 89 int GetRoutingIDForWidget(PP_Instance instance) const override; |
| 89 gfx::Point PluginPointToRenderFrame(PP_Instance instance, | 90 gfx::Point PluginPointToRenderFrame(PP_Instance instance, |
| 90 const gfx::Point& pt) const override; | 91 const gfx::Point& pt) const override; |
| 91 IPC::PlatformFileForTransit ShareHandleWithRemote( | 92 IPC::PlatformFileForTransit ShareHandleWithRemote( |
| 92 base::PlatformFile handle, | 93 base::PlatformFile handle, |
| 93 bool should_close_source) override; | 94 bool should_close_source) override; |
| 94 bool IsRunningInProcess() const override; | 95 bool IsRunningInProcess() const override; |
| 95 std::string GetPluginName() const override; | 96 std::string GetPluginName() const override; |
| 96 void SetToExternalPluginHost() override; | 97 void SetToExternalPluginHost() override; |
| 97 void CreateBrowserResourceHosts( | 98 int32_t CreateBrowserResourceHosts( |
| 98 PP_Instance instance, | 99 PP_Instance instance, |
| 99 const std::vector<IPC::Message>& nested_msgs, | 100 const std::vector<IPC::Message>& nested_msgs, |
| 100 const base::Callback<void(const std::vector<int>&)>& callback) | 101 const PendingResourceCallback& callback) const override; |
| 101 const override; | |
| 102 GURL GetDocumentURL(PP_Instance instance) const override; | 102 GURL GetDocumentURL(PP_Instance instance) const override; |
| 103 | 103 |
| 104 private: | 104 private: |
| 105 RendererPpapiHostImpl(PluginModule* module, | 105 RendererPpapiHostImpl(PluginModule* module, |
| 106 ppapi::proxy::HostDispatcher* dispatcher, | 106 ppapi::proxy::HostDispatcher* dispatcher, |
| 107 const ppapi::PpapiPermissions& permissions); | 107 const ppapi::PpapiPermissions& permissions); |
| 108 RendererPpapiHostImpl(PluginModule* module, | 108 RendererPpapiHostImpl(PluginModule* module, |
| 109 const ppapi::PpapiPermissions& permissions); | 109 const ppapi::PpapiPermissions& permissions); |
| 110 | 110 |
| 111 // Retrieves the plugin instance object associated with the given PP_Instance | 111 // Retrieves the plugin instance object associated with the given PP_Instance |
| (...skipping 20 matching lines...) Expand all Loading... |
| 132 | 132 |
| 133 // Whether this is a host for external plugins. | 133 // Whether this is a host for external plugins. |
| 134 bool is_external_plugin_host_; | 134 bool is_external_plugin_host_; |
| 135 | 135 |
| 136 DISALLOW_COPY_AND_ASSIGN(RendererPpapiHostImpl); | 136 DISALLOW_COPY_AND_ASSIGN(RendererPpapiHostImpl); |
| 137 }; | 137 }; |
| 138 | 138 |
| 139 } // namespace content | 139 } // namespace content |
| 140 | 140 |
| 141 #endif // CONTENT_RENDERER_PEPPER_RENDERER_PPAPI_HOST_IMPL_H_ | 141 #endif // CONTENT_RENDERER_PEPPER_RENDERER_PPAPI_HOST_IMPL_H_ |
| OLD | NEW |