blob: 23dc106317a6e89be2fc7da83e822e9ae3fb1159 [file] [log] [blame]
[email protected]83d12c8d2012-12-10 19:28:461// 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 Violet02e38b92018-03-27 23:42:148#include "ppapi/buildflags/buildflags.h"
[email protected]707e1c42013-07-09 21:18:589#include "url/gurl.h"
[email protected]83d12c8d2012-12-10 19:28:4610
brettw4b461082016-11-19 18:55:1611#if !BUILDFLAG(ENABLE_PLUGINS)
thestigc4cac8f2014-09-04 21:17:5012#error "Plugins should be enabled"
13#endif
14
[email protected]83d12c8d2012-12-10 19:28:4615namespace 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.
21struct PepperRendererInstanceData {
22 PepperRendererInstanceData();
23 PepperRendererInstanceData(int render_process,
[email protected]6dd625e2013-12-20 17:03:0724 int render_frame_id,
[email protected]83d12c8d2012-12-10 19:28:4625 const GURL& document,
raymes568fbca2015-05-14 19:24:2126 const GURL& plugin,
27 bool secure);
[email protected]83d12c8d2012-12-10 19:28:4628 ~PepperRendererInstanceData();
29 int render_process_id;
[email protected]6dd625e2013-12-20 17:03:0730 int render_frame_id;
[email protected]83d12c8d2012-12-10 19:28:4631 GURL document_url;
32 GURL plugin_url;
raymes568fbca2015-05-14 19:24:2133 // 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]83d12c8d2012-12-10 19:28:4637};
38
39} // namespace content
40
41#endif // CONTENT_COMMON_PEPPER_RENDERER_INSTANCE_DATA_H_