| 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 WebServiceWorkerResponse_h | 5 #ifndef WebServiceWorkerResponse_h |
| 6 #define WebServiceWorkerResponse_h | 6 #define WebServiceWorkerResponse_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/WebString.h" | 10 #include "public/platform/WebString.h" |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 assign(other); | 37 assign(other); |
| 38 } | 38 } |
| 39 WebServiceWorkerResponse& operator=(const WebServiceWorkerResponse& other) { | 39 WebServiceWorkerResponse& operator=(const WebServiceWorkerResponse& other) { |
| 40 assign(other); | 40 assign(other); |
| 41 return *this; | 41 return *this; |
| 42 } | 42 } |
| 43 | 43 |
| 44 void reset(); | 44 void reset(); |
| 45 void assign(const WebServiceWorkerResponse&); | 45 void assign(const WebServiceWorkerResponse&); |
| 46 | 46 |
| 47 void setURL(const WebURL&); | 47 void setURLList(const WebVector<WebURL>&); |
| 48 WebURL url() const; | 48 const WebVector<WebURL>& urlList() const; |
| 49 | 49 |
| 50 void setStatus(unsigned short); | 50 void setStatus(unsigned short); |
| 51 unsigned short status() const; | 51 unsigned short status() const; |
| 52 | 52 |
| 53 void setStatusText(const WebString&); | 53 void setStatusText(const WebString&); |
| 54 WebString statusText() const; | 54 WebString statusText() const; |
| 55 | 55 |
| 56 void setResponseType(WebServiceWorkerResponseType); | 56 void setResponseType(WebServiceWorkerResponseType); |
| 57 WebServiceWorkerResponseType responseType() const; | 57 WebServiceWorkerResponseType responseType() const; |
| 58 | 58 |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 PassRefPtr<BlobDataHandle> blobDataHandle() const; | 93 PassRefPtr<BlobDataHandle> blobDataHandle() const; |
| 94 #endif | 94 #endif |
| 95 | 95 |
| 96 private: | 96 private: |
| 97 WebPrivatePtr<WebServiceWorkerResponsePrivate> m_private; | 97 WebPrivatePtr<WebServiceWorkerResponsePrivate> m_private; |
| 98 }; | 98 }; |
| 99 | 99 |
| 100 } // namespace blink | 100 } // namespace blink |
| 101 | 101 |
| 102 #endif // WebServiceWorkerResponse_h | 102 #endif // WebServiceWorkerResponse_h |
| OLD | NEW |