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

Unified Diff: third_party/WebKit/public/web/WebDataSource.h

Issue 2416523002: Expose the initiating origin/URL of a navigation in the Blink public API (Closed)
Patch Set: rebase Created 4 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 | « third_party/WebKit/Source/web/tests/WebFrameTest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/public/web/WebDataSource.h
diff --git a/third_party/WebKit/public/web/WebDataSource.h b/third_party/WebKit/public/web/WebDataSource.h
index d9e72b3e0a25c8037fa7f93c717c9bb41a5cb559..3efdaf6eb7214fc3b49bda4b3a6ef6fa172e6b86 100644
--- a/third_party/WebKit/public/web/WebDataSource.h
+++ b/third_party/WebKit/public/web/WebDataSource.h
@@ -33,7 +33,6 @@
#include "../platform/WebCommon.h"
#include "WebNavigationType.h"
-#include "WebTextDirection.h"
namespace blink {
@@ -51,6 +50,10 @@ class WebDataSource {
virtual ~ExtraData() {}
};
+ // Returns the URL of the document that triggered the creation of this
+ // datasource. Will return an empty URL once this datasource commits.
+ virtual WebURL requestorURL() const = 0;
+
// Returns the original request that resulted in this datasource.
virtual const WebURLRequest& originalRequest() const = 0;
« no previous file with comments | « third_party/WebKit/Source/web/tests/WebFrameTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698