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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 // and validates that it is one of the instances associated with our module. | 95 // and validates that it is one of the instances associated with our module. |
96 // Returns NULL on failure. | 96 // Returns NULL on failure. |
97 // | 97 // |
98 // We use this to security check the PP_Instance values sent from a plugin to | 98 // We use this to security check the PP_Instance values sent from a plugin to |
99 // make sure it's not trying to spoof another instance. | 99 // make sure it's not trying to spoof another instance. |
100 webkit::ppapi::PluginInstance* GetAndValidateInstance( | 100 webkit::ppapi::PluginInstance* GetAndValidateInstance( |
101 PP_Instance instance) const; | 101 PP_Instance instance) const; |
102 | 102 |
103 webkit::ppapi::PluginModule* module_; // Non-owning pointer. | 103 webkit::ppapi::PluginModule* module_; // Non-owning pointer. |
104 | 104 |
105 ContentRendererPepperHostFactory host_factory_; | |
106 scoped_ptr<ppapi::host::PpapiHost> ppapi_host_; | 105 scoped_ptr<ppapi::host::PpapiHost> ppapi_host_; |
107 | 106 |
108 // Null when running out-of-process. | 107 // Null when running out-of-process. |
109 scoped_ptr<PepperInProcessRouter> in_process_router_; | 108 scoped_ptr<PepperInProcessRouter> in_process_router_; |
110 | 109 |
111 DISALLOW_COPY_AND_ASSIGN(RendererPpapiHostImpl); | 110 DISALLOW_COPY_AND_ASSIGN(RendererPpapiHostImpl); |
112 }; | 111 }; |
113 | 112 |
114 } // namespace content | 113 } // namespace content |
115 | 114 |
116 #endif // CONTENT_RENDERER_PEPPER_RENDERER_PPAPI_HOST_IMPL_H_ | 115 #endif // CONTENT_RENDERER_PEPPER_RENDERER_PPAPI_HOST_IMPL_H_ |
OLD | NEW |