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.
5 #ifndef CONTENT_COMMON_PEPPER_RENDERER_INSTANCE_DATA_H_
6 #define CONTENT_COMMON_PEPPER_RENDERER_INSTANCE_DATA_H_
10 #if !defined(ENABLE_PLUGINS)
11 #error "Plugins should be enabled"
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.
18 // This data is transferred to the browser process from the renderer when the
19 // instance is created and is stored in the BrowserPpapiHost.
20 struct PepperRendererInstanceData
{
21 PepperRendererInstanceData();
22 PepperRendererInstanceData(int render_process
,
27 ~PepperRendererInstanceData();
28 int render_process_id
;
32 // Whether the plugin context is secure. That is, it is served from a secure
33 // origin and it is embedded within a hierarchy of secure frames. This value
34 // comes from the renderer so should not be trusted. It is used for metrics.
35 bool is_potentially_secure_plugin_context
;
38 } // namespace content
40 #endif // CONTENT_COMMON_PEPPER_RENDERER_INSTANCE_DATA_H_