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

Unified Diff: third_party/WebKit/Source/platform/network/ResourceResponse.h

Issue 1965013002: Implement headers attributes in ForeignFetchResponse (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: using instead of typedef 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/platform/network/ResourceResponse.h
diff --git a/third_party/WebKit/Source/platform/network/ResourceResponse.h b/third_party/WebKit/Source/platform/network/ResourceResponse.h
index cd3cf5f766d6cfcb90dff38ff1c00e473eba185c..89d6480631a3725d55b76d2c3b2cf330b74e5aea 100644
--- a/third_party/WebKit/Source/platform/network/ResourceResponse.h
+++ b/third_party/WebKit/Source/platform/network/ResourceResponse.h
@@ -225,6 +225,12 @@ public:
const String& cacheStorageCacheName() const { return m_cacheStorageCacheName; }
void setCacheStorageCacheName(const String& cacheStorageCacheName) { m_cacheStorageCacheName = cacheStorageCacheName; }
+ const Vector<String>& corsExposedHeaderNames() const { return m_corsExposedHeaderNames; }
+ void setCorsExposedHeaderNames(const Vector<String>& headerNames)
+ {
+ m_corsExposedHeaderNames = headerNames;
+ }
+
int64_t responseTime() const { return m_responseTime; }
void setResponseTime(int64_t responseTime) { m_responseTime = responseTime; }
@@ -346,6 +352,10 @@ private:
// the ServiceWorker. Null if the response isn't from the CacheStorage.
String m_cacheStorageCacheName;
+ // The headers that should be exposed according to CORS. Only guaranteed
+ // to be set if the response was fetched by a ServiceWorker.
+ Vector<String> m_corsExposedHeaderNames;
+
// The time at which the response headers were received. For cached
// responses, this time could be "far" in the past.
int64_t m_responseTime;
« no previous file with comments | « third_party/WebKit/Source/platform/exported/WebURLResponse.cpp ('k') | third_party/WebKit/Source/web/AssociatedURLLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698