| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 WebString method() const; | 46 WebString method() const; |
| 47 | 47 |
| 48 void setHeader(const WebString& key, const WebString& value); | 48 void setHeader(const WebString& key, const WebString& value); |
| 49 | 49 |
| 50 void setReferrer(const WebString&, WebReferrerPolicy); | 50 void setReferrer(const WebString&, WebReferrerPolicy); |
| 51 | 51 |
| 52 void setIsReload(bool); | 52 void setIsReload(bool); |
| 53 bool isReload() const; | 53 bool isReload() const; |
| 54 | 54 |
| 55 #if INSIDE_BLINK | 55 #if INSIDE_BLINK |
| 56 const blink::HTTPHeaderMap& headers() const; | 56 const HTTPHeaderMap& headers() const; |
| 57 const blink::Referrer& referrer() const; | 57 const Referrer& referrer() const; |
| 58 #endif | 58 #endif |
| 59 | 59 |
| 60 private: | 60 private: |
| 61 WebPrivatePtr<WebServiceWorkerRequestPrivate> m_private; | 61 WebPrivatePtr<WebServiceWorkerRequestPrivate> m_private; |
| 62 }; | 62 }; |
| 63 | 63 |
| 64 } // namespace blink | 64 } // namespace blink |
| 65 | 65 |
| 66 #endif // WebServiceWorkerRequest_h | 66 #endif // WebServiceWorkerRequest_h |
| OLD | NEW |