Chromium Code Reviews| Index: content/public/browser/web_contents.h |
| diff --git a/content/public/browser/web_contents.h b/content/public/browser/web_contents.h |
| index 6814e175ec4e8f25287b17c7513fa62d7bbd8715..addb53f8d641566d023a0ea54aa08c9e971bd0ed 100644 |
| --- a/content/public/browser/web_contents.h |
| +++ b/content/public/browser/web_contents.h |
| @@ -146,6 +146,14 @@ class WebContents : public PageNavigator, |
| int y, |
| const GetRenderViewHostCallback& callback) = 0; |
| + // Returns the WebContents embedding this WebContents, if any. |
| + // If this is a top-level WebContents then it returns NULL. |
| + virtual WebContents* GetEmbedderWebContents() const = 0; |
| + |
| + // Gets the instance ID of the current WebContents if it is embedded |
| + // within a BrowserPlugin. It returns 0 if not. |
| + virtual int GetInstanceID() const = 0; |
|
jam
2013/02/06 17:02:09
why does this need to be exposed? i don't see it u
Fady Samuel
2013/02/06 17:06:00
It is, see in ExtensionRendererState
web_view_inf
|
| + |
| // Gets the current RenderViewHost's routing id. Returns |
| // MSG_ROUTING_NONE when there is no RenderViewHost. |
| virtual int GetRoutingID() const = 0; |