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

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

Issue 525513003: Cleanup: Put more plugin code behind the ENABLE_PLUGINS ifdef. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 3 months 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 "url/gurl.h" 8 #include "url/gurl.h"
9 9
10 #if !defined(ENABLE_PLUGINS)
11 #error "Plugins should be enabled"
12 #endif
13
10 namespace content { 14 namespace content {
11 15
12 // This struct contains data which is associated with a particular plugin 16 // This struct contains data which is associated with a particular plugin
13 // 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.
14 // 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
15 // instance is created and is stored in the BrowserPpapiHost. 19 // instance is created and is stored in the BrowserPpapiHost.
16 struct PepperRendererInstanceData { 20 struct PepperRendererInstanceData {
17 PepperRendererInstanceData(); 21 PepperRendererInstanceData();
18 PepperRendererInstanceData(int render_process, 22 PepperRendererInstanceData(int render_process,
19 int render_frame_id, 23 int render_frame_id,
20 const GURL& document, 24 const GURL& document,
21 const GURL& plugin); 25 const GURL& plugin);
22 ~PepperRendererInstanceData(); 26 ~PepperRendererInstanceData();
23 int render_process_id; 27 int render_process_id;
24 int render_frame_id; 28 int render_frame_id;
25 GURL document_url; 29 GURL document_url;
26 GURL plugin_url; 30 GURL plugin_url;
27 }; 31 };
28 32
29 } // namespace content 33 } // namespace content
30 34
31 #endif // CONTENT_COMMON_PEPPER_RENDERER_INSTANCE_DATA_H_ 35 #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