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 28 matching lines...) Expand all Loading... |
39 static Request* create(ExecutionContext*, Request*, const Dictionary&, Excep
tionState&); | 39 static Request* create(ExecutionContext*, Request*, const Dictionary&, Excep
tionState&); |
40 static Request* create(ExecutionContext*, FetchRequestData*); | 40 static Request* create(ExecutionContext*, FetchRequestData*); |
41 static Request* create(ExecutionContext*, const WebServiceWorkerRequest&); | 41 static Request* create(ExecutionContext*, const WebServiceWorkerRequest&); |
42 | 42 |
43 const FetchRequestData* request() { return m_request; } | 43 const FetchRequestData* request() { return m_request; } |
44 | 44 |
45 // From Request.idl: | 45 // From Request.idl: |
46 String method() const; | 46 String method() const; |
47 KURL url() const; | 47 KURL url() const; |
48 Headers* headers() const { return m_headers; } | 48 Headers* headers() const { return m_headers; } |
| 49 String context() const; |
49 String referrer() const; | 50 String referrer() const; |
50 String mode() const; | 51 String mode() const; |
51 String credentials() const; | 52 String credentials() const; |
52 | 53 |
53 // From Request.idl: | 54 // From Request.idl: |
54 Request* clone(ExceptionState&) const; | 55 Request* clone(ExceptionState&) const; |
55 | 56 |
56 FetchRequestData* passRequestData(); | 57 FetchRequestData* passRequestData(); |
57 | 58 |
58 void populateWebServiceWorkerRequest(WebServiceWorkerRequest&) const; | 59 void populateWebServiceWorkerRequest(WebServiceWorkerRequest&) const; |
(...skipping 15 matching lines...) Expand all Loading... |
74 BodyStreamBuffer* buffer() const override; | 75 BodyStreamBuffer* buffer() const override; |
75 String mimeType() const override; | 76 String mimeType() const override; |
76 | 77 |
77 const Member<FetchRequestData> m_request; | 78 const Member<FetchRequestData> m_request; |
78 const Member<Headers> m_headers; | 79 const Member<Headers> m_headers; |
79 }; | 80 }; |
80 | 81 |
81 } // namespace blink | 82 } // namespace blink |
82 | 83 |
83 #endif // Request_h | 84 #endif // Request_h |
OLD | NEW |