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 0431c17831b5ffd6186bb6db48c4994cf1c37bd8..be5d5ee64578871a18e31b186a9a4e67d2dbf0cf 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; |
|
Matt Perry
2013/02/06 22:06:55
GetEmbeddedInstanceId?
Fady Samuel
2013/02/06 23:23:33
Done.
|
| + |
| // Gets the current RenderViewHost's routing id. Returns |
| // MSG_ROUTING_NONE when there is no RenderViewHost. |
| virtual int GetRoutingID() const = 0; |