| 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/FetchBodyStream.h" | 10 #include "modules/serviceworkers/FetchBodyStream.h" |
| 11 #include "modules/serviceworkers/FetchResponseData.h" | 11 #include "modules/serviceworkers/FetchResponseData.h" |
| 12 #include "modules/serviceworkers/Headers.h" | 12 #include "modules/serviceworkers/Headers.h" |
| 13 #include "platform/blob/BlobData.h" | 13 #include "platform/blob/BlobData.h" |
| 14 #include "platform/heap/Handle.h" | 14 #include "platform/heap/Handle.h" |
| 15 #include "wtf/RefCounted.h" | 15 #include "wtf/RefCounted.h" |
| 16 #include "wtf/RefPtr.h" | 16 #include "wtf/RefPtr.h" |
| 17 #include "wtf/text/WTFString.h" | 17 #include "wtf/text/WTFString.h" |
| 18 | 18 |
| 19 namespace blink { class WebServiceWorkerResponse; } | 19 namespace blink { class WebServiceWorkerResponse; } |
| 20 | 20 |
| 21 namespace blink { | 21 namespace blink { |
| 22 | 22 |
| 23 class Blob; | 23 class Blob; |
| 24 class ExceptionState; | 24 class ExceptionState; |
| 25 class ResponseInit; | 25 class ResponseInit; |
| 26 | 26 |
| 27 class Response FINAL : public RefCountedWillBeGarbageCollectedFinalized<Response
>, public ScriptWrappable { | 27 class Response FINAL : public RefCountedWillBeGarbageCollected<Response>, public
ScriptWrappable { |
| 28 DECLARE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(Response); | 28 DECLARE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(Response); |
| 29 public: | 29 public: |
| 30 static PassRefPtrWillBeRawPtr<Response> create(Blob*, const Dictionary&, Exc
eptionState&); | 30 static PassRefPtrWillBeRawPtr<Response> create(Blob*, const Dictionary&, Exc
eptionState&); |
| 31 static PassRefPtrWillBeRawPtr<Response> create(const String&, const Dictiona
ry&, ExceptionState&); | 31 static PassRefPtrWillBeRawPtr<Response> create(const String&, const Dictiona
ry&, ExceptionState&); |
| 32 static PassRefPtrWillBeRawPtr<Response> create(Blob*, const ResponseInit&, E
xceptionState&); | 32 static PassRefPtrWillBeRawPtr<Response> create(Blob*, const ResponseInit&, E
xceptionState&); |
| 33 | 33 |
| 34 static PassRefPtrWillBeRawPtr<Response> create(PassRefPtrWillBeRawPtr<FetchR
esponseData>); | 34 static PassRefPtrWillBeRawPtr<Response> create(PassRefPtrWillBeRawPtr<FetchR
esponseData>); |
| 35 | 35 |
| 36 String type() const; | 36 String type() const; |
| 37 String url() const; | 37 String url() const; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 50 explicit Response(PassRefPtrWillBeRawPtr<FetchResponseData>); | 50 explicit Response(PassRefPtrWillBeRawPtr<FetchResponseData>); |
| 51 | 51 |
| 52 RefPtrWillBeMember<FetchResponseData> m_response; | 52 RefPtrWillBeMember<FetchResponseData> m_response; |
| 53 RefPtrWillBeMember<Headers> m_headers; | 53 RefPtrWillBeMember<Headers> m_headers; |
| 54 RefPtrWillBeMember<FetchBodyStream> m_fetchBodyStream; | 54 RefPtrWillBeMember<FetchBodyStream> m_fetchBodyStream; |
| 55 }; | 55 }; |
| 56 | 56 |
| 57 } // namespace blink | 57 } // namespace blink |
| 58 | 58 |
| 59 #endif // Response_h | 59 #endif // Response_h |
| OLD | NEW |