| 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 ExceptionState&); | 52 ExceptionState&); |
| 53 static Request* create(ScriptState*, FetchRequestData*); | 53 static Request* create(ScriptState*, FetchRequestData*); |
| 54 static Request* create(ScriptState*, const WebServiceWorkerRequest&); | 54 static Request* create(ScriptState*, const WebServiceWorkerRequest&); |
| 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 m_headers; } | 59 Headers* getHeaders() const { return m_headers; } |
| 60 String context() const; | 60 String context() const; |
| 61 String referrer() const; | 61 String referrer() const; |
| 62 String referrerPolicy() const; | 62 String getReferrerPolicy() const; |
| 63 String mode() const; | 63 String mode() const; |
| 64 String credentials() const; | 64 String credentials() const; |
| 65 String redirect() const; | 65 String redirect() const; |
| 66 String integrity() const; | 66 String integrity() const; |
| 67 | 67 |
| 68 // From Request.idl: | 68 // From Request.idl: |
| 69 // This function must be called with entering an appropriate V8 context. | 69 // This function must be called with entering an appropriate V8 context. |
| 70 Request* clone(ScriptState*, ExceptionState&); | 70 Request* clone(ScriptState*, ExceptionState&); |
| 71 | 71 |
| 72 FetchRequestData* passRequestData(ScriptState*); | 72 FetchRequestData* passRequestData(ScriptState*); |
| (...skipping 23 matching lines...) Expand all Loading... |
| 96 String mimeType() const override; | 96 String mimeType() const override; |
| 97 void refreshBody(ScriptState*); | 97 void refreshBody(ScriptState*); |
| 98 | 98 |
| 99 const Member<FetchRequestData> m_request; | 99 const Member<FetchRequestData> m_request; |
| 100 const Member<Headers> m_headers; | 100 const Member<Headers> m_headers; |
| 101 }; | 101 }; |
| 102 | 102 |
| 103 } // namespace blink | 103 } // namespace blink |
| 104 | 104 |
| 105 #endif // Request_h | 105 #endif // Request_h |
| OLD | NEW |