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" | 9 #include "bindings/core/v8/ScriptWrappable.h" |
10 #include "modules/serviceworkers/FetchBodyStream.h" | 10 #include "modules/serviceworkers/FetchBodyStream.h" |
11 #include "modules/serviceworkers/FetchRequestData.h" | 11 #include "modules/serviceworkers/FetchRequestData.h" |
12 #include "modules/serviceworkers/Headers.h" | 12 #include "modules/serviceworkers/Headers.h" |
13 #include "platform/heap/Handle.h" | 13 #include "platform/heap/Handle.h" |
14 #include "platform/weborigin/KURL.h" | 14 #include "platform/weborigin/KURL.h" |
15 #include "wtf/RefCounted.h" | 15 #include "wtf/RefCounted.h" |
16 #include "wtf/RefPtr.h" | 16 #include "wtf/RefPtr.h" |
17 #include "wtf/text/WTFString.h" | 17 #include "wtf/text/WTFString.h" |
18 | 18 |
19 namespace blink { | 19 namespace blink { |
20 | 20 |
21 class RequestInit; | 21 class RequestInit; |
22 struct ResourceLoaderOptions; | 22 struct ResourceLoaderOptions; |
23 class ResourceRequest; | 23 class ResourceRequest; |
24 struct ThreadableLoaderOptions; | 24 struct ThreadableLoaderOptions; |
25 class WebServiceWorkerRequest; | 25 class WebServiceWorkerRequest; |
26 | 26 |
27 class Request FINAL : public RefCountedWillBeGarbageCollected<Request>, public S
criptWrappable { | 27 class Request FINAL : public RefCountedWillBeGarbageCollected<Request>, public S
criptWrappable { |
28 DECLARE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(Request); | 28 DECLARE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(Request); |
| 29 DEFINE_WRAPPERTYPEINFO(); |
29 public: | 30 public: |
30 static PassRefPtrWillBeRawPtr<Request> create(ExecutionContext*, const Strin
g&, ExceptionState&); | 31 static PassRefPtrWillBeRawPtr<Request> create(ExecutionContext*, const Strin
g&, ExceptionState&); |
31 static PassRefPtrWillBeRawPtr<Request> create(ExecutionContext*, const Strin
g&, const Dictionary&, ExceptionState&); | 32 static PassRefPtrWillBeRawPtr<Request> create(ExecutionContext*, const Strin
g&, const Dictionary&, ExceptionState&); |
32 static PassRefPtrWillBeRawPtr<Request> create(ExecutionContext*, Request*, E
xceptionState&); | 33 static PassRefPtrWillBeRawPtr<Request> create(ExecutionContext*, Request*, E
xceptionState&); |
33 static PassRefPtrWillBeRawPtr<Request> create(ExecutionContext*, Request*, c
onst Dictionary&, ExceptionState&); | 34 static PassRefPtrWillBeRawPtr<Request> create(ExecutionContext*, Request*, c
onst Dictionary&, ExceptionState&); |
34 | 35 |
35 static PassRefPtrWillBeRawPtr<Request> create(PassRefPtrWillBeRawPtr<FetchRe
questData>); | 36 static PassRefPtrWillBeRawPtr<Request> create(PassRefPtrWillBeRawPtr<FetchRe
questData>); |
36 | 37 |
37 static PassRefPtrWillBeRawPtr<Request> create(const WebServiceWorkerRequest&
); | 38 static PassRefPtrWillBeRawPtr<Request> create(const WebServiceWorkerRequest&
); |
38 | 39 |
(...skipping 16 matching lines...) Expand all Loading... |
55 explicit Request(const WebServiceWorkerRequest&); | 56 explicit Request(const WebServiceWorkerRequest&); |
56 | 57 |
57 RefPtrWillBeMember<FetchRequestData> m_request; | 58 RefPtrWillBeMember<FetchRequestData> m_request; |
58 RefPtrWillBeMember<Headers> m_headers; | 59 RefPtrWillBeMember<Headers> m_headers; |
59 RefPtrWillBeMember<FetchBodyStream> m_fetchBodyStream; | 60 RefPtrWillBeMember<FetchBodyStream> m_fetchBodyStream; |
60 }; | 61 }; |
61 | 62 |
62 } // namespace blink | 63 } // namespace blink |
63 | 64 |
64 #endif // Request_h | 65 #endif // Request_h |
OLD | NEW |