| 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 base::PlatformFile handle, | 92 base::PlatformFile handle, |
| 93 bool should_close_source) override; | 93 bool should_close_source) override; |
| 94 bool IsRunningInProcess() const override; | 94 bool IsRunningInProcess() const override; |
| 95 std::string GetPluginName() const override; | 95 std::string GetPluginName() const override; |
| 96 void SetToExternalPluginHost() override; | 96 void SetToExternalPluginHost() override; |
| 97 void CreateBrowserResourceHosts( | 97 void CreateBrowserResourceHosts( |
| 98 PP_Instance instance, | 98 PP_Instance instance, |
| 99 const std::vector<IPC::Message>& nested_msgs, | 99 const std::vector<IPC::Message>& nested_msgs, |
| 100 const base::Callback<void(const std::vector<int>&)>& callback) | 100 const base::Callback<void(const std::vector<int>&)>& callback) |
| 101 const override; | 101 const override; |
| 102 GURL GetDocumentURL(PP_Instance instance) const override; | 102 GURL GetDocumentURL(PP_Instance pp_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 |
| 112 // and validates that it is one of the instances associated with our module. | 112 // and validates that it is one of the instances associated with our module. |
| (...skipping 19 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 |