Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(38)

Side by Side Diff: content/common/pepper_renderer_instance_data.h

Issue 2512563003: Convert enable_plugins to a buildflag header. (Closed)
Patch Set: Merge Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/common/pepper_plugin_list.h ('k') | content/common/plugin_list.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "ppapi/features/features.h"
8 #include "url/gurl.h" 9 #include "url/gurl.h"
9 10
10 #if !defined(ENABLE_PLUGINS) 11 #if !BUILDFLAG(ENABLE_PLUGINS)
11 #error "Plugins should be enabled" 12 #error "Plugins should be enabled"
12 #endif 13 #endif
13 14
14 namespace content { 15 namespace content {
15 16
16 // This struct contains data which is associated with a particular plugin 17 // 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 // 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 // This data is transferred to the browser process from the renderer when the
19 // instance is created and is stored in the BrowserPpapiHost. 20 // instance is created and is stored in the BrowserPpapiHost.
20 struct PepperRendererInstanceData { 21 struct PepperRendererInstanceData {
(...skipping 10 matching lines...) Expand all
31 GURL plugin_url; 32 GURL plugin_url;
32 // Whether the plugin context is secure. That is, it is served from a secure 33 // 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 // 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 // comes from the renderer so should not be trusted. It is used for metrics.
35 bool is_potentially_secure_plugin_context; 36 bool is_potentially_secure_plugin_context;
36 }; 37 };
37 38
38 } // namespace content 39 } // namespace content
39 40
40 #endif // CONTENT_COMMON_PEPPER_RENDERER_INSTANCE_DATA_H_ 41 #endif // CONTENT_COMMON_PEPPER_RENDERER_INSTANCE_DATA_H_
OLDNEW
« no previous file with comments | « content/common/pepper_plugin_list.h ('k') | content/common/plugin_list.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698