| 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/RequestOrUSVString.h" | 10 #include "bindings/modules/v8/RequestOrUSVString.h" |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 Request(ScriptState*, FetchRequestData*, Headers*); | 86 Request(ScriptState*, FetchRequestData*, Headers*); |
| 87 Request(ScriptState*, FetchRequestData*); | 87 Request(ScriptState*, FetchRequestData*); |
| 88 | 88 |
| 89 const FetchRequestData* request() const { return m_request; } | 89 const FetchRequestData* request() const { return m_request; } |
| 90 static Request* createRequestWithRequestOrString(ScriptState*, | 90 static Request* createRequestWithRequestOrString(ScriptState*, |
| 91 Request*, | 91 Request*, |
| 92 const String&, | 92 const String&, |
| 93 RequestInit&, | 93 RequestInit&, |
| 94 ExceptionState&); | 94 ExceptionState&); |
| 95 | 95 |
| 96 String contentType() const override; |
| 96 String mimeType() const override; | 97 String mimeType() const override; |
| 97 void refreshBody(ScriptState*); | 98 void refreshBody(ScriptState*); |
| 98 | 99 |
| 99 const Member<FetchRequestData> m_request; | 100 const Member<FetchRequestData> m_request; |
| 100 const Member<Headers> m_headers; | 101 const Member<Headers> m_headers; |
| 101 }; | 102 }; |
| 102 | 103 |
| 103 } // namespace blink | 104 } // namespace blink |
| 104 | 105 |
| 105 #endif // Request_h | 106 #endif // Request_h |
| OLD | NEW |