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/text/AtomicString.h" | 13 #include "wtf/text/AtomicString.h" |
14 #include "wtf/text/WTFString.h" | 14 #include "wtf/text/WTFString.h" |
15 | 15 |
16 namespace blink { | 16 namespace blink { |
17 | 17 |
18 class BlobDataHandle; | 18 class BlobDataHandle; |
19 class ExecutionContext; | 19 class ExecutionContext; |
20 class FetchHeaderList; | 20 class FetchHeaderList; |
21 struct ResourceLoaderOptions; | |
22 class ResourceRequest; | |
23 class SecurityOrigin; | 21 class SecurityOrigin; |
24 struct ThreadableLoaderOptions; | |
25 class WebServiceWorkerRequest; | 22 class WebServiceWorkerRequest; |
26 | 23 |
27 class FetchRequestData final : public GarbageCollectedFinalized<FetchRequestData
> { | 24 class FetchRequestData final : public GarbageCollectedFinalized<FetchRequestData
> { |
28 WTF_MAKE_NONCOPYABLE(FetchRequestData); | 25 WTF_MAKE_NONCOPYABLE(FetchRequestData); |
29 public: | 26 public: |
30 enum Mode { SameOriginMode, NoCORSMode, CORSMode, CORSWithForcedPreflight }; | 27 enum Mode { SameOriginMode, NoCORSMode, CORSMode, CORSWithForcedPreflight }; |
31 enum Credentials { OmitCredentials, SameOriginCredentials, IncludeCredential
s }; | 28 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 }; | 29 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 }; | 30 enum Tainting { BasicTainting, CORSTainting, OpaqueTainting }; |
34 | 31 |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 Credentials m_credentials; | 105 Credentials m_credentials; |
109 // FIXME: Support m_useURLCredentialsFlag; | 106 // FIXME: Support m_useURLCredentialsFlag; |
110 // FIXME: Support m_manualRedirectFlag; | 107 // FIXME: Support m_manualRedirectFlag; |
111 // FIXME: Support m_redirectCount; | 108 // FIXME: Support m_redirectCount; |
112 Tainting m_responseTainting; | 109 Tainting m_responseTainting; |
113 }; | 110 }; |
114 | 111 |
115 } // namespace blink | 112 } // namespace blink |
116 | 113 |
117 #endif // FetchRequestData_h | 114 #endif // FetchRequestData_h |
OLD | NEW |