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

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

Issue 2610903002: Replace [CallWith=ExecutionContext] with [CallWith=ScriptState] (Closed)
Patch Set: Created 3 years, 11 months 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 static Response* create(ScriptState*, 42 static Response* create(ScriptState*,
43 BodyStreamBuffer*, 43 BodyStreamBuffer*,
44 const String& contentType, 44 const String& contentType,
45 const ResponseInit&, 45 const ResponseInit&,
46 ExceptionState&); 46 ExceptionState&);
47 static Response* create(ExecutionContext*, FetchResponseData*); 47 static Response* create(ExecutionContext*, FetchResponseData*);
48 static Response* create(ScriptState*, const WebServiceWorkerResponse&); 48 static Response* create(ScriptState*, const WebServiceWorkerResponse&);
49 49
50 static Response* createClone(const Response&); 50 static Response* createClone(const Response&);
51 51
52 static Response* error(ExecutionContext*); 52 static Response* error(ScriptState*);
53 static Response* redirect(ExecutionContext*, 53 static Response* redirect(ScriptState*,
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 bool redirected() const;
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 void installBody(); 109 void installBody();
110 void refreshBody(ScriptState*); 110 void refreshBody(ScriptState*);
111 111
112 const Member<FetchResponseData> m_response; 112 const Member<FetchResponseData> m_response;
113 const Member<Headers> m_headers; 113 const Member<Headers> m_headers;
114 }; 114 };
115 115
116 } // namespace blink 116 } // namespace blink
117 117
118 #endif // Response_h 118 #endif // Response_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/beacon/NavigatorBeacon.idl ('k') | third_party/WebKit/Source/modules/fetch/Response.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698