Chromium Code Reviews| Index: content/common/pepper_renderer_instance_data.h |
| diff --git a/content/common/pepper_renderer_instance_data.h b/content/common/pepper_renderer_instance_data.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..1dd1fd80bcda4ba8c77184ed98a424fabd5c9cd7 |
| --- /dev/null |
| +++ b/content/common/pepper_renderer_instance_data.h |
| @@ -0,0 +1,30 @@ |
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CONTENT_COMMON_PEPPER_RENDERER_INSTANCE_DATA_H_ |
| +#define CONTENT_COMMON_PEPPER_RENDERER_INSTANCE_DATA_H_ |
| + |
| +#include "googleurl/src/gurl.h" |
| + |
| +namespace content { |
| + |
| +// This struct contains data which is associated with a particular plugin |
| +// instance and is related to the renderer in which the plugin instance lives. |
| +// This data is transferred to the browser process from the renderer when the |
| +// instance is created and is stored in the BrowserPpapiHost. |
| +struct PepperRendererInstanceData { |
| + PepperRendererInstanceData(); |
| + PepperRendererInstanceData(int render_process, |
|
brettw
2012/12/05 23:00:26
Do we need a destructor here since there are non-t
raymes
2012/12/07 21:32:19
Done.
|
| + int render_view, |
| + const GURL& document, |
| + const GURL& plugin); |
| + int render_process_id; |
| + int render_view_id; |
| + GURL document_url; |
| + GURL plugin_url; |
| +}; |
| + |
| +} // namespace content |
| + |
| +#endif // CONTENT_COMMON_PEPPER_RENDERER_INSTANCE_DATA_H_ |