[email protected] | 83d12c8d | 2012-12-10 19:28:46 | [diff] [blame] | 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 | ||||
3 | // found in the LICENSE file. | ||||
4 | |||||
5 | #ifndef CONTENT_COMMON_PEPPER_RENDERER_INSTANCE_DATA_H_ | ||||
6 | #define CONTENT_COMMON_PEPPER_RENDERER_INSTANCE_DATA_H_ | ||||
7 | |||||
Scott Violet | 02e38b9 | 2018-03-27 23:42:14 | [diff] [blame] | 8 | #include "ppapi/buildflags/buildflags.h" |
[email protected] | 707e1c4 | 2013-07-09 21:18:58 | [diff] [blame] | 9 | #include "url/gurl.h" |
[email protected] | 83d12c8d | 2012-12-10 19:28:46 | [diff] [blame] | 10 | |
brettw | 4b46108 | 2016-11-19 18:55:16 | [diff] [blame] | 11 | #if !BUILDFLAG(ENABLE_PLUGINS) |
thestig | c4cac8f | 2014-09-04 21:17:50 | [diff] [blame] | 12 | #error "Plugins should be enabled" |
13 | #endif | ||||
14 | |||||
[email protected] | 83d12c8d | 2012-12-10 19:28:46 | [diff] [blame] | 15 | namespace content { |
16 | |||||
17 | // This struct contains data which is associated with a particular plugin | ||||
18 | // instance and is related to the renderer in which the plugin instance lives. | ||||
19 | // This data is transferred to the browser process from the renderer when the | ||||
20 | // instance is created and is stored in the BrowserPpapiHost. | ||||
21 | struct PepperRendererInstanceData { | ||||
22 | PepperRendererInstanceData(); | ||||
23 | PepperRendererInstanceData(int render_process, | ||||
[email protected] | 6dd625e | 2013-12-20 17:03:07 | [diff] [blame] | 24 | int render_frame_id, |
[email protected] | 83d12c8d | 2012-12-10 19:28:46 | [diff] [blame] | 25 | const GURL& document, |
raymes | 568fbca | 2015-05-14 19:24:21 | [diff] [blame] | 26 | const GURL& plugin, |
27 | bool secure); | ||||
[email protected] | 83d12c8d | 2012-12-10 19:28:46 | [diff] [blame] | 28 | ~PepperRendererInstanceData(); |
29 | int render_process_id; | ||||
[email protected] | 6dd625e | 2013-12-20 17:03:07 | [diff] [blame] | 30 | int render_frame_id; |
[email protected] | 83d12c8d | 2012-12-10 19:28:46 | [diff] [blame] | 31 | GURL document_url; |
32 | GURL plugin_url; | ||||
raymes | 568fbca | 2015-05-14 19:24:21 | [diff] [blame] | 33 | // Whether the plugin context is secure. That is, it is served from a secure |
34 | // origin and it is embedded within a hierarchy of secure frames. This value | ||||
35 | // comes from the renderer so should not be trusted. It is used for metrics. | ||||
36 | bool is_potentially_secure_plugin_context; | ||||
[email protected] | 83d12c8d | 2012-12-10 19:28:46 | [diff] [blame] | 37 | }; |
38 | |||||
39 | } // namespace content | ||||
40 | |||||
41 | #endif // CONTENT_COMMON_PEPPER_RENDERER_INSTANCE_DATA_H_ |