/external/chromium_org/third_party/polymer/components-chromium/core-ajax/ |
D | core-ajax-extracted.js | 157 this.xhr = document.createElement('core-xhr'); 160 receive: function(response, xhr) { argument 161 if (this.isSuccess(xhr)) { 162 this.processResponse(xhr); 164 this.error(xhr); 166 this.complete(xhr); 169 isSuccess: function(xhr) { argument 170 var status = xhr.status || 0; 174 processResponse: function(xhr) { argument 175 var response = this.evalResponse(xhr); [all …]
|
D | core-xhr-extracted.js | 22 var xhr = new XMLHttpRequest(); 33 xhr.open(method, url, async); 35 xhr.responseType = options.responseType; 38 xhr.withCredentials = true; 40 this.makeReadyStateHandler(xhr, options.callback); 41 this.setRequestHeaders(xhr, options.headers); 42 xhr.send(xhrParams); 44 xhr.onreadystatechange(xhr); 46 return xhr; 69 makeReadyStateHandler: function(xhr, callback) { argument [all …]
|
/external/chromium_org/remoting/webapp/ |
D | xhr.js | 17 remoting.xhr = remoting.xhr || {}; 25 remoting.xhr.urlencodeParamHash = function(paramHash) { 52 remoting.xhr.get = function(url, onDone, opt_parameters, opt_headers, function 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.put = function(url, onDone, opt_parameters, opt_headers, 117 return remoting.xhr.doMethod('PUT', url, onDone, opt_parameters, [all …]
|
D | oauth2_api.js | 74 var onResponse = function(xhr) { argument 75 if (xhr.status == 200) { 80 var tokens = JSON.parse(xhr.responseText); 88 console.error('Failed to refresh token. Status: ' + xhr.status + 89 ' response: ' + xhr.responseText); 90 onError(remoting.OAuth2Api.interpretXhrStatus_(xhr.status)); 101 remoting.xhr.post(remoting.OAuth2Api.getOAuth2TokenEndpoint_(), 122 var onResponse = function(xhr) { argument 123 if (xhr.status == 200) { 128 var tokens = JSON.parse(xhr.responseText); [all …]
|
D | wcs_sandbox_container.js | 209 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(); 250 function sanitizeXhr_(xhr) { argument [all …]
|
D | wcs_sandbox_content.js | 103 var xhr = event.data['xhr']; 104 if (xhr === undefined) { 108 for (var member in xhr) { 109 pendingXhr[member] = xhr[member]; 111 if (xhr.readyState == 4) { 161 remoting.WcsSandboxContent.prototype.sendXhr = function(xhr) { argument 163 this.pendingXhrs_[id] = xhr; 167 'parameters': xhr.sandbox_ipc 170 delete xhr.sandbox_ipc;
|
D | wcs_loader.js | 120 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);
|
/external/chromium_org/chrome/common/extensions/docs/examples/extensions/buildbot/ |
D | utils.js | 11 var xhr = new XMLHttpRequest(); 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.status); 31 xhr.onerror = function(error) { 35 xhr.open("GET", url, true); [all …]
|
/external/chromium_org/extensions/renderer/resources/ |
D | greasemonkey_api.js | 26 function setupEvent(xhr, url, eventName, callback) { argument 27 xhr[eventName] = function () { 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, details.url, eventName, details[eventName]); [all …]
|
/external/chromium_org/chrome/common/extensions/docs/examples/api/devtools/audits/broken-links/ |
D | background.js | 12 var xhr = new XMLHttpRequest(); 13 xhr.open("HEAD", link.href, true); 14 xhr.onreadystatechange = function() { 15 if (xhr.readyState < xhr.HEADERS_RECEIVED || xhr.processed) 17 if (!xhr.status || xhr.status >= 400) { 21 status: xhr.statusText 24 xhr.processed = true; 25 xhr.abort(); 31 xhr.send(null);
|
/external/chromium_org/chrome/browser/resources/cryptotoken/ |
D | textfetcher.js | 43 var xhr = new XMLHttpRequest(); 45 xhr.open(method, url, true); 46 xhr.onloadend = function() { 47 if (xhr.status != 200) { 48 reject(xhr.status); 51 resolve(xhr.responseText); 53 xhr.onerror = function() { 58 xhr.send(opt_body); 60 xhr.send();
|
/external/chromium_org/chrome/browser/resources/chromeos/wallpaper_manager/js/ |
D | util.js | 54 var xhr; 56 xhr = opt_xhr; 58 xhr = new XMLHttpRequest(); 64 xhr.addEventListener('load', function(e) { 71 xhr.addEventListener('error', onFailure); 72 xhr.open('GET', url, true); 73 xhr.responseType = type; 74 xhr.send(null); 95 self.fetchURL(url, 'arraybuffer', function(xhr) { argument 96 if (xhr.response != null) { [all …]
|
/external/chromium_org/ui/file_manager/video_player/js/cast/ |
D | cast_extension_discoverer.js | 70 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/common/extensions/docs/examples/extensions/gdocs/ |
D | chrome_ex_oauth.js | 152 ChromeExOAuth.sendRequest(method, signedUrl, headers, body, function (xhr) { argument 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.setRequestHeader(header, headers[header]); 299 xhr.send(body); 509 ChromeExOAuth.prototype.onRequestToken = function(callback, xhr) { argument [all …]
|
/external/chromium_org/chrome/common/extensions/docs/examples/extensions/oauth_contacts/ |
D | chrome_ex_oauth.js | 152 ChromeExOAuth.sendRequest(method, signedUrl, headers, body, function (xhr) { argument 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.setRequestHeader(header, headers[header]); 299 xhr.send(body); 509 ChromeExOAuth.prototype.onRequestToken = function(callback, xhr) { argument [all …]
|
/external/chromium_org/ui/login/ |
D | resource_loader.js | 108 function isSuccessful(url, xhr) { argument 110 return xhr.readyState == 4 && 111 (xhr.status == 200 || fileURL.test(url) && xhr.status == 0); 123 var xhr = new XMLHttpRequest(); 124 xhr.open('GET', html.url); 125 xhr.onreadystatechange = function() { 126 if (isSuccessful(html.url, xhr)) { 131 xhr.responseType = 'document'; 132 xhr.send();
|
/external/chromium_org/chrome/common/extensions/docs/examples/howto/contentscript_xhr/ |
D | contentscript.js | 15 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/chrome/browser/resources/print_preview/ |
D | cloud_print_interface.js | 429 var xhr = new XMLHttpRequest(); 430 xhr.open(method, url, true); 431 xhr.withCredentials = 434 xhr.setRequestHeader(header, headers[header]); 437 return new CloudPrintRequest(xhr, body, origin, account, callback); 461 request.xhr.onreadystatechange = 463 request.xhr.send(request.body); 475 errorEvent.status = request.xhr.status; 476 if (request.xhr.status == 200) { 513 request.xhr.abort(); [all …]
|
/external/chromium_org/chrome/browser/resources/chromeos/chromevox/chromevox/background/ |
D | injected_script_loader.js | 34 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);
|
/external/chromium_org/tools/memory_inspector/memory_inspector/frontends/www_content/js/ |
D | webservice.js | 21 error: function (xhr, ajaxOptions, thrownError) { argument 24 console.log('HTTP response: ' + xhr.status + ' ' + thrownError); 25 console.log(xhr.responseText); 27 errorCallback(xhr.status, xhr.responseText); 28 if (xhr.readyState < 4 && this_.onServerUnreachableOrTimeout != null)
|
/external/chromium_org/third_party/WebKit/ManualTests/inspector-wrappers/ |
D | inspector-wrappers-test-utils.js | 13 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/tools/perf/page_sets/mse_cases/ |
D | startup_test.js | 182 this.xhr = new XMLHttpRequest(); 187 this.xhr.addEventListener('loadend', this.onLoadEnd.bind(this)); 188 this.xhr.open('GET', this.url); 189 this.xhr.setRequestHeader('Range', 'bytes=' + this.startOffset + '-' + 191 this.xhr.responseType = 'arraybuffer'; 192 this.xhr.send(); 209 if (!this.xhr.response || !this.sourceBuffer) 217 this.sourceBuffer.appendBuffer(this.xhr.response); 219 this.sourceBuffer.append(new Uint8Array(this.xhr.response)); 223 this.xhr = null; [all …]
|
/external/chromium_org/ui/file_manager/image_loader/ |
D | request.js | 307 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); 323 xhr.open('GET', url, true); 325 xhr.setRequestHeader('Authorization', 'Bearer ' + token); [all …]
|
/external/chromium_org/chrome/browser/resources/chromeos/chromevox/chromevox/injected/ |
D | script_installer.js | 46 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/native_client_sdk/src/resources/ |
D | background.js | 27 var xhr = new XMLHttpRequest(); 28 xhr.open('GET', 'run_package_config', true); 29 xhr.onload = function() { 33 xhr.onerror = function() { 37 xhr.send();
|