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

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

Issue 1460983002: Expose GetLastCommitedOrigin() on WebContents and use it in about:blank (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « content/browser/web_contents/web_contents_impl_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/web_contents.h
diff --git a/content/public/browser/web_contents.h b/content/public/browser/web_contents.h
index a0ea79fb0128b5e72d8f62f549b2761217f7655d..b9cb4dff319eea446dd17ec8444f4da6d31a5c8a 100644
--- a/content/public/browser/web_contents.h
+++ b/content/public/browser/web_contents.h
@@ -25,6 +25,7 @@
#include "ui/base/window_open_disposition.h"
#include "ui/gfx/geometry/rect.h"
#include "ui/gfx/native_widget_types.h"
+#include "url/origin.h"
#if defined(OS_ANDROID)
#include "base/android/scoped_java_ref.h"
@@ -202,6 +203,9 @@ class WebContents : public PageNavigator,
// context.
virtual const GURL& GetLastCommittedURL() const = 0;
+ // Gets the last committed origin of the main frame of WebContents.
+ virtual const url::Origin& GetLastCommittedOrigin() const = 0;
+
// Return the currently active RenderProcessHost and RenderViewHost. Each of
// these may change over time.
virtual RenderProcessHost* GetRenderProcessHost() const = 0;
« no previous file with comments | « content/browser/web_contents/web_contents_impl_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698