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

Unified Diff: third_party/WebKit/Source/core/loader/HistoryItem.h

Issue 2130623003: Teach HistoryItem about a request's initiator. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: String, not RefPtr, because lifetimes... Created 4 years, 5 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/Source/core/loader/HistoryItem.h
diff --git a/third_party/WebKit/Source/core/loader/HistoryItem.h b/third_party/WebKit/Source/core/loader/HistoryItem.h
index 174f0546f23448b5f71b6d5f34348b5d06f131b5..5b53ca8d5b2c7a10671defcf1ef3646a0561e4e4 100644
--- a/third_party/WebKit/Source/core/loader/HistoryItem.h
+++ b/third_party/WebKit/Source/core/loader/HistoryItem.h
@@ -43,6 +43,7 @@ class DocumentState;
class EncodedFormData;
class KURL;
class ResourceRequest;
+class SecurityOrigin;
class CORE_EXPORT HistoryItem final : public GarbageCollectedFinalized<HistoryItem> {
public:
@@ -56,6 +57,7 @@ public:
KURL url() const;
const Referrer& referrer() const;
+ PassRefPtr<SecurityOrigin> requestorOrigin() const;
const String& target() const;
EncodedFormData* formData();
@@ -78,6 +80,7 @@ public:
void setURL(const KURL&);
void setURLString(const String&);
void setReferrer(const Referrer&);
+ void setRequestorOrigin(PassRefPtr<SecurityOrigin>);
void setTarget(const String&);
void setStateObject(PassRefPtr<SerializedScriptValue>);
@@ -105,6 +108,7 @@ private:
String m_urlString;
Referrer m_referrer;
+ String m_requestorOrigin;
String m_target;
FloatPoint m_visualViewportScrollPoint;
« no previous file with comments | « third_party/WebKit/Source/core/loader/FrameLoader.cpp ('k') | third_party/WebKit/Source/core/loader/HistoryItem.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698