| 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 Response_h | 5 #ifndef Response_h |
| 6 #define Response_h | 6 #define Response_h |
| 7 | 7 |
| 8 #include "bindings/core/v8/Dictionary.h" | 8 #include "bindings/core/v8/Dictionary.h" |
| 9 #include "bindings/core/v8/ScriptValue.h" | 9 #include "bindings/core/v8/ScriptValue.h" |
| 10 #include "bindings/core/v8/ScriptWrappable.h" | 10 #include "bindings/core/v8/ScriptWrappable.h" |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 static Response* redirect(ExecutionContext*, | 53 static Response* redirect(ExecutionContext*, |
| 54 const String& url, | 54 const String& url, |
| 55 unsigned short status, | 55 unsigned short status, |
| 56 ExceptionState&); | 56 ExceptionState&); |
| 57 | 57 |
| 58 const FetchResponseData* response() const { return m_response; } | 58 const FetchResponseData* response() const { return m_response; } |
| 59 | 59 |
| 60 // From Response.idl: | 60 // From Response.idl: |
| 61 String type() const; | 61 String type() const; |
| 62 String url() const; | 62 String url() const; |
| 63 bool redirected() const; |
| 63 unsigned short status() const; | 64 unsigned short status() const; |
| 64 bool ok() const; | 65 bool ok() const; |
| 65 String statusText() const; | 66 String statusText() const; |
| 66 Headers* headers() const; | 67 Headers* headers() const; |
| 67 | 68 |
| 68 // From Response.idl: | 69 // From Response.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 Response* clone(ScriptState*, ExceptionState&); | 71 Response* clone(ScriptState*, ExceptionState&); |
| 71 | 72 |
| 72 // ScriptWrappable | 73 // ScriptWrappable |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 void installBody(); | 109 void installBody(); |
| 109 void refreshBody(ScriptState*); | 110 void refreshBody(ScriptState*); |
| 110 | 111 |
| 111 const Member<FetchResponseData> m_response; | 112 const Member<FetchResponseData> m_response; |
| 112 const Member<Headers> m_headers; | 113 const Member<Headers> m_headers; |
| 113 }; | 114 }; |
| 114 | 115 |
| 115 } // namespace blink | 116 } // namespace blink |
| 116 | 117 |
| 117 #endif // Response_h | 118 #endif // Response_h |
| OLD | NEW |