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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 const gfx::Point& pt) const OVERRIDE; | 90 const gfx::Point& pt) const OVERRIDE; |
91 virtual IPC::PlatformFileForTransit ShareHandleWithRemote( | 91 virtual IPC::PlatformFileForTransit ShareHandleWithRemote( |
92 base::PlatformFile handle, | 92 base::PlatformFile handle, |
93 bool should_close_source) OVERRIDE; | 93 bool should_close_source) OVERRIDE; |
94 virtual bool IsRunningInProcess() const OVERRIDE; | 94 virtual bool IsRunningInProcess() const OVERRIDE; |
95 virtual void CreateBrowserResourceHosts( | 95 virtual void CreateBrowserResourceHosts( |
96 PP_Instance instance, | 96 PP_Instance instance, |
97 const std::vector<IPC::Message>& nested_msgs, | 97 const std::vector<IPC::Message>& nested_msgs, |
98 const base::Callback<void( | 98 const base::Callback<void( |
99 const std::vector<int>&)>& callback) const OVERRIDE; | 99 const std::vector<int>&)>& callback) const OVERRIDE; |
| 100 virtual GURL GetDocumentURL(PP_Instance instance) const OVERRIDE; |
100 | 101 |
101 private: | 102 private: |
102 RendererPpapiHostImpl(PluginModule* module, | 103 RendererPpapiHostImpl(PluginModule* module, |
103 ppapi::proxy::HostDispatcher* dispatcher, | 104 ppapi::proxy::HostDispatcher* dispatcher, |
104 const ppapi::PpapiPermissions& permissions); | 105 const ppapi::PpapiPermissions& permissions); |
105 RendererPpapiHostImpl(PluginModule* module, | 106 RendererPpapiHostImpl(PluginModule* module, |
106 const ppapi::PpapiPermissions& permissions); | 107 const ppapi::PpapiPermissions& permissions); |
107 | 108 |
108 // Retrieves the plugin instance object associated with the given PP_Instance | 109 // Retrieves the plugin instance object associated with the given PP_Instance |
109 // and validates that it is one of the instances associated with our module. | 110 // and validates that it is one of the instances associated with our module. |
(...skipping 16 matching lines...) Expand all Loading... |
126 | 127 |
127 // Whether the plugin is running in process. | 128 // Whether the plugin is running in process. |
128 bool is_running_in_process_; | 129 bool is_running_in_process_; |
129 | 130 |
130 DISALLOW_COPY_AND_ASSIGN(RendererPpapiHostImpl); | 131 DISALLOW_COPY_AND_ASSIGN(RendererPpapiHostImpl); |
131 }; | 132 }; |
132 | 133 |
133 } // namespace content | 134 } // namespace content |
134 | 135 |
135 #endif // CONTENT_RENDERER_PEPPER_RENDERER_PPAPI_HOST_IMPL_H_ | 136 #endif // CONTENT_RENDERER_PEPPER_RENDERER_PPAPI_HOST_IMPL_H_ |
OLD | NEW |