OLD | NEW |
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 "googleurl/src/gurl.h" | 8 #include "url/gurl.h" |
9 | 9 |
10 namespace content { | 10 namespace content { |
11 | 11 |
12 // This struct contains data which is associated with a particular plugin | 12 // 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. | 13 // 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 | 14 // This data is transferred to the browser process from the renderer when the |
15 // instance is created and is stored in the BrowserPpapiHost. | 15 // instance is created and is stored in the BrowserPpapiHost. |
16 struct PepperRendererInstanceData { | 16 struct PepperRendererInstanceData { |
17 PepperRendererInstanceData(); | 17 PepperRendererInstanceData(); |
18 PepperRendererInstanceData(int render_process, | 18 PepperRendererInstanceData(int render_process, |
19 int render_view, | 19 int render_view, |
20 const GURL& document, | 20 const GURL& document, |
21 const GURL& plugin); | 21 const GURL& plugin); |
22 ~PepperRendererInstanceData(); | 22 ~PepperRendererInstanceData(); |
23 int render_process_id; | 23 int render_process_id; |
24 int render_view_id; | 24 int render_view_id; |
25 GURL document_url; | 25 GURL document_url; |
26 GURL plugin_url; | 26 GURL plugin_url; |
27 }; | 27 }; |
28 | 28 |
29 } // namespace content | 29 } // namespace content |
30 | 30 |
31 #endif // CONTENT_COMMON_PEPPER_RENDERER_INSTANCE_DATA_H_ | 31 #endif // CONTENT_COMMON_PEPPER_RENDERER_INSTANCE_DATA_H_ |
OLD | NEW |