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

Unified Diff: content/public/browser/render_frame_host.h

Issue 1475433002: Expose RenderFrameHost::GetLastCommittedOrigin(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: format. Created 5 years, 1 month 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/public/browser/render_frame_host.h
diff --git a/content/public/browser/render_frame_host.h b/content/public/browser/render_frame_host.h
index d26ec27c1972b2f843215726ec91809707fb7250..fbbe0aecba0dd49a0b49a4b5e5995ae816f8f30d 100644
--- a/content/public/browser/render_frame_host.h
+++ b/content/public/browser/render_frame_host.h
@@ -16,6 +16,7 @@
#include "ui/gfx/geometry/rect.h"
#include "ui/gfx/native_widget_types.h"
#include "url/gurl.h"
+#include "url/origin.h"
namespace base {
class Value;
@@ -78,6 +79,9 @@ class CONTENT_EXPORT RenderFrameHost : public IPC::Listener,
// Returns the last committed URL of the frame.
virtual GURL GetLastCommittedURL() = 0;
+ // Returns the last committed origin of the frame.
alexmos 2015/11/24 18:23:48 Is it worth adding some sort of note here that it'
ncarter (slow) 2015/11/24 19:35:08 Done.
+ virtual url::Origin GetLastCommittedOrigin() = 0;
+
// Returns the associated widget's native view.
virtual gfx::NativeView GetNativeView() = 0;

Powered by Google App Engine
This is Rietveld 408576698