| 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 "core/fetch/CrossOriginAccessControl.h" | 8 #include "core/fetch/CrossOriginAccessControl.h" |
| 9 #include "modules/ModulesExport.h" | 9 #include "modules/ModulesExport.h" |
| 10 #include "platform/heap/Handle.h" | 10 #include "platform/heap/Handle.h" |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 | 52 |
| 53 FetchResponseData* clone(ScriptState*); | 53 FetchResponseData* clone(ScriptState*); |
| 54 | 54 |
| 55 Type getType() const { return m_type; } | 55 Type getType() const { return m_type; } |
| 56 const KURL& url() const { return m_url; } | 56 const KURL& url() const { return m_url; } |
| 57 unsigned short status() const { return m_status; } | 57 unsigned short status() const { return m_status; } |
| 58 AtomicString statusMessage() const { return m_statusMessage; } | 58 AtomicString statusMessage() const { return m_statusMessage; } |
| 59 FetchHeaderList* headerList() const { return m_headerList.get(); } | 59 FetchHeaderList* headerList() const { return m_headerList.get(); } |
| 60 BodyStreamBuffer* buffer() const { return m_buffer; } | 60 BodyStreamBuffer* buffer() const { return m_buffer; } |
| 61 String mimeType() const; | 61 String mimeType() const; |
| 62 // Returns the BodyStreamBuffer of |m_internalResponse| if any. Otherwise, |
| 63 // returns |m_buffer|. |
| 62 BodyStreamBuffer* internalBuffer() const; | 64 BodyStreamBuffer* internalBuffer() const; |
| 63 String internalMIMEType() const; | 65 String internalMIMEType() const; |
| 64 int64_t responseTime() const { return m_responseTime; } | 66 int64_t responseTime() const { return m_responseTime; } |
| 65 String cacheStorageCacheName() const { return m_cacheStorageCacheName; } | 67 String cacheStorageCacheName() const { return m_cacheStorageCacheName; } |
| 66 const HTTPHeaderSet& corsExposedHeaderNames() const { return m_corsExposedHe
aderNames; } | 68 const HTTPHeaderSet& corsExposedHeaderNames() const { return m_corsExposedHe
aderNames; } |
| 67 | 69 |
| 68 void setURL(const KURL& url) { m_url = url; } | 70 void setURL(const KURL& url) { m_url = url; } |
| 69 void setStatus(unsigned short status) { m_status = status; } | 71 void setStatus(unsigned short status) { m_status = status; } |
| 70 void setStatusMessage(AtomicString statusMessage) { m_statusMessage = status
Message; } | 72 void setStatusMessage(AtomicString statusMessage) { m_statusMessage = status
Message; } |
| 71 void setMIMEType(const String& type) { m_mimeType = type; } | 73 void setMIMEType(const String& type) { m_mimeType = type; } |
| (...skipping 26 matching lines...) Expand all Loading... |
| 98 Member<BodyStreamBuffer> m_buffer; | 100 Member<BodyStreamBuffer> m_buffer; |
| 99 String m_mimeType; | 101 String m_mimeType; |
| 100 int64_t m_responseTime; | 102 int64_t m_responseTime; |
| 101 String m_cacheStorageCacheName; | 103 String m_cacheStorageCacheName; |
| 102 HTTPHeaderSet m_corsExposedHeaderNames; | 104 HTTPHeaderSet m_corsExposedHeaderNames; |
| 103 }; | 105 }; |
| 104 | 106 |
| 105 } // namespace blink | 107 } // namespace blink |
| 106 | 108 |
| 107 #endif // FetchResponseData_h | 109 #endif // FetchResponseData_h |
| OLD | NEW |