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

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: 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..058a38b1f5984302836e081a3cc13382a42bdadb 100644
--- a/public/platform/WebServiceWorkerRequest.h
+++ b/public/platform/WebServiceWorkerRequest.h
@@ -12,8 +12,9 @@
#if INSIDE_BLINK
#include "wtf/Forward.h"
-#include "wtf/HashMap.h"
+#include "wtf/Vector.h"
#include "wtf/text/StringHash.h"
+#include <utility>
#endif
namespace blink {
@@ -44,11 +45,15 @@ public:
void setHeader(const WebString& key, const WebString& value);
+ void setReferrer(const WebString&);
jochen (gone - plz use gerrit) 2014/07/07 07:15:33 referrer must go together with a referrer policy
horo 2014/07/07 09:31:38 Done.
+ WebString referrer() const;
+
void setIsReload(bool);
bool isReload() const;
#if INSIDE_BLINK
- const HashMap<String, String>& headers() const;
+ typedef std::pair<String, String> Header;
+ const Vector<OwnPtr<Header> >& headerList() const;
jochen (gone - plz use gerrit) 2014/07/07 07:15:33 why not a HTTPHeaderMap?
horo 2014/07/07 09:31:38 Done.
#endif
private:

Powered by Google App Engine
This is Rietveld 408576698