/external/chromium_org/chrome/common/extensions/docs/examples/extensions/buildbot/ |
utils.js | 11 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.status) [all...] |
/external/chromium_org/remoting/webapp/ |
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(); 244 * Return a "copy" of an XHR object suitable for postMessage. Specifically [all...] |
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);
|
wcs_sandbox_content.js | 103 var xhr = event.data['xhr']; 104 if (xhr === undefined) { 105 console.error('xhrStateChange: missing xhr'); 108 for (var member in xhr) { 109 pendingXhr[member] = xhr[member]; 111 if (xhr.readyState == 4) { 155 * Forward an XHR to the container process to send. This is analogous to XHR's 158 * @param {remoting.XMLHttpRequestProxy} xhr The XHR to send [all...] |
oauth2_api.js | 73 /** @param {XMLHttpRequest} xhr */ 74 var onResponse = function(xhr) { 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_(), 121 /** @param {XMLHttpRequest} xhr */ 122 var onResponse = function(xhr) { [all...] |
xhr.js | 15 /** Namespace for XHR functions */ 17 remoting.xhr = remoting.xhr || {}; 25 remoting.xhr.urlencodeParamHash = function(paramHash) { 38 * Execute an XHR GET asynchronously. 49 * XHR. 52 remoting.xhr.get = function(url, onDone, opt_parameters, opt_headers, 54 return remoting.xhr.doMethod('GET', url, onDone, opt_parameters, 59 * Execute an XHR POST asynchronously. 70 * XHR [all...] |
/external/chromium_org/chrome/common/extensions/docs/examples/howto/contentscript_xhr/ |
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/extensions/renderer/resources/ |
greasemonkey_api.js | 26 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, details.url, eventName, details[eventName]) [all...] |
/external/chromium_org/chrome/browser/resources/cryptotoken/ |
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/native_client_sdk/src/resources/ |
background.js | 19 // Send and XHR to get the URL to load from a configuration file. 27 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/third_party/WebKit/Tools/Scripts/webkitpy/tool/servers/data/rebaselineserver/ |
util.js | 53 var xhr = new XMLHttpRequest(); 54 xhr.open('GET', url); 55 xhr.addEventListener('load', function() { callback(xhr.responseText); }); 56 xhr.send();
|
queue.js | 149 var xhr = new XMLHttpRequest(); 150 xhr.open('POST', 157 log(xhr.responseText, logType); 176 xhr.addEventListener('load', function() { 177 if (xhr.status < 400) { 183 xhr.addEventListener('error', handleFailure); 185 xhr.send();
|
/external/chromium_org/ui/file_manager/video_player/js/cast/ |
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/browser/resources/chromeos/wallpaper_manager/js/ |
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) { 96 if (xhr.response != null) [all...] |
progress_manager.js | 17 * Sets the XMLHttpRequest |xhr| to monitor, and the wallpaper thumbnail grid 18 * item |selectedGridItem| to show a progress bar for. Cancels previous xhr and 20 * Note: this must be called before xhr.send() function. Otherwise, we wont get 22 * @param {XMLHttpRequest} xhr The XMLHttpRequest. 26 ProgressManager.prototype.reset = function(xhr, selectedGridItem) { 30 this.xhr_ = xhr;
|
/external/chromium_org/chrome/browser/resources/chromeos/chromevox/chromevox/background/ |
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/third_party/WebKit/ManualTests/inspector-wrappers/ |
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/chrome/common/extensions/docs/examples/api/permissions/extension-questions/ |
popup.js | 25 var xhr = new XMLHttpRequest(); 26 xhr.open('GET', URL); 27 xhr.addEventListener('load', function(e) { 28 var result = xhr.responseText; 31 xhr.send();
|
/external/chromium_org/media/test/data/eme_player_js/ |
media_source_utils.js | 46 var xhr = new XMLHttpRequest(); 47 xhr.open('GET', mediaFile); 48 xhr.responseType = 'arraybuffer'; 49 xhr.addEventListener('load', function(e) { 64 xhr.send();
|
/external/chromium_org/chrome/browser/resources/chromeos/chromevox/chromevox/injected/ |
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/chrome/browser/resources/chromeos/chromevox/closure/ |
closure_preinit.js | 64 window.console.log('Using XHR'); 70 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/tools/perf/page_sets/mse_cases/ |
startup_test.js | 74 bars.push({ label: 'XHR', 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)) [all...] |
/external/chromium_org/chrome/browser/resources/chromeos/chromevox/host/chrome/ |
braille_table.js | 56 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/third_party/WebKit/Source/core/inspector/ |
AsyncCallStackTracker.cpp | 235 if (XMLHttpRequest* xhr = toXmlHttpRequest(eventTarget)) { 236 willHandleXHREvent(xhr, event); 246 void AsyncCallStackTracker::willLoadXHR(XMLHttpRequest* xhr, const ScriptValue& callFrames) 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) 258 ASSERT(xhr->executionContext()); 260 if (ExecutionContextData* data = m_executionContextDataMap.get(xhr->executionContext())) 261 data->m_xhrCallChains.remove(xhr); [all...] |
/external/chromium_org/chrome/common/extensions/docs/examples/extensions/gmail/ |
background.js | 149 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);
|