OLD | NEW |
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 "public/platform/WebCommon.h" | 8 #include "public/platform/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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 // If the key already exists, the value is appended to the existing value | 53 // If the key already exists, the value is appended to the existing value |
54 // with a comma delimiter between them. | 54 // with a comma delimiter between them. |
55 void appendHeader(const WebString& key, const WebString& value); | 55 void appendHeader(const WebString& key, const WebString& value); |
56 | 56 |
57 void visitHTTPHeaderFields(WebHTTPHeaderVisitor*) const; | 57 void visitHTTPHeaderFields(WebHTTPHeaderVisitor*) const; |
58 | 58 |
59 void setBlob(const WebString& uuid, long long size); | 59 void setBlob(const WebString& uuid, long long size); |
60 | 60 |
61 void setReferrer(const WebString&, WebReferrerPolicy); | 61 void setReferrer(const WebString&, WebReferrerPolicy); |
62 WebURL referrerUrl() const; | 62 WebURL referrerUrl() const; |
63 WebReferrerPolicy referrerPolicy() const; | 63 WebReferrerPolicy getReferrerPolicy() const; |
64 | 64 |
65 void setMode(WebURLRequest::FetchRequestMode); | 65 void setMode(WebURLRequest::FetchRequestMode); |
66 WebURLRequest::FetchRequestMode mode() const; | 66 WebURLRequest::FetchRequestMode mode() const; |
67 | 67 |
68 void setIsMainResourceLoad(bool); | 68 void setIsMainResourceLoad(bool); |
69 bool isMainResourceLoad() const; | 69 bool isMainResourceLoad() const; |
70 | 70 |
71 void setCredentialsMode(WebURLRequest::FetchCredentialsMode); | 71 void setCredentialsMode(WebURLRequest::FetchCredentialsMode); |
72 WebURLRequest::FetchCredentialsMode credentialsMode() const; | 72 WebURLRequest::FetchCredentialsMode credentialsMode() const; |
73 | 73 |
(...skipping 18 matching lines...) Expand all Loading... |
92 const Referrer& referrer() const; | 92 const Referrer& referrer() const; |
93 #endif | 93 #endif |
94 | 94 |
95 private: | 95 private: |
96 WebPrivatePtr<WebServiceWorkerRequestPrivate> m_private; | 96 WebPrivatePtr<WebServiceWorkerRequestPrivate> m_private; |
97 }; | 97 }; |
98 | 98 |
99 } // namespace blink | 99 } // namespace blink |
100 | 100 |
101 #endif // WebServiceWorkerRequest_h | 101 #endif // WebServiceWorkerRequest_h |
OLD | NEW |