Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1078)

Side by Side Diff: third_party/WebKit/Source/modules/fetch/Response.h

Issue 2524703002: Introduce Response.redirect attribute and add LayoutTest. (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698