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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 String url() const; | 52 String url() const; |
53 unsigned short status() const; | 53 unsigned short status() const; |
54 bool ok() const; | 54 bool ok() const; |
55 String statusText() const; | 55 String statusText() const; |
56 Headers* headers() const; | 56 Headers* headers() const; |
57 | 57 |
58 // From Response.idl: | 58 // From Response.idl: |
59 // This function must be called with entering an appropriate V8 context. | 59 // This function must be called with entering an appropriate V8 context. |
60 Response* clone(ScriptState*, ExceptionState&); | 60 Response* clone(ScriptState*, ExceptionState&); |
61 | 61 |
62 // ActiveScriptWrappable | 62 // ScriptWrappable |
63 bool hasPendingActivity() const final; | 63 bool hasPendingActivity() const final; |
64 | 64 |
65 // Does not call response.setBlobDataHandle(). | 65 // Does not call response.setBlobDataHandle(). |
66 void populateWebServiceWorkerResponse(WebServiceWorkerResponse& /* response
*/); | 66 void populateWebServiceWorkerResponse(WebServiceWorkerResponse& /* response
*/); |
67 | 67 |
68 bool hasBody() const; | 68 bool hasBody() const; |
69 BodyStreamBuffer* bodyBuffer() override { return m_response->buffer(); } | 69 BodyStreamBuffer* bodyBuffer() override { return m_response->buffer(); } |
70 // Returns the BodyStreamBuffer of |m_response|. This method doesn't check | 70 // Returns the BodyStreamBuffer of |m_response|. This method doesn't check |
71 // the internal response of |m_response| even if |m_response| has it. | 71 // the internal response of |m_response| even if |m_response| has it. |
72 const BodyStreamBuffer* bodyBuffer() const override { return m_response->buf
fer(); } | 72 const BodyStreamBuffer* bodyBuffer() const override { return m_response->buf
fer(); } |
(...skipping 16 matching lines...) Expand all Loading... |
89 void installBody(); | 89 void installBody(); |
90 void refreshBody(ScriptState*); | 90 void refreshBody(ScriptState*); |
91 | 91 |
92 const Member<FetchResponseData> m_response; | 92 const Member<FetchResponseData> m_response; |
93 const Member<Headers> m_headers; | 93 const Member<Headers> m_headers; |
94 }; | 94 }; |
95 | 95 |
96 } // namespace blink | 96 } // namespace blink |
97 | 97 |
98 #endif // Response_h | 98 #endif // Response_h |
OLD | NEW |