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 FetchRequestData_h | 5 #ifndef FetchRequestData_h |
6 #define FetchRequestData_h | 6 #define FetchRequestData_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 "platform/weborigin/Referrer.h" | 10 #include "platform/weborigin/Referrer.h" |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 WebURLRequest::FetchRedirectMode redirect() const { return m_redirect; } | 85 WebURLRequest::FetchRedirectMode redirect() const { return m_redirect; } |
86 void setResponseTainting(Tainting tainting) { m_responseTainting = tainting;
} | 86 void setResponseTainting(Tainting tainting) { m_responseTainting = tainting;
} |
87 Tainting tainting() const { return m_responseTainting; } | 87 Tainting tainting() const { return m_responseTainting; } |
88 FetchHeaderList* headerList() const { return m_headerList.get(); } | 88 FetchHeaderList* headerList() const { return m_headerList.get(); } |
89 void setHeaderList(FetchHeaderList* headerList) { m_headerList = headerList;
} | 89 void setHeaderList(FetchHeaderList* headerList) { m_headerList = headerList;
} |
90 BodyStreamBuffer* buffer() const { return m_buffer; } | 90 BodyStreamBuffer* buffer() const { return m_buffer; } |
91 // Call Request::refreshBody() after calling setBuffer(). | 91 // Call Request::refreshBody() after calling setBuffer(). |
92 void setBuffer(BodyStreamBuffer* buffer) { m_buffer = buffer; } | 92 void setBuffer(BodyStreamBuffer* buffer) { m_buffer = buffer; } |
93 String mimeType() const { return m_mimeType; } | 93 String mimeType() const { return m_mimeType; } |
94 void setMIMEType(const String& type) { m_mimeType = type; } | 94 void setMIMEType(const String& type) { m_mimeType = type; } |
| 95 String integrity() const { return m_integrity; } |
| 96 void setIntegrity(const String& integrity) { m_integrity = integrity; } |
95 | 97 |
96 DECLARE_TRACE(); | 98 DECLARE_TRACE(); |
97 | 99 |
98 private: | 100 private: |
99 FetchRequestData(); | 101 FetchRequestData(); |
100 | 102 |
101 FetchRequestData* cloneExceptBody(); | 103 FetchRequestData* cloneExceptBody(); |
102 | 104 |
103 AtomicString m_method; | 105 AtomicString m_method; |
104 KURL m_url; | 106 KURL m_url; |
105 Member<FetchHeaderList> m_headerList; | 107 Member<FetchHeaderList> m_headerList; |
106 bool m_unsafeRequestFlag; | 108 bool m_unsafeRequestFlag; |
107 // FIXME: Support m_skipServiceWorkerFlag; | 109 // FIXME: Support m_skipServiceWorkerFlag; |
108 WebURLRequest::RequestContext m_context; | 110 WebURLRequest::RequestContext m_context; |
109 RefPtr<SecurityOrigin> m_origin; | 111 RefPtr<SecurityOrigin> m_origin; |
110 // FIXME: Support m_forceOriginHeaderFlag; | 112 // FIXME: Support m_forceOriginHeaderFlag; |
111 bool m_sameOriginDataURLFlag; | 113 bool m_sameOriginDataURLFlag; |
112 Referrer m_referrer; | 114 Referrer m_referrer; |
113 // FIXME: Support m_authenticationFlag; | 115 // FIXME: Support m_authenticationFlag; |
114 // FIXME: Support m_synchronousFlag; | 116 // FIXME: Support m_synchronousFlag; |
115 WebURLRequest::FetchRequestMode m_mode; | 117 WebURLRequest::FetchRequestMode m_mode; |
116 WebURLRequest::FetchCredentialsMode m_credentials; | 118 WebURLRequest::FetchCredentialsMode m_credentials; |
117 WebURLRequest::FetchRedirectMode m_redirect; | 119 WebURLRequest::FetchRedirectMode m_redirect; |
118 // FIXME: Support m_useURLCredentialsFlag; | 120 // FIXME: Support m_useURLCredentialsFlag; |
119 // FIXME: Support m_redirectCount; | 121 // FIXME: Support m_redirectCount; |
120 Tainting m_responseTainting; | 122 Tainting m_responseTainting; |
121 Member<BodyStreamBuffer> m_buffer; | 123 Member<BodyStreamBuffer> m_buffer; |
122 String m_mimeType; | 124 String m_mimeType; |
| 125 String m_integrity; |
123 }; | 126 }; |
124 | 127 |
125 } // namespace blink | 128 } // namespace blink |
126 | 129 |
127 #endif // FetchRequestData_h | 130 #endif // FetchRequestData_h |
OLD | NEW |