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 "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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 void setReferrer(const WebString&, WebReferrerPolicy); | 60 void setReferrer(const WebString&, WebReferrerPolicy); |
61 WebURL referrerUrl() const; | 61 WebURL referrerUrl() const; |
62 WebReferrerPolicy referrerPolicy() const; | 62 WebReferrerPolicy referrerPolicy() const; |
63 | 63 |
64 void setMode(WebURLRequest::FetchRequestMode); | 64 void setMode(WebURLRequest::FetchRequestMode); |
65 WebURLRequest::FetchRequestMode mode() const; | 65 WebURLRequest::FetchRequestMode mode() const; |
66 | 66 |
67 void setCredentialsMode(WebURLRequest::FetchCredentialsMode); | 67 void setCredentialsMode(WebURLRequest::FetchCredentialsMode); |
68 WebURLRequest::FetchCredentialsMode credentialsMode() const; | 68 WebURLRequest::FetchCredentialsMode credentialsMode() const; |
69 | 69 |
| 70 void setRequestContext(WebURLRequest::RequestContext); |
| 71 WebURLRequest::RequestContext requestContext() const; |
| 72 |
| 73 void setFrameType(WebURLRequest::FrameType); |
| 74 WebURLRequest::FrameType frameType() const; |
| 75 |
70 void setIsReload(bool); | 76 void setIsReload(bool); |
71 bool isReload() const; | 77 bool isReload() const; |
72 | 78 |
73 #if INSIDE_BLINK | 79 #if INSIDE_BLINK |
74 const HTTPHeaderMap& headers() const; | 80 const HTTPHeaderMap& headers() const; |
75 PassRefPtr<BlobDataHandle> blobDataHandle() const; | 81 PassRefPtr<BlobDataHandle> blobDataHandle() const; |
76 const Referrer& referrer() const; | 82 const Referrer& referrer() const; |
77 #endif | 83 #endif |
78 | 84 |
79 private: | 85 private: |
80 WebPrivatePtr<WebServiceWorkerRequestPrivate> m_private; | 86 WebPrivatePtr<WebServiceWorkerRequestPrivate> m_private; |
81 }; | 87 }; |
82 | 88 |
83 } // namespace blink | 89 } // namespace blink |
84 | 90 |
85 #endif // WebServiceWorkerRequest_h | 91 #endif // WebServiceWorkerRequest_h |
OLD | NEW |