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 FetchResponseData_h | 5 #ifndef FetchResponseData_h |
6 #define FetchResponseData_h | 6 #define FetchResponseData_h |
7 | 7 |
8 #include "platform/heap/Handle.h" | 8 #include "platform/heap/Handle.h" |
9 #include "platform/weborigin/KURL.h" | 9 #include "platform/weborigin/KURL.h" |
10 #include "wtf/PassRefPtr.h" | 10 #include "wtf/PassRefPtr.h" |
11 #include "wtf/text/AtomicString.h" | 11 #include "wtf/text/AtomicString.h" |
12 | 12 |
13 namespace blink { | 13 namespace blink { |
14 | 14 |
15 class BlobDataHandle; | 15 class BlobDataHandle; |
16 class FetchHeaderList; | 16 class FetchHeaderList; |
17 class WebServiceWorkerResponse; | 17 class WebServiceWorkerResponse; |
18 | 18 |
19 class FetchResponseData FINAL : public GarbageCollectedFinalized<FetchResponseDa
ta> { | 19 class FetchResponseData final : public GarbageCollectedFinalized<FetchResponseDa
ta> { |
20 WTF_MAKE_NONCOPYABLE(FetchResponseData); | 20 WTF_MAKE_NONCOPYABLE(FetchResponseData); |
21 public: | 21 public: |
22 // "A response has an associated type which is one of basic, CORS, default, | 22 // "A response has an associated type which is one of basic, CORS, default, |
23 // error, and opaque. Unless stated otherwise, it is default." | 23 // error, and opaque. Unless stated otherwise, it is default." |
24 enum Type { BasicType, CORSType, DefaultType, ErrorType, OpaqueType }; | 24 enum Type { BasicType, CORSType, DefaultType, ErrorType, OpaqueType }; |
25 // "A response can have an associated termination reason which is one of | 25 // "A response can have an associated termination reason which is one of |
26 // end-user abort, fatal, and timeout." | 26 // end-user abort, fatal, and timeout." |
27 enum TerminationReason { EndUserAbortTermination, FatalTermination, TimeoutT
ermination }; | 27 enum TerminationReason { EndUserAbortTermination, FatalTermination, TimeoutT
ermination }; |
28 | 28 |
29 static FetchResponseData* create(); | 29 static FetchResponseData* create(); |
(...skipping 28 matching lines...) Expand all Loading... |
58 unsigned short m_status; | 58 unsigned short m_status; |
59 AtomicString m_statusMessage; | 59 AtomicString m_statusMessage; |
60 Member<FetchHeaderList> m_headerList; | 60 Member<FetchHeaderList> m_headerList; |
61 RefPtr<BlobDataHandle> m_blobDataHandle; | 61 RefPtr<BlobDataHandle> m_blobDataHandle; |
62 Member<FetchResponseData> m_internalResponse; | 62 Member<FetchResponseData> m_internalResponse; |
63 }; | 63 }; |
64 | 64 |
65 } // namespace blink | 65 } // namespace blink |
66 | 66 |
67 #endif // FetchResponseData_h | 67 #endif // FetchResponseData_h |
OLD | NEW |