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

Unified Diff: content/browser/browser_plugin/browser_plugin_guest.h

Issue 11554030: <webview>: Add name attribute (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added tests Created 8 years 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/browser_plugin/browser_plugin_guest.h
diff --git a/content/browser/browser_plugin/browser_plugin_guest.h b/content/browser/browser_plugin/browser_plugin_guest.h
index 09a884ed02f7a3020289fbaebd3e4a458646728c..7933991b86ce0c264b8d9814d6b05f6b0e2536cc 100644
--- a/content/browser/browser_plugin/browser_plugin_guest.h
+++ b/content/browser/browser_plugin/browser_plugin_guest.h
@@ -101,6 +101,15 @@ class CONTENT_EXPORT BrowserPluginGuest : public NotificationObserver,
bool focused() const { return focused_; }
bool visible() const { return visible_; }
+ // Sets the name of the guest so that other guests of the same partition can
+ // access it.
+ void SetName(const std::string& name);
+
+ // Notifies the embedder that the frame of a guest has updated its name.
+ void UpdateFrameName(int frame_id,
+ bool is_top_level,
+ const std::string& name);
+
// NotificationObserver implementation.
virtual void Observe(int type,
const NotificationSource& source,
@@ -308,6 +317,7 @@ class CONTENT_EXPORT BrowserPluginGuest : public NotificationObserver,
base::TimeDelta guest_hang_timeout_;
bool focused_;
bool visible_;
+ std::string name_;
bool auto_size_enabled_;
gfx::Size max_auto_size_;
gfx::Size min_auto_size_;

Powered by Google App Engine
This is Rietveld 408576698