| 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" | |
| 12 #include "wtf/PassRefPtr.h" | 11 #include "wtf/PassRefPtr.h" |
| 13 #include "wtf/text/AtomicString.h" | |
| 14 #include "wtf/text/WTFString.h" | |
| 15 | 12 |
| 16 namespace blink { | 13 namespace blink { |
| 17 | 14 |
| 18 class BlobDataHandle; | 15 class BlobDataHandle; |
| 19 class ExecutionContext; | 16 class ExecutionContext; |
| 20 class FetchHeaderList; | 17 class FetchHeaderList; |
| 21 struct ResourceLoaderOptions; | |
| 22 class ResourceRequest; | |
| 23 class SecurityOrigin; | 18 class SecurityOrigin; |
| 24 struct ThreadableLoaderOptions; | |
| 25 class WebServiceWorkerRequest; | 19 class WebServiceWorkerRequest; |
| 26 | 20 |
| 27 class FetchRequestData final : public GarbageCollectedFinalized<FetchRequestData
> { | 21 class FetchRequestData final : public GarbageCollectedFinalized<FetchRequestData
> { |
| 28 WTF_MAKE_NONCOPYABLE(FetchRequestData); | 22 WTF_MAKE_NONCOPYABLE(FetchRequestData); |
| 29 public: | 23 public: |
| 30 enum Mode { SameOriginMode, NoCORSMode, CORSMode, CORSWithForcedPreflight }; | 24 enum Mode { SameOriginMode, NoCORSMode, CORSMode, CORSWithForcedPreflight }; |
| 31 enum Credentials { OmitCredentials, SameOriginCredentials, IncludeCredential
s }; | 25 enum Credentials { OmitCredentials, SameOriginCredentials, IncludeCredential
s }; |
| 32 enum Context { ChildContext, ConnectContext, DownloadContext, FontContext, F
ormContext, ImageContext, ManifestContext, MediaContext, NavigateContext, Object
Context, PingContext, PopupContext, PrefetchContext, ScriptContext, ServiceWorke
rContext, SharedWorkerContext, StyleContext, WorkerContext, NullContext }; | 26 enum Context { ChildContext, ConnectContext, DownloadContext, FontContext, F
ormContext, ImageContext, ManifestContext, MediaContext, NavigateContext, Object
Context, PingContext, PopupContext, PrefetchContext, ScriptContext, ServiceWorke
rContext, SharedWorkerContext, StyleContext, WorkerContext, NullContext }; |
| 33 enum Tainting { BasicTainting, CORSTainting, OpaqueTainting }; | 27 enum Tainting { BasicTainting, CORSTainting, OpaqueTainting }; |
| 34 | 28 |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 Credentials m_credentials; | 102 Credentials m_credentials; |
| 109 // FIXME: Support m_useURLCredentialsFlag; | 103 // FIXME: Support m_useURLCredentialsFlag; |
| 110 // FIXME: Support m_manualRedirectFlag; | 104 // FIXME: Support m_manualRedirectFlag; |
| 111 // FIXME: Support m_redirectCount; | 105 // FIXME: Support m_redirectCount; |
| 112 Tainting m_responseTainting; | 106 Tainting m_responseTainting; |
| 113 }; | 107 }; |
| 114 | 108 |
| 115 } // namespace blink | 109 } // namespace blink |
| 116 | 110 |
| 117 #endif // FetchRequestData_h | 111 #endif // FetchRequestData_h |
| OLD | NEW |