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

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

Issue 102103002: Have HashMap<KeyType, AtomicString>::get() return a const reference (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Use AtomicString::ConstructFromLiteral Created 7 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
« no previous file with comments | « Source/core/timing/Performance.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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 void send(Document*, ExceptionState&); 106 void send(Document*, ExceptionState&);
107 void send(const String&, ExceptionState&); 107 void send(const String&, ExceptionState&);
108 void send(Blob*, ExceptionState&); 108 void send(Blob*, ExceptionState&);
109 void send(DOMFormData*, ExceptionState&); 109 void send(DOMFormData*, ExceptionState&);
110 void send(ArrayBuffer*, ExceptionState&); 110 void send(ArrayBuffer*, ExceptionState&);
111 void send(ArrayBufferView*, ExceptionState&); 111 void send(ArrayBufferView*, ExceptionState&);
112 void abort(); 112 void abort();
113 void setRequestHeader(const AtomicString& name, const AtomicString& value, E xceptionState&); 113 void setRequestHeader(const AtomicString& name, const AtomicString& value, E xceptionState&);
114 void overrideMimeType(const AtomicString& override); 114 void overrideMimeType(const AtomicString& override);
115 String getAllResponseHeaders(ExceptionState&) const; 115 String getAllResponseHeaders(ExceptionState&) const;
116 AtomicString getResponseHeader(const AtomicString& name, ExceptionState&) co nst; 116 const AtomicString& getResponseHeader(const AtomicString& name, ExceptionSta te&) const;
117 ScriptString responseText(ExceptionState&); 117 ScriptString responseText(ExceptionState&);
118 ScriptString responseJSONSource(); 118 ScriptString responseJSONSource();
119 Document* responseXML(ExceptionState&); 119 Document* responseXML(ExceptionState&);
120 Blob* responseBlob(); 120 Blob* responseBlob();
121 Stream* responseStream(); 121 Stream* responseStream();
122 unsigned long timeout() const { return m_timeoutMilliseconds; } 122 unsigned long timeout() const { return m_timeoutMilliseconds; }
123 void setTimeout(unsigned long timeout, ExceptionState&); 123 void setTimeout(unsigned long timeout, ExceptionState&);
124 124
125 void sendForInspectorXHRReplay(PassRefPtr<FormData>, ExceptionState&); 125 void sendForInspectorXHRReplay(PassRefPtr<FormData>, ExceptionState&);
126 126
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 virtual void didFailRedirectCheck(); 160 virtual void didFailRedirectCheck();
161 161
162 AtomicString responseMIMEType() const; 162 AtomicString responseMIMEType() const;
163 bool responseIsXML() const; 163 bool responseIsXML() const;
164 164
165 bool areMethodAndURLValidForSend(); 165 bool areMethodAndURLValidForSend();
166 166
167 bool initSend(ExceptionState&); 167 bool initSend(ExceptionState&);
168 void sendBytesData(const void*, size_t, ExceptionState&); 168 void sendBytesData(const void*, size_t, ExceptionState&);
169 169
170 AtomicString getRequestHeader(const AtomicString& name) const; 170 const AtomicString& getRequestHeader(const AtomicString& name) const;
171 void setRequestHeaderInternal(const AtomicString& name, const AtomicString& value); 171 void setRequestHeaderInternal(const AtomicString& name, const AtomicString& value);
172 172
173 void trackProgress(int dataLength); 173 void trackProgress(int dataLength);
174 // Changes m_state and dispatches a readyStateChange event if new m_state 174 // Changes m_state and dispatches a readyStateChange event if new m_state
175 // value is different from last one. 175 // value is different from last one.
176 void changeState(State newState); 176 void changeState(State newState);
177 void dispatchReadyStateChangeEvent(); 177 void dispatchReadyStateChangeEvent();
178 178
179 void dropProtectionSoon(); 179 void dropProtectionSoon();
180 void dropProtection(); 180 void dropProtection();
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 261
262 // An enum corresponding to the allowed string values for the responseType a ttribute. 262 // An enum corresponding to the allowed string values for the responseType a ttribute.
263 ResponseTypeCode m_responseTypeCode; 263 ResponseTypeCode m_responseTypeCode;
264 AsyncMethodRunner<XMLHttpRequest> m_dropProtectionRunner; 264 AsyncMethodRunner<XMLHttpRequest> m_dropProtectionRunner;
265 RefPtr<SecurityOrigin> m_securityOrigin; 265 RefPtr<SecurityOrigin> m_securityOrigin;
266 }; 266 };
267 267
268 } // namespace WebCore 268 } // namespace WebCore
269 269
270 #endif // XMLHttpRequest_h 270 #endif // XMLHttpRequest_h
OLDNEW
« no previous file with comments | « Source/core/timing/Performance.cpp ('k') | Source/core/xml/XMLHttpRequest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698