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 Request_h | 5 #ifndef Request_h |
6 #define Request_h | 6 #define Request_h |
7 | 7 |
8 #include "bindings/core/v8/Dictionary.h" | 8 #include "bindings/core/v8/Dictionary.h" |
9 #include "bindings/core/v8/ScriptWrappable.h" | |
10 #include "modules/serviceworkers/Body.h" | 9 #include "modules/serviceworkers/Body.h" |
11 #include "modules/serviceworkers/FetchRequestData.h" | 10 #include "modules/serviceworkers/FetchRequestData.h" |
12 #include "modules/serviceworkers/Headers.h" | 11 #include "modules/serviceworkers/Headers.h" |
13 #include "platform/heap/Handle.h" | |
14 #include "platform/weborigin/KURL.h" | |
15 #include "wtf/RefPtr.h" | |
16 #include "wtf/text/WTFString.h" | |
17 | 12 |
18 namespace blink { | 13 namespace blink { |
19 | 14 |
20 class RequestInit; | 15 class RequestInit; |
21 struct ResourceLoaderOptions; | |
22 class ResourceRequest; | |
23 struct ThreadableLoaderOptions; | |
24 class WebServiceWorkerRequest; | 16 class WebServiceWorkerRequest; |
25 | 17 |
26 class Request final : public Body { | 18 class Request final : public Body { |
27 DEFINE_WRAPPERTYPEINFO(); | 19 DEFINE_WRAPPERTYPEINFO(); |
28 public: | 20 public: |
29 virtual ~Request() { } | 21 virtual ~Request() { } |
30 static Request* create(ExecutionContext*, const String&, ExceptionState&); | 22 static Request* create(ExecutionContext*, const String&, ExceptionState&); |
31 static Request* create(ExecutionContext*, const String&, const Dictionary&,
ExceptionState&); | 23 static Request* create(ExecutionContext*, const String&, const Dictionary&,
ExceptionState&); |
32 static Request* create(ExecutionContext*, Request*, ExceptionState&); | 24 static Request* create(ExecutionContext*, Request*, ExceptionState&); |
33 static Request* create(ExecutionContext*, Request*, const Dictionary&, Excep
tionState&); | 25 static Request* create(ExecutionContext*, Request*, const Dictionary&, Excep
tionState&); |
(...skipping 30 matching lines...) Expand all Loading... |
64 | 56 |
65 virtual PassRefPtr<BlobDataHandle> blobDataHandle() override; | 57 virtual PassRefPtr<BlobDataHandle> blobDataHandle() override; |
66 | 58 |
67 const Member<FetchRequestData> m_request; | 59 const Member<FetchRequestData> m_request; |
68 const Member<Headers> m_headers; | 60 const Member<Headers> m_headers; |
69 }; | 61 }; |
70 | 62 |
71 } // namespace blink | 63 } // namespace blink |
72 | 64 |
73 #endif // Request_h | 65 #endif // Request_h |
OLD | NEW |