| 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/modules/v8/RequestOrUSVString.h" | 9 #include "bindings/modules/v8/RequestOrUSVString.h" |
| 10 #include "modules/ModulesExport.h" | 10 #include "modules/ModulesExport.h" |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 Request(ScriptState*, FetchRequestData*, Headers*); | 87 Request(ScriptState*, FetchRequestData*, Headers*); |
| 88 Request(ScriptState*, FetchRequestData*); | 88 Request(ScriptState*, FetchRequestData*); |
| 89 | 89 |
| 90 const FetchRequestData* GetRequest() const { return request_; } | 90 const FetchRequestData* GetRequest() const { return request_; } |
| 91 static Request* CreateRequestWithRequestOrString(ScriptState*, | 91 static Request* CreateRequestWithRequestOrString(ScriptState*, |
| 92 Request*, | 92 Request*, |
| 93 const String&, | 93 const String&, |
| 94 RequestInit&, | 94 RequestInit&, |
| 95 ExceptionState&); | 95 ExceptionState&); |
| 96 | 96 |
| 97 String ContentType() const override; |
| 97 String MimeType() const override; | 98 String MimeType() const override; |
| 98 void RefreshBody(ScriptState*); | 99 void RefreshBody(ScriptState*); |
| 99 | 100 |
| 100 const Member<FetchRequestData> request_; | 101 const Member<FetchRequestData> request_; |
| 101 const Member<Headers> headers_; | 102 const Member<Headers> headers_; |
| 102 }; | 103 }; |
| 103 | 104 |
| 104 } // namespace blink | 105 } // namespace blink |
| 105 | 106 |
| 106 #endif // Request_h | 107 #endif // Request_h |
| OLD | NEW |