Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(647)

Unified Diff: content/browser/web_contents/web_contents_impl.h

Issue 13467038: Browser Plugin: Expose frame name changes to the content API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/web_contents/web_contents_impl.h
diff --git a/content/browser/web_contents/web_contents_impl.h b/content/browser/web_contents/web_contents_impl.h
index e0e64e2099c3ca66b26ef3c7543af058387af501..c1c9d31fc07f9ed4d68c99c7b9f89de80fe0dc2d 100644
--- a/content/browser/web_contents/web_contents_impl.h
+++ b/content/browser/web_contents/web_contents_impl.h
@@ -194,6 +194,8 @@ class CONTENT_EXPORT WebContentsImpl
virtual WebUI* GetCommittedWebUI() const OVERRIDE;
virtual void SetUserAgentOverride(const std::string& override) OVERRIDE;
virtual const std::string& GetUserAgentOverride() const OVERRIDE;
+ virtual void SetWindowName(const std::string& name) OVERRIDE;
+ virtual const std::string& GetWindowName() const OVERRIDE;
virtual const string16& GetTitle() const OVERRIDE;
virtual int32 GetMaxPageID() OVERRIDE;
virtual int32 GetMaxPageIDForSiteInstance(
@@ -328,6 +330,10 @@ class CONTENT_EXPORT WebContentsImpl
virtual void DidChangeLoadProgress(double progress) OVERRIDE;
virtual void DidDisownOpener(RenderViewHost* rvh) OVERRIDE;
virtual void DidUpdateFrameTree(RenderViewHost* rvh) OVERRIDE;
+ virtual void DidUpdateFrameName(RenderViewHost* rvh,
+ int frame_id,
+ bool is_top_level,
+ const std::string& name) OVERRIDE;
virtual void DocumentAvailableInMainFrame(
RenderViewHost* render_view_host) OVERRIDE;
virtual void DocumentOnLoadCompletedInMainFrame(
@@ -718,6 +724,8 @@ class CONTENT_EXPORT WebContentsImpl
// The tab that opened this tab, if any. Will be set to null if the opener
// is closed.
WebContentsImpl* opener_;
+ // The name of the window according to window.name.
+ std::string window_name_;
// Helper classes ------------------------------------------------------------

Powered by Google App Engine
This is Rietveld 408576698