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

Unified Diff: third_party/WebKit/Source/modules/serviceworkers/ForeignFetchEvent.h

Issue 1969403004: Expose and check origin of request in response for foreign fetch. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@set-request-and-credentials-mode
Patch Set: update layouttests Created 4 years, 7 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/modules/serviceworkers/ForeignFetchEvent.h
diff --git a/third_party/WebKit/Source/modules/serviceworkers/ForeignFetchEvent.h b/third_party/WebKit/Source/modules/serviceworkers/ForeignFetchEvent.h
index aac162e28b8e3cba8fb0271bf1660bf01af0b56a..d8c6b81f80a026a65d21153753168502b8220427 100644
--- a/third_party/WebKit/Source/modules/serviceworkers/ForeignFetchEvent.h
+++ b/third_party/WebKit/Source/modules/serviceworkers/ForeignFetchEvent.h
@@ -30,6 +30,7 @@ public:
static ForeignFetchEvent* create(const AtomicString& type, const ForeignFetchEventInit&, ForeignFetchRespondWithObserver*);
Request* request() const;
+ String origin() const;
void respondWith(ScriptState*, ScriptPromise, ExceptionState&);
@@ -44,6 +45,7 @@ protected:
private:
Member<ForeignFetchRespondWithObserver> m_observer;
Member<Request> m_request;
+ String m_origin;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698