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

Unified Diff: public/platform/WebServiceWorkerRequest.h

Issue 329853012: [ServiceWorker] Make Request class better conformance with the spec. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: incorporated jochen's comment Created 6 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: public/platform/WebServiceWorkerRequest.h
diff --git a/public/platform/WebServiceWorkerRequest.h b/public/platform/WebServiceWorkerRequest.h
index c0544afcc5a625f9b70a31aa393cbf99c976c272..8e2ddaec7fd383f77da6bbe6f367a2a823f33e4b 100644
--- a/public/platform/WebServiceWorkerRequest.h
+++ b/public/platform/WebServiceWorkerRequest.h
@@ -7,13 +7,16 @@
#include "WebCommon.h"
#include "public/platform/WebPrivatePtr.h"
+#include "public/platform/WebReferrerPolicy.h"
#include "public/platform/WebString.h"
#include "public/platform/WebURL.h"
#if INSIDE_BLINK
+#include "platform/network/HTTPHeaderMap.h"
+#include "platform/weborigin/Referrer.h"
#include "wtf/Forward.h"
-#include "wtf/HashMap.h"
#include "wtf/text/StringHash.h"
+#include <utility>
#endif
namespace blink {
@@ -44,11 +47,14 @@ public:
void setHeader(const WebString& key, const WebString& value);
+ void setReferrer(const WebString&, WebReferrerPolicy);
+
void setIsReload(bool);
bool isReload() const;
#if INSIDE_BLINK
- const HashMap<String, String>& headers() const;
+ const WebCore::HTTPHeaderMap& headers() const;
+ const WebCore::Referrer& referrer() const;
#endif
private:

Powered by Google App Engine
This is Rietveld 408576698