| 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_COMMON_PEPPER_RENDERER_INSTANCE_DATA_H_ | 5 #ifndef CONTENT_COMMON_PEPPER_RENDERER_INSTANCE_DATA_H_ |
| 6 #define CONTENT_COMMON_PEPPER_RENDERER_INSTANCE_DATA_H_ | 6 #define CONTENT_COMMON_PEPPER_RENDERER_INSTANCE_DATA_H_ |
| 7 | 7 |
| 8 #include "url/gurl.h" | 8 #include "url/gurl.h" |
| 9 | 9 |
| 10 #if !defined(ENABLE_PLUGINS) | 10 #if !defined(ENABLE_PLUGINS) |
| 11 #error "Plugins should be enabled" | 11 #error "Plugins should be enabled" |
| 12 #endif | 12 #endif |
| 13 | 13 |
| 14 namespace content { | 14 namespace content { |
| 15 | 15 |
| 16 // This struct contains data which is associated with a particular plugin | 16 // This struct contains data which is associated with a particular plugin |
| 17 // instance and is related to the renderer in which the plugin instance lives. | 17 // instance and is related to the renderer in which the plugin instance lives. |
| 18 // This data is transferred to the browser process from the renderer when the | 18 // This data is transferred to the browser process from the renderer when the |
| 19 // instance is created and is stored in the BrowserPpapiHost. | 19 // instance is created and is stored in the BrowserPpapiHost. |
| 20 struct PepperRendererInstanceData { | 20 struct PepperRendererInstanceData { |
| 21 PepperRendererInstanceData(); | 21 PepperRendererInstanceData(); |
| 22 PepperRendererInstanceData(int render_process, | 22 PepperRendererInstanceData(int render_process, |
| 23 int render_frame_id, | 23 int render_frame_id, |
| 24 const GURL& document, | 24 const GURL& document, |
| 25 const GURL& plugin); | 25 const GURL& plugin, |
| 26 bool privileged); |
| 26 ~PepperRendererInstanceData(); | 27 ~PepperRendererInstanceData(); |
| 27 int render_process_id; | 28 int render_process_id; |
| 28 int render_frame_id; | 29 int render_frame_id; |
| 29 GURL document_url; | 30 GURL document_url; |
| 30 GURL plugin_url; | 31 GURL plugin_url; |
| 32 // Whether the plugin is running in a privileged context. That is, it is |
| 33 // served from a secure origin and it is embedded within a heirachy of secure |
| 34 // frames. |
| 35 bool is_privileged_context; |
| 31 }; | 36 }; |
| 32 | 37 |
| 33 } // namespace content | 38 } // namespace content |
| 34 | 39 |
| 35 #endif // CONTENT_COMMON_PEPPER_RENDERER_INSTANCE_DATA_H_ | 40 #endif // CONTENT_COMMON_PEPPER_RENDERER_INSTANCE_DATA_H_ |
| OLD | NEW |