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 "bindings/modules/v8/UnionTypesModules.h" | 10 #include "bindings/modules/v8/UnionTypesModules.h" |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 const BodyStreamBuffer* bodyBuffer() const override { return m_request->buff
er(); } | 61 const BodyStreamBuffer* bodyBuffer() const override { return m_request->buff
er(); } |
62 | 62 |
63 DECLARE_VIRTUAL_TRACE(); | 63 DECLARE_VIRTUAL_TRACE(); |
64 | 64 |
65 private: | 65 private: |
66 Request(ExecutionContext*, FetchRequestData*); | 66 Request(ExecutionContext*, FetchRequestData*); |
67 Request(ExecutionContext*, const WebServiceWorkerRequest&); | 67 Request(ExecutionContext*, const WebServiceWorkerRequest&); |
68 Request(ExecutionContext*, FetchRequestData*, Headers*); | 68 Request(ExecutionContext*, FetchRequestData*, Headers*); |
69 | 69 |
70 const FetchRequestData* request() const { return m_request; } | 70 const FetchRequestData* request() const { return m_request; } |
71 static Request* createRequestWithRequestOrString(ScriptState*, Request*, con
st String&, const RequestInit&, ExceptionState&); | 71 static Request* createRequestWithRequestOrString(ScriptState*, Request*, con
st String&, RequestInit&, ExceptionState&); |
72 | 72 |
73 String mimeType() const override; | 73 String mimeType() const override; |
74 | 74 |
75 const Member<FetchRequestData> m_request; | 75 const Member<FetchRequestData> m_request; |
76 const Member<Headers> m_headers; | 76 const Member<Headers> m_headers; |
77 }; | 77 }; |
78 | 78 |
79 } // namespace blink | 79 } // namespace blink |
80 | 80 |
81 #endif // Request_h | 81 #endif // Request_h |
OLD | NEW |