Searched defs:xhr (Results 1 - 24 of 24) sorted by relevance

/external/chromium_org/chrome/browser/resources/chromeos/chromevox/chromevox/injected/
H A Dscript_installer.js46 var xhr = new XMLHttpRequest();
48 xhr.onreadystatechange = function() {
49 if (xhr.readyState == 4) {
50 var scriptText = xhr.responseText;
67 xhr.open('GET', url, false);
68 xhr.send(null);
/external/chromium_org/remoting/webapp/
H A Dxhr.js17 remoting.xhr = remoting.xhr || {};
25 remoting.xhr.urlencodeParamHash = function(paramHash) {
52 remoting.xhr.get = function(url, onDone, opt_parameters, opt_headers,
54 return remoting.xhr.doMethod('GET', url, onDone, opt_parameters,
73 remoting.xhr.post = function(url, onDone, opt_parameters, opt_headers,
75 return remoting.xhr.doMethod('POST', url, onDone, opt_parameters,
94 remoting.xhr.remove = function(url, onDone, opt_parameters, opt_headers,
96 return remoting.xhr.doMethod('DELETE', url, onDone, opt_parameters,
115 remoting.xhr
[all...]
H A Dwcs_loader.js120 var xhr = new XMLHttpRequest();
121 xhr.onreadystatechange = function() {
122 if (xhr.readyState != 4) {
125 if (xhr.status == 200) {
129 switch (xhr.status) {
142 xhr.open('GET',
145 xhr.send(null);
H A Dwcs_sandbox_container.js209 var xhr = new XMLHttpRequest;
210 this.pendingXhrs_[id] = xhr;
211 xhr.open(method, url, true, user, password);
216 xhr.setRequestHeader(header, headers[header]);
219 xhr.onreadystatechange = this.onReadyStateChange_.bind(this, id);
220 xhr.send(data);
229 var xhr = this.pendingXhrs_[id]
230 if (!xhr) {
235 xhr.abort();
247 * @param {XMLHttpRequest} xhr Th
[all...]
/external/chromium_org/native_client_sdk/src/resources/
H A Dbackground.js27 var xhr = new XMLHttpRequest();
28 xhr.open('GET', 'run_package_config', true);
29 xhr.onload = function() {
33 xhr.onerror = function() {
37 xhr.send();
/external/chromium_org/chrome/common/extensions/docs/examples/extensions/buildbot/
H A Dutils.js11 var xhr = new XMLHttpRequest();
13 // WebKit doesn't handle xhr.responseType = "json" as of Chrome 25.
14 xhr.responseType = "text";
16 xhr.responseType = responseType;
18 xhr.onreadystatechange = function(state) {
19 if (xhr.readyState == 4) {
20 if (xhr.status == 200) {
22 responseType == "json" ? JSON.parse(xhr.response) : xhr.response;
26 opt_errorStatusCallback(xhr
[all...]
/external/chromium_org/chrome/common/extensions/docs/examples/howto/contentscript_xhr/
H A Dcontentscript.js15 var xhr = new XMLHttpRequest();
16 xhr.onreadystatechange = function(data) {
17 if (xhr.readyState == 4) {
18 if (xhr.status == 200) {
19 var data = JSON.parse(xhr.responseText);
29 xhr.open('GET', url, true);
30 xhr.send();
/external/chromium_org/third_party/WebKit/ManualTests/inspector-wrappers/
H A Dinspector-wrappers-test-utils.js13 xhr(win);
16 function xhr(win) { function
17 var xhr = new win.XMLHttpRequest();
22 xhr.open("GET", url, false);
23 xhr.send();
24 truealert("Result:\n\n" + xhr.responseText);
/external/chromium_org/chrome/browser/resources/chromeos/chromevox/closure/
H A Dclosure_preinit.js70 var xhr = new XMLHttpRequest();
72 xhr.onreadystatechange = function() {
73 if (xhr.readyState == 4) {
74 var scriptText = xhr.responseText;
83 xhr.open('GET', url, false);
84 xhr.send(null);
/external/chromium_org/extensions/renderer/resources/
H A Dgreasemonkey_api.js26 function setupEvent(xhr, url, eventName, callback) {
27 xhr[eventName] = function () {
28 var isComplete = xhr.readyState == 4;
30 responseText: xhr.responseText,
31 readyState: xhr.readyState,
32 responseHeaders: isComplete ? xhr.getAllResponseHeaders() : "",
33 status: isComplete ? xhr.status : 0,
34 statusText: isComplete ? xhr.statusText : "",
41 var xhr = new XMLHttpRequest();
46 setupEvent(xhr, detail
[all...]
/external/chromium_org/ui/file_manager/video_player/js/cast/
H A Dcast_extension_discoverer.js70 var xhr = new XMLHttpRequest();
72 xhr.open('GET', url, true);
73 xhr.onerror = function() { callback(false); };
75 xhr.onreadystatechange = function(event) {
76 if (xhr.readyState == 4 && xhr.status === 200) {
81 xhr.send();
/external/chromium_org/chrome/browser/resources/chromeos/chromevox/chromevox/background/
H A Dinjected_script_loader.js34 var xhr = new XMLHttpRequest();
36 xhr.onreadystatechange = function() {
37 if (xhr.readyState == 4) {
38 var scriptText = xhr.responseText;
53 xhr.open('GET', url);
54 xhr.send(null);
H A Dbackground.js458 var xhr = new XMLHttpRequest();
460 xhr.onreadystatechange = function() {
461 if (xhr.readyState == 4) {
462 var manifest = JSON.parse(xhr.responseText);
484 xhr.open('GET', url);
485 xhr.send();
/external/chromium_org/chrome/browser/resources/chromeos/chromevox/host/chrome/
H A Dbraille_table.js56 var xhr = new XMLHttpRequest();
57 xhr.open('GET', url, true);
58 xhr.onreadystatechange = function() {
59 if (xhr.readyState == 4) {
60 if (xhr.status == 200) {
64 JSON.parse(xhr.responseText))));
68 xhr.send();
/external/chromium_org/chrome/common/extensions/docs/examples/extensions/gmail/
H A Dbackground.js149 var xhr = new XMLHttpRequest();
151 xhr.abort(); // synchronously calls onreadystatechange
171 xhr.onreadystatechange = function() {
172 if (xhr.readyState != 4)
175 if (xhr.responseXML) {
176 var xmlDoc = xhr.responseXML;
191 xhr.onerror = function(error) {
195 xhr.open("GET", getFeedUrl(), true);
196 xhr.send(null);
/external/chromium_org/chrome/common/extensions/docs/examples/extensions/gdocs/
H A Dchrome_ex_oauth.js133 * xhr {XMLHttpRequest} The XMLHttpRequest object which was used to
152 ChromeExOAuth.sendRequest(method, signedUrl, headers, body, function (xhr) {
153 if (xhr.readyState == 4) {
154 callback(xhr.responseText, xhr);
287 var xhr = new XMLHttpRequest();
288 xhr.onreadystatechange = function(data) {
289 callback(xhr, data);
291 xhr.open(method, url, true);
295 xhr
[all...]
/external/chromium_org/chrome/common/extensions/docs/examples/extensions/oauth_contacts/
H A Dchrome_ex_oauth.js133 * xhr {XMLHttpRequest} The XMLHttpRequest object which was used to
152 ChromeExOAuth.sendRequest(method, signedUrl, headers, body, function (xhr) {
153 if (xhr.readyState == 4) {
154 callback(xhr.responseText, xhr);
287 var xhr = new XMLHttpRequest();
288 xhr.onreadystatechange = function(data) {
289 callback(xhr, data);
291 xhr.open(method, url, true);
295 xhr
[all...]
/external/chromium_org/ui/file_manager/image_loader/
H A Drequest.js307 var xhr = new XMLHttpRequest();
308 xhr.responseType = 'blob';
310 xhr.onreadystatechange = function() {
311 if (xhr.readyState != 4)
313 if (xhr.status != 200) {
314 onFailure(xhr.status);
317 var contentType = xhr.getResponseHeader('Content-Type');
318 onSuccess(contentType, xhr.response);
321 // Perform a xhr request.
323 xhr
[all...]
/external/chromium_org/chrome/common/extensions/docs/examples/extensions/calendar/javascript/
H A Dbackground.js329 var xhr = new XMLHttpRequest();
331 xhr.onreadystatechange = CalendarManager.genResponseChangeFunc(xhr);
332 xhr.onerror = function(error) {
343 xhr.open('GET', url);
344 xhr.send(null);
356 * @param {xmlHttpRequest} xhr xmlHttpRequest object containing server response.
359 CalendarManager.genResponseChangeFunc = function(xhr) {
361 if (xhr.readyState != 4) {
364 if (!xhr
[all...]
/external/chromium_org/third_party/WebKit/Source/core/inspector/
H A DAsyncCallStackTracker.cpp235 if (XMLHttpRequest* xhr = toXmlHttpRequest(eventTarget)) {
236 willHandleXHREvent(xhr, event);
246 void AsyncCallStackTracker::willLoadXHR(XMLHttpRequest* xhr, const ScriptValue& callFrames) argument
248 ASSERT(xhr->executionContext());
252 ExecutionContextData* data = createContextDataIfNeeded(xhr->executionContext());
253 data->m_xhrCallChains.set(xhr, createAsyncCallChain(xhrSendName, callFrames));
256 void AsyncCallStackTracker::didLoadXHR(XMLHttpRequest* xhr) argument
258 ASSERT(xhr->executionContext());
260 if (ExecutionContextData* data = m_executionContextDataMap.get(xhr->executionContext()))
261 data->m_xhrCallChains.remove(xhr);
264 willHandleXHREvent(XMLHttpRequest* xhr, Event* event) argument
[all...]
H A DInspectorResourceAgent.cpp485 void InspectorResourceAgent::willLoadXHR(XMLHttpRequest* xhr, ThreadableLoaderClient* client, const AtomicString& method, const KURL& url, bool async, PassRefPtr<FormData> formData, const HTTPHeaderMap& headers, bool includeCredentials) argument
487 ASSERT(xhr);
488 RefPtrWillBeRawPtr<XHRReplayData> xhrReplayData = XHRReplayData::create(xhr->executionContext(), method, urlWithoutFragment(url), async, formData.get(), includeCredentials);
495 void InspectorResourceAgent::delayedRemoveReplayXHR(XMLHttpRequest* xhr) argument
497 if (!m_replayXHRs.contains(xhr))
500 m_replayXHRsToBeDeleted.add(xhr);
501 m_replayXHRs.remove(xhr);
505 void InspectorResourceAgent::didFailXHRLoading(XMLHttpRequest* xhr, ThreadableLoaderClient* client) argument
511 delayedRemoveReplayXHR(xhr);
514 void InspectorResourceAgent::didFinishXHRLoading(XMLHttpRequest* xhr, ThreadableLoaderClien argument
736 RefPtrWillBeRawPtr<XMLHttpRequest> xhr = XMLHttpRequest::create(executionContext); local
[all...]
H A DInspectorDebuggerAgent.cpp815 void InspectorDebuggerAgent::willLoadXHR(XMLHttpRequest* xhr, ThreadableLoaderClient*, const AtomicString&, const KURL&, bool async, PassRefPtr<FormData>, const HTTPHeaderMap&, bool) argument
818 asyncCallStackTracker().willLoadXHR(xhr, scriptDebugServer().currentCallFramesForAsyncStack());
821 void InspectorDebuggerAgent::didDispatchXHRLoadendEvent(XMLHttpRequest* xhr) argument
824 asyncCallStackTracker().didLoadXHR(xhr);
/external/chromium_org/tools/win/split_link/viz.js/
H A Dviz.js79 var xhr = new XMLHttpRequest();
80 xhr.open('GET', url, false);
81 xhr.send(null);
82 return xhr.responseText;
1154 var xhr = new XMLHttpRequest();
1155 xhr.open('HEAD', url, false);
1156 xhr.send(null);
1157 if (!(xhr.status >= 200 && xhr.status < 300 || xhr
[all...]
/external/chromium_org/v8/tools/profviz/
H A Dgnuplot-4.6.3-emscripten.js137 var xhr = new XMLHttpRequest();
138 xhr.open('GET', url, false);
139 xhr.send(null);
140 return xhr.responseText;
1209 var xhr = new XMLHttpRequest();
1210 xhr.open('HEAD', url, false);
1211 xhr.send(null);
1212 if (!(xhr.status >= 200 && xhr.status < 300 || xhr
[all...]

Completed in 547 milliseconds