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

Unified Diff: content/browser/frame_host/render_frame_host_manager.h

Issue 1098763003: Send origin updates to frame proxies when a frame navigates to new origin. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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/frame_host/render_frame_host_manager.h
diff --git a/content/browser/frame_host/render_frame_host_manager.h b/content/browser/frame_host/render_frame_host_manager.h
index aece88af4f44f7939760e72a2aeed066367e2266..d6537031ca0825986bfd08759fe6eee42901ca0f 100644
--- a/content/browser/frame_host/render_frame_host_manager.h
+++ b/content/browser/frame_host/render_frame_host_manager.h
@@ -19,6 +19,7 @@
#include "content/public/browser/notification_registrar.h"
#include "content/public/common/referrer.h"
#include "ui/base/page_transition_types.h"
+#include "url/origin.h"
namespace content {
class BrowserContext;
@@ -417,6 +418,10 @@ class CONTENT_EXPORT RenderFrameHostManager : public NotificationObserver {
// window.name property.
void OnDidUpdateName(const std::string& name);
+ // Send updated origin to all frame proxies when the frame navigates to a new
+ // origin.
+ void OnDidUpdateOrigin(const url::Origin& origin);
+
void EnsureRenderViewInitialized(FrameTreeNode* source,
RenderViewHostImpl* render_view_host,
SiteInstance* instance);

Powered by Google App Engine
This is Rietveld 408576698