| 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" |
| 11 #include "wtf/PassOwnPtr.h" | 11 #include "wtf/PassOwnPtr.h" |
| 12 #include "wtf/PassRefPtr.h" | 12 #include "wtf/PassRefPtr.h" |
| 13 #include "wtf/RefCounted.h" | 13 #include "wtf/RefCounted.h" |
| 14 #include "wtf/text/AtomicString.h" | 14 #include "wtf/text/AtomicString.h" |
| 15 #include "wtf/text/WTFString.h" | 15 #include "wtf/text/WTFString.h" |
| 16 | 16 |
| 17 namespace blink { | 17 namespace blink { |
| 18 | 18 |
| 19 class BlobDataHandle; |
| 19 class ExecutionContext; | 20 class ExecutionContext; |
| 20 class FetchHeaderList; | 21 class FetchHeaderList; |
| 21 struct ResourceLoaderOptions; | 22 struct ResourceLoaderOptions; |
| 22 class ResourceRequest; | 23 class ResourceRequest; |
| 23 class SecurityOrigin; | 24 class SecurityOrigin; |
| 24 struct ThreadableLoaderOptions; | 25 struct ThreadableLoaderOptions; |
| 25 class WebServiceWorkerRequest; | 26 class WebServiceWorkerRequest; |
| 26 | 27 |
| 27 class FetchRequestData FINAL : public RefCountedWillBeGarbageCollectedFinalized<
FetchRequestData> { | 28 class FetchRequestData FINAL : public RefCountedWillBeGarbageCollectedFinalized<
FetchRequestData> { |
| 28 WTF_MAKE_NONCOPYABLE(FetchRequestData); | 29 WTF_MAKE_NONCOPYABLE(FetchRequestData); |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 PassRefPtr<SecurityOrigin> origin() { return m_origin; } | 75 PassRefPtr<SecurityOrigin> origin() { return m_origin; } |
| 75 bool sameOriginDataURLFlag() { return m_sameOriginDataURLFlag; } | 76 bool sameOriginDataURLFlag() { return m_sameOriginDataURLFlag; } |
| 76 const Referrer& referrer() const { return m_referrer; } | 77 const Referrer& referrer() const { return m_referrer; } |
| 77 void setMode(Mode mode) { m_mode = mode; } | 78 void setMode(Mode mode) { m_mode = mode; } |
| 78 Mode mode() const { return m_mode; } | 79 Mode mode() const { return m_mode; } |
| 79 void setCredentials(Credentials credentials) { m_credentials = credentials;
} | 80 void setCredentials(Credentials credentials) { m_credentials = credentials;
} |
| 80 Credentials credentials() const { return m_credentials; } | 81 Credentials credentials() const { return m_credentials; } |
| 81 void setResponseTainting(Tainting tainting) { m_responseTainting = tainting;
} | 82 void setResponseTainting(Tainting tainting) { m_responseTainting = tainting;
} |
| 82 Tainting tainting() const { return m_responseTainting; } | 83 Tainting tainting() const { return m_responseTainting; } |
| 83 FetchHeaderList* headerList() { return m_headerList.get(); } | 84 FetchHeaderList* headerList() { return m_headerList.get(); } |
| 85 PassRefPtr<BlobDataHandle> blobDataHandle() const { return m_blobDataHandle;
} |
| 84 | 86 |
| 85 void trace(Visitor*); | 87 void trace(Visitor*); |
| 86 | 88 |
| 87 private: | 89 private: |
| 88 FetchRequestData(); | 90 FetchRequestData(); |
| 89 | 91 |
| 90 static PassRefPtrWillBeRawPtr<FetchRequestData> create(); | 92 static PassRefPtrWillBeRawPtr<FetchRequestData> create(); |
| 91 | 93 |
| 92 AtomicString m_method; | 94 AtomicString m_method; |
| 93 KURL m_url; | 95 KURL m_url; |
| 94 RefPtrWillBeMember<FetchHeaderList> m_headerList; | 96 RefPtrWillBeMember<FetchHeaderList> m_headerList; |
| 97 RefPtr<BlobDataHandle> m_blobDataHandle; |
| 95 bool m_unsafeRequestFlag; | 98 bool m_unsafeRequestFlag; |
| 96 // FIXME: Support body. | |
| 97 // FIXME: Support m_skipServiceWorkerFlag; | 99 // FIXME: Support m_skipServiceWorkerFlag; |
| 98 Context m_context; | 100 Context m_context; |
| 99 RefPtr<SecurityOrigin> m_origin; | 101 RefPtr<SecurityOrigin> m_origin; |
| 100 // FIXME: Support m_forceOriginHeaderFlag; | 102 // FIXME: Support m_forceOriginHeaderFlag; |
| 101 bool m_sameOriginDataURLFlag; | 103 bool m_sameOriginDataURLFlag; |
| 102 Referrer m_referrer; | 104 Referrer m_referrer; |
| 103 // FIXME: Support m_authenticationFlag; | 105 // FIXME: Support m_authenticationFlag; |
| 104 // FIXME: Support m_synchronousFlag; | 106 // FIXME: Support m_synchronousFlag; |
| 105 Mode m_mode; | 107 Mode m_mode; |
| 106 Credentials m_credentials; | 108 Credentials m_credentials; |
| 107 // FIXME: Support m_useURLCredentialsFlag; | 109 // FIXME: Support m_useURLCredentialsFlag; |
| 108 // FIXME: Support m_manualRedirectFlag; | 110 // FIXME: Support m_manualRedirectFlag; |
| 109 // FIXME: Support m_redirectCount; | 111 // FIXME: Support m_redirectCount; |
| 110 Tainting m_responseTainting; | 112 Tainting m_responseTainting; |
| 111 }; | 113 }; |
| 112 | 114 |
| 113 } // namespace blink | 115 } // namespace blink |
| 114 | 116 |
| 115 #endif // FetchRequestData_h | 117 #endif // FetchRequestData_h |
| OLD | NEW |