| 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 void setMode(WebURLRequest::FetchRequestMode mode) { m_mode = mode; } | 77 void setMode(WebURLRequest::FetchRequestMode mode) { m_mode = mode; } |
| 78 WebURLRequest::FetchRequestMode mode() const { return m_mode; } | 78 WebURLRequest::FetchRequestMode mode() const { return m_mode; } |
| 79 void setCredentials(WebURLRequest::FetchCredentialsMode credentials) { m_cre
dentials = credentials; } | 79 void setCredentials(WebURLRequest::FetchCredentialsMode credentials) { m_cre
dentials = credentials; } |
| 80 WebURLRequest::FetchCredentialsMode credentials() const { return m_credentia
ls; } | 80 WebURLRequest::FetchCredentialsMode credentials() const { return m_credentia
ls; } |
| 81 void setResponseTainting(Tainting tainting) { m_responseTainting = tainting;
} | 81 void setResponseTainting(Tainting tainting) { m_responseTainting = tainting;
} |
| 82 Tainting tainting() const { return m_responseTainting; } | 82 Tainting tainting() const { return m_responseTainting; } |
| 83 FetchHeaderList* headerList() const { return m_headerList.get(); } | 83 FetchHeaderList* headerList() const { return m_headerList.get(); } |
| 84 void setHeaderList(FetchHeaderList* headerList) { m_headerList = headerList;
} | 84 void setHeaderList(FetchHeaderList* headerList) { m_headerList = headerList;
} |
| 85 PassRefPtr<BlobDataHandle> blobDataHandle() const { return m_blobDataHandle;
} | 85 PassRefPtr<BlobDataHandle> blobDataHandle() const { return m_blobDataHandle;
} |
| 86 void setBlobDataHandle(PassRefPtr<BlobDataHandle> blobHandle) { m_blobDataHa
ndle = blobHandle; } | 86 void setBlobDataHandle(PassRefPtr<BlobDataHandle> blobHandle) { m_blobDataHa
ndle = blobHandle; } |
| 87 String contentType() const; |
| 87 | 88 |
| 88 void trace(Visitor*); | 89 void trace(Visitor*); |
| 89 | 90 |
| 90 private: | 91 private: |
| 91 FetchRequestData(); | 92 FetchRequestData(); |
| 92 | 93 |
| 93 AtomicString m_method; | 94 AtomicString m_method; |
| 94 KURL m_url; | 95 KURL m_url; |
| 95 Member<FetchHeaderList> m_headerList; | 96 Member<FetchHeaderList> m_headerList; |
| 96 RefPtr<BlobDataHandle> m_blobDataHandle; | 97 RefPtr<BlobDataHandle> m_blobDataHandle; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 107 WebURLRequest::FetchCredentialsMode m_credentials; | 108 WebURLRequest::FetchCredentialsMode m_credentials; |
| 108 // FIXME: Support m_useURLCredentialsFlag; | 109 // FIXME: Support m_useURLCredentialsFlag; |
| 109 // FIXME: Support m_manualRedirectFlag; | 110 // FIXME: Support m_manualRedirectFlag; |
| 110 // FIXME: Support m_redirectCount; | 111 // FIXME: Support m_redirectCount; |
| 111 Tainting m_responseTainting; | 112 Tainting m_responseTainting; |
| 112 }; | 113 }; |
| 113 | 114 |
| 114 } // namespace blink | 115 } // namespace blink |
| 115 | 116 |
| 116 #endif // FetchRequestData_h | 117 #endif // FetchRequestData_h |
| OLD | NEW |