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

Unified Diff: third_party/WebKit/public/platform/WebURLResponse.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/public/platform/WebURLResponse.h
diff --git a/third_party/WebKit/public/platform/WebURLResponse.h b/third_party/WebKit/public/platform/WebURLResponse.h
index f38e133e6cc878324f742818419abb96d2fbbfb6..8eeee1055ef726c37a05b5897e1f75586a0f9dec 100644
--- a/third_party/WebKit/public/platform/WebURLResponse.h
+++ b/third_party/WebKit/public/platform/WebURLResponse.h
@@ -35,6 +35,7 @@
#include "public/platform/WebCommon.h"
#include "public/platform/WebPrivateOwnPtr.h"
#include "public/platform/WebString.h"
+#include "public/platform/WebVector.h"
#include "public/platform/modules/serviceworker/WebServiceWorkerResponseType.h"
namespace blink {
@@ -232,6 +233,11 @@ public:
BLINK_PLATFORM_EXPORT WebString cacheStorageCacheName() const;
BLINK_PLATFORM_EXPORT void setCacheStorageCacheName(const WebString&);
+ // The headers that should be exposed according to CORS. Only guaranteed
+ // to be set if the response was fetched by a ServiceWorker.
+ BLINK_PLATFORM_EXPORT WebVector<WebString> corsExposedHeaderNames() const;
+ BLINK_PLATFORM_EXPORT void setCorsExposedHeaderNames(const WebVector<WebString>&);
+
// This indicates the location of a downloaded response if the
// WebURLRequest had the downloadToFile flag set to true. This file path
// remains valid for the lifetime of the WebURLLoader used to create it.

Powered by Google App Engine
This is Rietveld 408576698