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>& internalURLList() const; |
| 91 |
90 void setStatus(unsigned short status) { m_status = status; } | 92 void setStatus(unsigned short status) { m_status = status; } |
91 void setStatusMessage(AtomicString statusMessage) { | 93 void setStatusMessage(AtomicString statusMessage) { |
92 m_statusMessage = statusMessage; | 94 m_statusMessage = statusMessage; |
93 } | 95 } |
94 void setMIMEType(const String& type) { m_mimeType = type; } | 96 void setMIMEType(const String& type) { m_mimeType = type; } |
95 void setResponseTime(int64_t responseTime) { m_responseTime = responseTime; } | 97 void setResponseTime(int64_t responseTime) { m_responseTime = responseTime; } |
96 void setCacheStorageCacheName(const String& cacheStorageCacheName) { | 98 void setCacheStorageCacheName(const String& cacheStorageCacheName) { |
97 m_cacheStorageCacheName = cacheStorageCacheName; | 99 m_cacheStorageCacheName = cacheStorageCacheName; |
98 } | 100 } |
99 void setCorsExposedHeaderNames(const HTTPHeaderSet& headerNames) { | 101 void setCorsExposedHeaderNames(const HTTPHeaderSet& headerNames) { |
(...skipping 26 matching lines...) Expand all Loading... |
126 Member<BodyStreamBuffer> m_buffer; | 128 Member<BodyStreamBuffer> m_buffer; |
127 String m_mimeType; | 129 String m_mimeType; |
128 int64_t m_responseTime; | 130 int64_t m_responseTime; |
129 String m_cacheStorageCacheName; | 131 String m_cacheStorageCacheName; |
130 HTTPHeaderSet m_corsExposedHeaderNames; | 132 HTTPHeaderSet m_corsExposedHeaderNames; |
131 }; | 133 }; |
132 | 134 |
133 } // namespace blink | 135 } // namespace blink |
134 | 136 |
135 #endif // FetchResponseData_h | 137 #endif // FetchResponseData_h |
OLD | NEW |