| 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 void setMode(WebURLRequest::FetchRequestMode mode) { m_mode = mode; } | 57 void setMode(WebURLRequest::FetchRequestMode mode) { m_mode = mode; } |
| 58 WebURLRequest::FetchRequestMode mode() const { return m_mode; } | 58 WebURLRequest::FetchRequestMode mode() const { return m_mode; } |
| 59 void setCredentials(WebURLRequest::FetchCredentialsMode credentials) { m_cre
dentials = credentials; } | 59 void setCredentials(WebURLRequest::FetchCredentialsMode credentials) { m_cre
dentials = credentials; } |
| 60 WebURLRequest::FetchCredentialsMode credentials() const { return m_credentia
ls; } | 60 WebURLRequest::FetchCredentialsMode credentials() const { return m_credentia
ls; } |
| 61 void setRedirect(WebURLRequest::FetchRedirectMode redirect) { m_redirect = r
edirect; } | 61 void setRedirect(WebURLRequest::FetchRedirectMode redirect) { m_redirect = r
edirect; } |
| 62 WebURLRequest::FetchRedirectMode redirect() const { return m_redirect; } | 62 WebURLRequest::FetchRedirectMode redirect() const { return m_redirect; } |
| 63 void setResponseTainting(Tainting tainting) { m_responseTainting = tainting;
} | 63 void setResponseTainting(Tainting tainting) { m_responseTainting = tainting;
} |
| 64 Tainting tainting() const { return m_responseTainting; } | 64 Tainting tainting() const { return m_responseTainting; } |
| 65 FetchHeaderList* headerList() const { return m_headerList.get(); } | 65 FetchHeaderList* headerList() const { return m_headerList.get(); } |
| 66 void setHeaderList(FetchHeaderList* headerList) { m_headerList = headerList;
} | 66 void setHeaderList(FetchHeaderList* headerList) { m_headerList = headerList;
} |
| 67 BodyStreamBuffer* buffer() const; | 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*); | 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", AtomicString::ConstructFromLiteral); } |
| 78 | 78 |
| 79 DECLARE_TRACE(); | 79 DECLARE_TRACE(); |
| (...skipping 25 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 |