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

Side by Side Diff: Source/core/xml/XMLHttpRequest.h

Issue 21735005: Use "int" instead of "long" for bindings where the WebIDL uses "long". (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/html/track/TextTrackRegion.cpp ('k') | Source/core/xml/XMLHttpRequest.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2003, 2006, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2003, 2006, 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2005, 2006 Alexey Proskuryakov <ap@nypop.com> 3 * Copyright (C) 2005, 2006 Alexey Proskuryakov <ap@nypop.com>
4 * Copyright (C) 2011 Google Inc. All rights reserved. 4 * Copyright (C) 2011 Google Inc. All rights reserved.
5 * Copyright (C) 2012 Intel Corporation 5 * Copyright (C) 2012 Intel Corporation
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public 8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 void send(ArrayBuffer*, ExceptionCode&); 99 void send(ArrayBuffer*, ExceptionCode&);
100 void send(ArrayBufferView*, ExceptionCode&); 100 void send(ArrayBufferView*, ExceptionCode&);
101 void abort(); 101 void abort();
102 void setRequestHeader(const AtomicString& name, const String& value, Excepti onCode&); 102 void setRequestHeader(const AtomicString& name, const String& value, Excepti onCode&);
103 void overrideMimeType(const String& override); 103 void overrideMimeType(const String& override);
104 String getAllResponseHeaders(ExceptionCode&) const; 104 String getAllResponseHeaders(ExceptionCode&) const;
105 String getResponseHeader(const AtomicString& name, ExceptionCode&) const; 105 String getResponseHeader(const AtomicString& name, ExceptionCode&) const;
106 ScriptString responseText(ExceptionCode&); 106 ScriptString responseText(ExceptionCode&);
107 Document* responseXML(ExceptionCode&); 107 Document* responseXML(ExceptionCode&);
108 Blob* responseBlob(ExceptionCode&); 108 Blob* responseBlob(ExceptionCode&);
109 unsigned long timeout() const { return m_timeoutMilliseconds; } 109 unsigned timeout() const { return m_timeoutMilliseconds; }
110 void setTimeout(unsigned long timeout, ExceptionCode&); 110 void setTimeout(unsigned timeout, ExceptionCode&);
111 111
112 void sendForInspectorXHRReplay(PassRefPtr<FormData>, ExceptionCode&); 112 void sendForInspectorXHRReplay(PassRefPtr<FormData>, ExceptionCode&);
113 113
114 // Expose HTTP validation methods for other untrusted requests. 114 // Expose HTTP validation methods for other untrusted requests.
115 static bool isAllowedHTTPMethod(const String&); 115 static bool isAllowedHTTPMethod(const String&);
116 static String uppercaseKnownHTTPMethod(const String&); 116 static String uppercaseKnownHTTPMethod(const String&);
117 static bool isAllowedHTTPHeader(const String&); 117 static bool isAllowedHTTPHeader(const String&);
118 118
119 void setResponseType(const String&, ExceptionCode&); 119 void setResponseType(const String&, ExceptionCode&);
120 String responseType(); 120 String responseType();
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 186
187 OwnPtr<XMLHttpRequestUpload> m_upload; 187 OwnPtr<XMLHttpRequestUpload> m_upload;
188 188
189 KURL m_url; 189 KURL m_url;
190 String m_method; 190 String m_method;
191 HTTPHeaderMap m_requestHeaders; 191 HTTPHeaderMap m_requestHeaders;
192 RefPtr<FormData> m_requestEntityBody; 192 RefPtr<FormData> m_requestEntityBody;
193 String m_mimeTypeOverride; 193 String m_mimeTypeOverride;
194 bool m_async; 194 bool m_async;
195 bool m_includeCredentials; 195 bool m_includeCredentials;
196 unsigned long m_timeoutMilliseconds; 196 unsigned m_timeoutMilliseconds;
197 RefPtr<Blob> m_responseBlob; 197 RefPtr<Blob> m_responseBlob;
198 198
199 RefPtr<ThreadableLoader> m_loader; 199 RefPtr<ThreadableLoader> m_loader;
200 State m_state; 200 State m_state;
201 201
202 ResourceResponse m_response; 202 ResourceResponse m_response;
203 String m_responseEncoding; 203 String m_responseEncoding;
204 204
205 RefPtr<TextResourceDecoder> m_decoder; 205 RefPtr<TextResourceDecoder> m_decoder;
206 206
(...skipping 25 matching lines...) Expand all
232 232
233 // An enum corresponding to the allowed string values for the responseType a ttribute. 233 // An enum corresponding to the allowed string values for the responseType a ttribute.
234 ResponseTypeCode m_responseTypeCode; 234 ResponseTypeCode m_responseTypeCode;
235 Timer<XMLHttpRequest> m_protectionTimer; 235 Timer<XMLHttpRequest> m_protectionTimer;
236 RefPtr<SecurityOrigin> m_securityOrigin; 236 RefPtr<SecurityOrigin> m_securityOrigin;
237 }; 237 };
238 238
239 } // namespace WebCore 239 } // namespace WebCore
240 240
241 #endif // XMLHttpRequest_h 241 #endif // XMLHttpRequest_h
OLDNEW
« no previous file with comments | « Source/core/html/track/TextTrackRegion.cpp ('k') | Source/core/xml/XMLHttpRequest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698