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

Side by Side Diff: public/platform/WebServiceWorkerRequest.h

Issue 578763003: ServiceWorker: Fix conversion from Request headers to WebServiceWorkerRequest headers (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remove lowercase restriction Created 6 years, 3 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 unified diff | Download patch
« no previous file with comments | « Source/platform/exported/WebServiceWorkerRequest.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WebServiceWorkerRequest_h 5 #ifndef WebServiceWorkerRequest_h
6 #define WebServiceWorkerRequest_h 6 #define WebServiceWorkerRequest_h
7 7
8 #include "WebCommon.h" 8 #include "WebCommon.h"
9 #include "public/platform/WebPrivatePtr.h" 9 #include "public/platform/WebPrivatePtr.h"
10 #include "public/platform/WebReferrerPolicy.h" 10 #include "public/platform/WebReferrerPolicy.h"
(...skipping 29 matching lines...) Expand all
40 void reset(); 40 void reset();
41 void assign(const WebServiceWorkerRequest&); 41 void assign(const WebServiceWorkerRequest&);
42 42
43 void setURL(const WebURL&); 43 void setURL(const WebURL&);
44 WebURL url() const; 44 WebURL url() const;
45 45
46 void setMethod(const WebString&); 46 void setMethod(const WebString&);
47 WebString method() const; 47 WebString method() const;
48 48
49 void setHeader(const WebString& key, const WebString& value); 49 void setHeader(const WebString& key, const WebString& value);
50
51 // If the key already exists, the value is appended to the existing value
52 // with a comma delimiter between them.
53 void appendHeader(const WebString& key, const WebString& value);
54
50 void visitHTTPHeaderFields(WebHTTPHeaderVisitor*) const; 55 void visitHTTPHeaderFields(WebHTTPHeaderVisitor*) const;
51 56
52 void setBlob(const WebString& uuid, long long size); 57 void setBlob(const WebString& uuid, long long size);
53 58
54 void setReferrer(const WebString&, WebReferrerPolicy); 59 void setReferrer(const WebString&, WebReferrerPolicy);
55 WebURL referrerUrl() const; 60 WebURL referrerUrl() const;
56 WebReferrerPolicy referrerPolicy() const; 61 WebReferrerPolicy referrerPolicy() const;
57 62
58 void setIsReload(bool); 63 void setIsReload(bool);
59 bool isReload() const; 64 bool isReload() const;
60 65
61 #if INSIDE_BLINK 66 #if INSIDE_BLINK
62 const HTTPHeaderMap& headers() const; 67 const HTTPHeaderMap& headers() const;
63 PassRefPtr<BlobDataHandle> blobDataHandle() const; 68 PassRefPtr<BlobDataHandle> blobDataHandle() const;
64 const Referrer& referrer() const; 69 const Referrer& referrer() const;
65 #endif 70 #endif
66 71
67 private: 72 private:
68 WebPrivatePtr<WebServiceWorkerRequestPrivate> m_private; 73 WebPrivatePtr<WebServiceWorkerRequestPrivate> m_private;
69 }; 74 };
70 75
71 } // namespace blink 76 } // namespace blink
72 77
73 #endif // WebServiceWorkerRequest_h 78 #endif // WebServiceWorkerRequest_h
OLDNEW
« no previous file with comments | « Source/platform/exported/WebServiceWorkerRequest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698