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

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

Issue 379113002: Move fetch-related predicates to core/fetch. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 6 years, 5 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 /* 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 ScriptString responseJSONSource(); 117 ScriptString responseJSONSource();
118 Document* responseXML(ExceptionState&); 118 Document* responseXML(ExceptionState&);
119 Blob* responseBlob(); 119 Blob* responseBlob();
120 Stream* responseStream(); 120 Stream* responseStream();
121 unsigned long timeout() const { return m_timeoutMilliseconds; } 121 unsigned long timeout() const { return m_timeoutMilliseconds; }
122 void setTimeout(unsigned long timeout, ExceptionState&); 122 void setTimeout(unsigned long timeout, ExceptionState&);
123 123
124 void sendForInspectorXHRReplay(PassRefPtr<FormData>, ExceptionState&); 124 void sendForInspectorXHRReplay(PassRefPtr<FormData>, ExceptionState&);
125 125
126 // Expose HTTP validation methods for other untrusted requests. 126 // Expose HTTP validation methods for other untrusted requests.
127 static bool isAllowedHTTPMethod(const String&);
128 static AtomicString uppercaseKnownHTTPMethod(const AtomicString&); 127 static AtomicString uppercaseKnownHTTPMethod(const AtomicString&);
129 static bool isAllowedHTTPHeader(const String&);
130 128
131 void setResponseType(const String&, ExceptionState&); 129 void setResponseType(const String&, ExceptionState&);
132 String responseType(); 130 String responseType();
133 ResponseTypeCode responseTypeCode() const { return m_responseTypeCode; } 131 ResponseTypeCode responseTypeCode() const { return m_responseTypeCode; }
134 132
135 String responseURL(); 133 String responseURL();
136 134
137 // response attribute has custom getter. 135 // response attribute has custom getter.
138 ArrayBuffer* responseArrayBuffer(); 136 ArrayBuffer* responseArrayBuffer();
139 137
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 bool m_createdDocument; 253 bool m_createdDocument;
256 bool m_error; 254 bool m_error;
257 bool m_uploadEventsAllowed; 255 bool m_uploadEventsAllowed;
258 bool m_uploadComplete; 256 bool m_uploadComplete;
259 bool m_sameOriginRequest; 257 bool m_sameOriginRequest;
260 }; 258 };
261 259
262 } // namespace WebCore 260 } // namespace WebCore
263 261
264 #endif // XMLHttpRequest_h 262 #endif // XMLHttpRequest_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698