| 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 Response_h | 5 #ifndef Response_h |
| 6 #define Response_h | 6 #define Response_h |
| 7 | 7 |
| 8 #include "bindings/core/v8/Dictionary.h" | 8 #include "bindings/core/v8/Dictionary.h" |
| 9 #include "bindings/core/v8/ScriptWrappable.h" | 9 #include "bindings/core/v8/ScriptWrappable.h" |
| 10 #include "modules/serviceworkers/Body.h" | 10 #include "modules/serviceworkers/Body.h" |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 static Response* create(ExecutionContext*, Blob*, const ResponseInit&, Excep
tionState&); | 32 static Response* create(ExecutionContext*, Blob*, const ResponseInit&, Excep
tionState&); |
| 33 static Response* create(ExecutionContext*, FetchResponseData*); | 33 static Response* create(ExecutionContext*, FetchResponseData*); |
| 34 static Response* create(ExecutionContext*, const WebServiceWorkerResponse&); | 34 static Response* create(ExecutionContext*, const WebServiceWorkerResponse&); |
| 35 | 35 |
| 36 String type() const; | 36 String type() const; |
| 37 String url() const; | 37 String url() const; |
| 38 unsigned short status() const; | 38 unsigned short status() const; |
| 39 String statusText() const; | 39 String statusText() const; |
| 40 Headers* headers() const; | 40 Headers* headers() const; |
| 41 | 41 |
| 42 void populateWebServiceWorkerResponse(WebServiceWorkerResponse&); | 42 void populateWebServiceWorkerResponse(WebServiceWorkerResponse&) const; |
| 43 | 43 |
| 44 virtual void trace(Visitor*) OVERRIDE; | 44 virtual void trace(Visitor*) OVERRIDE; |
| 45 | 45 |
| 46 private: | 46 private: |
| 47 explicit Response(ExecutionContext*); | 47 explicit Response(ExecutionContext*); |
| 48 Response(ExecutionContext*, FetchResponseData*); | 48 Response(ExecutionContext*, FetchResponseData*); |
| 49 Response(ExecutionContext*, const WebServiceWorkerResponse&); | 49 Response(ExecutionContext*, const WebServiceWorkerResponse&); |
| 50 | 50 |
| 51 virtual PassRefPtr<BlobDataHandle> blobDataHandle() OVERRIDE; | 51 virtual PassRefPtr<BlobDataHandle> blobDataHandle() OVERRIDE; |
| 52 | 52 |
| 53 Member<FetchResponseData> m_response; | 53 Member<FetchResponseData> m_response; |
| 54 Member<Headers> m_headers; | 54 Member<Headers> m_headers; |
| 55 }; | 55 }; |
| 56 | 56 |
| 57 } // namespace blink | 57 } // namespace blink |
| 58 | 58 |
| 59 #endif // Response_h | 59 #endif // Response_h |
| OLD | NEW |