12a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Copyright (c) 2012 The Chromium Authors. All rights reserved. 22a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Use of this source code is governed by a BSD-style license that can be 32a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// found in the LICENSE file. 42a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles) 52a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)#ifndef CONTENT_COMMON_PEPPER_RENDERER_INSTANCE_DATA_H_ 62a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)#define CONTENT_COMMON_PEPPER_RENDERER_INSTANCE_DATA_H_ 72a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles) 87dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch#include "url/gurl.h" 92a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles) 102a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)namespace content { 112a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles) 122a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// This struct contains data which is associated with a particular plugin 132a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// instance and is related to the renderer in which the plugin instance lives. 142a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// This data is transferred to the browser process from the renderer when the 152a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// instance is created and is stored in the BrowserPpapiHost. 162a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)struct PepperRendererInstanceData { 172a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles) PepperRendererInstanceData(); 182a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles) PepperRendererInstanceData(int render_process, 192a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles) int render_view, 202a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles) const GURL& document, 212a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles) const GURL& plugin); 222a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles) ~PepperRendererInstanceData(); 232a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles) int render_process_id; 242a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles) int render_view_id; 252a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles) GURL document_url; 262a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles) GURL plugin_url; 272a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)}; 282a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles) 292a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)} // namespace content 302a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles) 312a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)#endif // CONTENT_COMMON_PEPPER_RENDERER_INSTANCE_DATA_H_ 32