HomeSort by relevance Sort by last modified time
    Searched refs:xhr (Results 1 - 25 of 70) sorted by null

1 2 3

  /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/third_party/WebKit/Tools/GardeningServer/scripts/
net.js 40 var xhr = new XMLHttpRequest();
43 xhr.open(method, options.url, async);
44 xhr.onload = function() {
45 if (xhr.status == 200 && options.success)
46 options.success(xhr.responseText);
47 else if (xhr.status != 200 && options.error)
50 xhr.onerror = function() {
56 xhr.setRequestHeader("content-type","application/x-www-form-urlencoded");
57 xhr.send(data);
  /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);
oauth2_api.js 80 /** @param {XMLHttpRequest} xhr */
81 var onResponse = function(xhr) {
82 if (xhr.status == 200) {
87 var tokens = JSON.parse(xhr.responseText);
95 console.error('Failed to refresh token. Status: ' + xhr.status +
96 ' response: ' + xhr.responseText);
97 onError(remoting.OAuth2Api.interpretXhrStatus_(xhr.status));
108 remoting.xhr.post(remoting.OAuth2Api.getOAuth2TokenEndpoint_(),
128 /** @param {XMLHttpRequest} xhr */
129 var onResponse = function(xhr) {
    [all...]
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...]
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/chrome/renderer/resources/extensions/
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/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/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/chrome/common/extensions/docs/js/
bootstrap.js 2 var xhr = new XMLHttpRequest();
4 xhr.onreadystatechange = function() {};
5 xhr.onerror = function() {};
6 xhr.open("GET", "nothing.xml", true);
7 xhr.send(null);
12 xhr.abort();
  /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/chrome/common/extensions/docs/examples/extensions/gdocs/
chrome_ex_oauth.js 135 * xhr {XMLHttpRequest} The XMLHttpRequest object which was used to
154 ChromeExOAuth.sendRequest(method, signedUrl, headers, body, function (xhr) {
155 if (xhr.readyState == 4) {
156 callback(xhr.responseText, xhr);
163 * result. Useful if you need a signed url but don't want to make an XHR
289 var xhr = new XMLHttpRequest();
290 xhr.onreadystatechange = function(data) {
291 callback(xhr, data);
293 xhr.open(method, url, true)
    [all...]
  /external/chromium/chrome/common/extensions/docs/examples/extensions/oauth_contacts/
chrome_ex_oauth.js 135 * xhr {XMLHttpRequest} The XMLHttpRequest object which was used to
154 ChromeExOAuth.sendRequest(method, signedUrl, headers, body, function (xhr) {
155 if (xhr.readyState == 4) {
156 callback(xhr.responseText, xhr);
163 * result. Useful if you need a signed url but don't want to make an XHR
289 var xhr = new XMLHttpRequest();
290 xhr.onreadystatechange = function(data) {
291 callback(xhr, data);
293 xhr.open(method, url, true)
    [all...]
  /external/chromium/chrome/common/extensions/docs/examples/extensions/wave/
chrome_ex_oauth.js 135 * xhr {XMLHttpRequest} The XMLHttpRequest object which was used to
154 ChromeExOAuth.sendRequest(method, signedUrl, headers, body, function (xhr) {
155 if (xhr.readyState == 4) {
156 callback(xhr.responseText, xhr);
163 * result. Useful if you need a signed url but don't want to make an XHR
289 var xhr = new XMLHttpRequest();
290 xhr.onreadystatechange = function(data) {
291 callback(xhr, data);
293 xhr.open(method, url, true)
    [all...]
  /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/content/test/data/media/
media_source_utils.js 43 var xhr = new XMLHttpRequest();
44 xhr.open('GET', mediaFile);
45 xhr.responseType = 'arraybuffer';
46 xhr.addEventListener('load', function(e) {
61 xhr.send();
  /external/chromium_org/tools/perf/page_sets/mse_cases/
startup_test.js 61 bars.push({ label: 'XHR',
160 this.xhr = new XMLHttpRequest();
165 this.xhr.addEventListener('loadend', this.onLoadEnd.bind(this));
166 this.xhr.open('GET', this.url);
167 this.xhr.setRequestHeader('Range', 'bytes=' + this.startOffset + '-' +
169 this.xhr.responseType = 'arraybuffer';
170 this.xhr.send();
187 if (!this.xhr.response || !this.sourceBuffer)
195 this.sourceBuffer.appendBuffer(this.xhr.response);
197 this.sourceBuffer.append(new Uint8Array(this.xhr.response))
    [all...]
  /external/chromium/chrome/browser/resources/picasaweb_uploader/js/
picasa_client.js 165 function xhrCallback(xhr) {
166 if (xhr.status == 200) {
167 this.authToken_ = this.extractResponseField_(xhr.responseText, 'Auth');
171 var response = xhr.responseText;
234 var xhr = new XMLHttpRequest();
235 xhr.onreadystatechange = function() {
236 if (xhr.readyState == 4) {
237 callback(xhr);
240 xhr.open(method, url, true);
244 xhr.setRequestHeader(header, headers[header])
    [all...]
  /external/chromium_org/chrome/third_party/chromevox/closure/
closure_preinit.js 75 window.console.log('Using XHR');
81 var xhr = new XMLHttpRequest();
83 xhr.onreadystatechange = function() {
84 if (xhr.readyState == 4) {
85 var scriptText = xhr.responseText;
94 xhr.open('GET', url, false);
95 xhr.send(null);
  /external/chromium_org/third_party/WebKit/Tools/TestResultServer/static-dashboards/
loader.js 44 var xhr = new XMLHttpRequest();
45 xhr.open('GET', url, true);
47 xhr.overrideMimeType('text/plain; charset=x-user-defined');
48 xhr.onreadystatechange = function(e) {
49 if (xhr.readyState == 4) {
50 if (xhr.status == 200)
51 success(xhr);
53 error(xhr);
56 xhr.send();
138 partial(function(loader, builderName, xhr) {
    [all...]

Completed in 386 milliseconds

1 2 3