| 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" |
| 11 #include "public/platform/WebString.h" | 11 #include "public/platform/WebString.h" |
| 12 #include "public/platform/WebURL.h" | 12 #include "public/platform/WebURL.h" |
| 13 #include "public/platform/WebURLRequest.h" |
| 13 | 14 |
| 14 #if INSIDE_BLINK | 15 #if INSIDE_BLINK |
| 15 #include "platform/network/HTTPHeaderMap.h" | 16 #include "platform/network/HTTPHeaderMap.h" |
| 16 #include "platform/weborigin/Referrer.h" | 17 #include "platform/weborigin/Referrer.h" |
| 17 #include "wtf/Forward.h" | 18 #include "wtf/Forward.h" |
| 18 #include "wtf/text/StringHash.h" | 19 #include "wtf/text/StringHash.h" |
| 19 #include <utility> | 20 #include <utility> |
| 20 #endif | 21 #endif |
| 21 | 22 |
| 22 namespace blink { | 23 namespace blink { |
| (...skipping 30 matching lines...) Expand all Loading... |
| 53 void appendHeader(const WebString& key, const WebString& value); | 54 void appendHeader(const WebString& key, const WebString& value); |
| 54 | 55 |
| 55 void visitHTTPHeaderFields(WebHTTPHeaderVisitor*) const; | 56 void visitHTTPHeaderFields(WebHTTPHeaderVisitor*) const; |
| 56 | 57 |
| 57 void setBlob(const WebString& uuid, long long size); | 58 void setBlob(const WebString& uuid, long long size); |
| 58 | 59 |
| 59 void setReferrer(const WebString&, WebReferrerPolicy); | 60 void setReferrer(const WebString&, WebReferrerPolicy); |
| 60 WebURL referrerUrl() const; | 61 WebURL referrerUrl() const; |
| 61 WebReferrerPolicy referrerPolicy() const; | 62 WebReferrerPolicy referrerPolicy() const; |
| 62 | 63 |
| 64 void setCredentialsMode(WebURLRequest::FetchRequestCredentialsMode); |
| 65 WebURLRequest::FetchRequestCredentialsMode credentialsMode() const; |
| 66 |
| 63 void setIsReload(bool); | 67 void setIsReload(bool); |
| 64 bool isReload() const; | 68 bool isReload() const; |
| 65 | 69 |
| 66 #if INSIDE_BLINK | 70 #if INSIDE_BLINK |
| 67 const HTTPHeaderMap& headers() const; | 71 const HTTPHeaderMap& headers() const; |
| 68 PassRefPtr<BlobDataHandle> blobDataHandle() const; | 72 PassRefPtr<BlobDataHandle> blobDataHandle() const; |
| 69 const Referrer& referrer() const; | 73 const Referrer& referrer() const; |
| 70 #endif | 74 #endif |
| 71 | 75 |
| 72 private: | 76 private: |
| 73 WebPrivatePtr<WebServiceWorkerRequestPrivate> m_private; | 77 WebPrivatePtr<WebServiceWorkerRequestPrivate> m_private; |
| 74 }; | 78 }; |
| 75 | 79 |
| 76 } // namespace blink | 80 } // namespace blink |
| 77 | 81 |
| 78 #endif // WebServiceWorkerRequest_h | 82 #endif // WebServiceWorkerRequest_h |
| OLD | NEW |