| 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 BodyStreamBuffer* buffer() const { return m_buffer; } | 67 BodyStreamBuffer* buffer() const { return m_buffer; } |
| 68 // Call Request::refreshBody() after calling setBuffer(). | 68 // Call Request::refreshBody() after calling setBuffer(). |
| 69 void setBuffer(BodyStreamBuffer* buffer) { m_buffer = buffer; } | 69 void setBuffer(BodyStreamBuffer* buffer) { m_buffer = buffer; } |
| 70 String mimeType() const { return m_mimeType; } | 70 String mimeType() const { return m_mimeType; } |
| 71 void setMIMEType(const String& type) { m_mimeType = type; } | 71 void setMIMEType(const String& type) { m_mimeType = type; } |
| 72 String integrity() const { return m_integrity; } | 72 String integrity() const { return m_integrity; } |
| 73 void setIntegrity(const String& integrity) { m_integrity = integrity; } | 73 void setIntegrity(const String& integrity) { m_integrity = integrity; } |
| 74 | 74 |
| 75 // We use these strings instead of "no-referrer" and "client" in the spec. | 75 // We use these strings instead of "no-referrer" and "client" in the spec. |
| 76 static AtomicString noReferrerString() { return AtomicString(); } | 76 static AtomicString noReferrerString() { return AtomicString(); } |
| 77 static AtomicString clientReferrerString() { return AtomicString("about:clie
nt", AtomicString::ConstructFromLiteral); } | 77 static AtomicString clientReferrerString() { return AtomicString("about:clie
nt"); } |
| 78 | 78 |
| 79 DECLARE_TRACE(); | 79 DECLARE_TRACE(); |
| 80 | 80 |
| 81 private: | 81 private: |
| 82 FetchRequestData(); | 82 FetchRequestData(); |
| 83 | 83 |
| 84 FetchRequestData* cloneExceptBody(); | 84 FetchRequestData* cloneExceptBody(); |
| 85 | 85 |
| 86 AtomicString m_method; | 86 AtomicString m_method; |
| 87 KURL m_url; | 87 KURL m_url; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 105 // FIXME: Support m_redirectCount; | 105 // FIXME: Support m_redirectCount; |
| 106 Tainting m_responseTainting; | 106 Tainting m_responseTainting; |
| 107 Member<BodyStreamBuffer> m_buffer; | 107 Member<BodyStreamBuffer> m_buffer; |
| 108 String m_mimeType; | 108 String m_mimeType; |
| 109 String m_integrity; | 109 String m_integrity; |
| 110 }; | 110 }; |
| 111 | 111 |
| 112 } // namespace blink | 112 } // namespace blink |
| 113 | 113 |
| 114 #endif // FetchRequestData_h | 114 #endif // FetchRequestData_h |
| OLD | NEW |