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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 // returns |m_buffer|. | 80 // returns |m_buffer|. |
81 BodyStreamBuffer* internalBuffer() const; | 81 BodyStreamBuffer* internalBuffer() const; |
82 String internalMIMEType() const; | 82 String internalMIMEType() const; |
83 int64_t responseTime() const { return m_responseTime; } | 83 int64_t responseTime() const { return m_responseTime; } |
84 String cacheStorageCacheName() const { return m_cacheStorageCacheName; } | 84 String cacheStorageCacheName() const { return m_cacheStorageCacheName; } |
85 const HTTPHeaderSet& corsExposedHeaderNames() const { | 85 const HTTPHeaderSet& corsExposedHeaderNames() const { |
86 return m_corsExposedHeaderNames; | 86 return m_corsExposedHeaderNames; |
87 } | 87 } |
88 | 88 |
89 void setURLList(const Vector<KURL>&); | 89 void setURLList(const Vector<KURL>&); |
| 90 const Vector<KURL>& urlList() const { return m_urlList; } |
90 const Vector<KURL>& internalURLList() const; | 91 const Vector<KURL>& internalURLList() const; |
91 | 92 |
92 void setStatus(unsigned short status) { m_status = status; } | 93 void setStatus(unsigned short status) { m_status = status; } |
93 void setStatusMessage(AtomicString statusMessage) { | 94 void setStatusMessage(AtomicString statusMessage) { |
94 m_statusMessage = statusMessage; | 95 m_statusMessage = statusMessage; |
95 } | 96 } |
96 void setMIMEType(const String& type) { m_mimeType = type; } | 97 void setMIMEType(const String& type) { m_mimeType = type; } |
97 void setResponseTime(int64_t responseTime) { m_responseTime = responseTime; } | 98 void setResponseTime(int64_t responseTime) { m_responseTime = responseTime; } |
98 void setCacheStorageCacheName(const String& cacheStorageCacheName) { | 99 void setCacheStorageCacheName(const String& cacheStorageCacheName) { |
99 m_cacheStorageCacheName = cacheStorageCacheName; | 100 m_cacheStorageCacheName = cacheStorageCacheName; |
(...skipping 28 matching lines...) Expand all Loading... |
128 Member<BodyStreamBuffer> m_buffer; | 129 Member<BodyStreamBuffer> m_buffer; |
129 String m_mimeType; | 130 String m_mimeType; |
130 int64_t m_responseTime; | 131 int64_t m_responseTime; |
131 String m_cacheStorageCacheName; | 132 String m_cacheStorageCacheName; |
132 HTTPHeaderSet m_corsExposedHeaderNames; | 133 HTTPHeaderSet m_corsExposedHeaderNames; |
133 }; | 134 }; |
134 | 135 |
135 } // namespace blink | 136 } // namespace blink |
136 | 137 |
137 #endif // FetchResponseData_h | 138 #endif // FetchResponseData_h |
OLD | NEW |