| 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 | 55 |
| 56 // From Request.idl: | 56 // From Request.idl: |
| 57 String method() const; | 57 String method() const; |
| 58 KURL url() const; | 58 KURL url() const; |
| 59 Headers* getHeaders() const { return headers_; } | 59 Headers* getHeaders() const { return headers_; } |
| 60 String Context() const; | 60 String Context() const; |
| 61 String referrer() const; | 61 String referrer() const; |
| 62 String getReferrerPolicy() const; | 62 String getReferrerPolicy() const; |
| 63 String mode() const; | 63 String mode() const; |
| 64 String credentials() const; | 64 String credentials() const; |
| 65 String cache() const; |
| 65 String redirect() const; | 66 String redirect() const; |
| 66 String integrity() const; | 67 String integrity() const; |
| 67 | 68 |
| 68 // From Request.idl: | 69 // From Request.idl: |
| 69 // This function must be called with entering an appropriate V8 context. | 70 // This function must be called with entering an appropriate V8 context. |
| 70 Request* clone(ScriptState*, ExceptionState&); | 71 Request* clone(ScriptState*, ExceptionState&); |
| 71 | 72 |
| 72 FetchRequestData* PassRequestData(ScriptState*); | 73 FetchRequestData* PassRequestData(ScriptState*); |
| 73 void PopulateWebServiceWorkerRequest(WebServiceWorkerRequest&) const; | 74 void PopulateWebServiceWorkerRequest(WebServiceWorkerRequest&) const; |
| 74 bool HasBody() const; | 75 bool HasBody() const; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 96 String MimeType() const override; | 97 String MimeType() const override; |
| 97 void RefreshBody(ScriptState*); | 98 void RefreshBody(ScriptState*); |
| 98 | 99 |
| 99 const Member<FetchRequestData> request_; | 100 const Member<FetchRequestData> request_; |
| 100 const Member<Headers> headers_; | 101 const Member<Headers> headers_; |
| 101 }; | 102 }; |
| 102 | 103 |
| 103 } // namespace blink | 104 } // namespace blink |
| 104 | 105 |
| 105 #endif // Request_h | 106 #endif // Request_h |
| OLD | NEW |