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

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

Issue 2720763002: PlzNavigate: preserve SourceLocation when navigating (Closed)
Patch Set: PlzNavigate: preserve SourceLocation when navigating Created 3 years, 10 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: 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 c2b118ac412d890aa7cae91a3567237a17774b19..98fce1e72479066076c330e0d363c5d2374b544d 100644
--- a/third_party/WebKit/public/web/WebDataSource.h
+++ b/third_party/WebKit/public/web/WebDataSource.h
@@ -33,6 +33,7 @@
#include "../platform/WebCommon.h"
#include "WebNavigationType.h"
+#include "WebSourceLocation.h"
#include "WebTextDirection.h"
namespace blink {
@@ -120,6 +121,11 @@ class WebDataSource {
// datasource is destroyed or when a new filter is set.
virtual void setSubresourceFilter(WebDocumentSubresourceFilter*) = 0;
+ // PlzNavigate
+ // Allows to specify the SourceLocation that triggered the navigation.
+ virtual void setSourceLocation(const WebSourceLocation&) = 0;
+ virtual void resetSourceLocation() = 0;
+
protected:
~WebDataSource() {}
};

Powered by Google App Engine
This is Rietveld 408576698