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_BROWSER_RENDERER_HOST_PEPPER_BROWSER_PPAPI_HOST_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_PEPPER_BROWSER_PPAPI_HOST_IMPL_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_PEPPER_BROWSER_PPAPI_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_PEPPER_BROWSER_PPAPI_HOST_IMPL_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 int* render_process_id, | 65 int* render_process_id, |
66 int* render_frame_id) const override; | 66 int* render_frame_id) const override; |
67 const std::string& GetPluginName() override; | 67 const std::string& GetPluginName() override; |
68 const base::FilePath& GetPluginPath() override; | 68 const base::FilePath& GetPluginPath() override; |
69 const base::FilePath& GetProfileDataDirectory() override; | 69 const base::FilePath& GetProfileDataDirectory() override; |
70 GURL GetDocumentURLForInstance(PP_Instance instance) override; | 70 GURL GetDocumentURLForInstance(PP_Instance instance) override; |
71 GURL GetPluginURLForInstance(PP_Instance instance) override; | 71 GURL GetPluginURLForInstance(PP_Instance instance) override; |
72 void SetOnKeepaliveCallback( | 72 void SetOnKeepaliveCallback( |
73 const BrowserPpapiHost::OnKeepaliveCallback& callback) override; | 73 const BrowserPpapiHost::OnKeepaliveCallback& callback) override; |
74 | 74 |
| 75 // Whether the plugin is running in a privileged context. That is, it is |
| 76 // served from a secure origin and it is embedded within a heirachy of secure |
| 77 // frames. |
| 78 bool IsPrivilegedContext(PP_Instance instance); |
| 79 |
75 void set_plugin_process(base::Process process) { | 80 void set_plugin_process(base::Process process) { |
76 plugin_process_ = process.Pass(); | 81 plugin_process_ = process.Pass(); |
77 } | 82 } |
78 | 83 |
79 bool external_plugin() const { return external_plugin_; } | 84 bool external_plugin() const { return external_plugin_; } |
80 | 85 |
81 // These two functions are notifications that an instance has been created | 86 // These two functions are notifications that an instance has been created |
82 // or destroyed. They allow us to maintain a mapping of PP_Instance to data | 87 // or destroyed. They allow us to maintain a mapping of PP_Instance to data |
83 // associated with the instance including view IDs in the browser process. | 88 // associated with the instance including view IDs in the browser process. |
84 void AddInstance(PP_Instance instance, | 89 void AddInstance(PP_Instance instance, |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 scoped_refptr<HostMessageFilter> message_filter_; | 165 scoped_refptr<HostMessageFilter> message_filter_; |
161 | 166 |
162 BrowserPpapiHost::OnKeepaliveCallback on_keepalive_callback_; | 167 BrowserPpapiHost::OnKeepaliveCallback on_keepalive_callback_; |
163 | 168 |
164 DISALLOW_COPY_AND_ASSIGN(BrowserPpapiHostImpl); | 169 DISALLOW_COPY_AND_ASSIGN(BrowserPpapiHostImpl); |
165 }; | 170 }; |
166 | 171 |
167 } // namespace content | 172 } // namespace content |
168 | 173 |
169 #endif // CONTENT_BROWSER_RENDERER_HOST_PEPPER_BROWSER_PPAPI_HOST_IMPL_H_ | 174 #endif // CONTENT_BROWSER_RENDERER_HOST_PEPPER_BROWSER_PPAPI_HOST_IMPL_H_ |
OLD | NEW |