HomeSort by relevance Sort by last modified time
    Searched defs:xhr (Results 1 - 23 of 23) sorted by null

  /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/remoting/webapp/
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...]
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_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...]
  /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/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/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/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/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/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/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);
background.js 448 var xhr = new XMLHttpRequest();
450 xhr.onreadystatechange = function() {
451 if (xhr.readyState == 4) {
452 var manifest = JSON.parse(xhr.responseText);
474 xhr.open('GET', url);
475 xhr.send();
  /external/chromium_org/chrome/browser/resources/chromeos/chromevox/host/chrome/
braille_table.js 40 var xhr = new XMLHttpRequest();
41 xhr.open('GET', url, true);
42 xhr.onreadystatechange = function() {
43 if (xhr.readyState == 4) {
44 if (xhr.status == 200) {
46 JSON.parse(xhr.responseText)));
50 xhr.send();
  /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);
  /external/chromium_org/chrome/browser/resources/cryptotoken/
webrequest.js 60 var xhr = new XMLHttpRequest();
62 xhr.open('GET', appId, true);
63 xhr.onloadend = function() {
64 if (xhr.status != 200) {
65 cb(xhr.status, appId);
68 cb(xhr.status, appId, getOriginsFromJson(xhr.responseText));
70 xhr.send();
  /external/chromium_org/chrome/common/extensions/docs/examples/extensions/gdocs/
chrome_ex_oauth.js 133 * 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);
161 * result. Useful if you need a signed url but don't want to make an XHR
287 var xhr = new XMLHttpRequest();
288 xhr.onreadystatechange = function(data) {
289 callback(xhr, data);
291 xhr.open(method, url, true)
    [all...]
  /external/chromium_org/chrome/common/extensions/docs/examples/extensions/oauth_contacts/
chrome_ex_oauth.js 133 * 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);
161 * result. Useful if you need a signed url but don't want to make an XHR
287 var xhr = new XMLHttpRequest();
288 xhr.onreadystatechange = function(data) {
289 callback(xhr, data);
291 xhr.open(method, url, true)
    [all...]
  /external/chromium_org/ui/file_manager/image_loader/
request.js 197 // Fetch the image via authorized XHR and parse it.
209 // Request raw data via XHR.
303 * @return {AuthorizedXHR} XHR instance.
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')
    [all...]
  /external/chromium_org/chrome/common/extensions/docs/examples/extensions/calendar/javascript/
background.js 329 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.responseXML)
    [all...]
  /external/chromium_org/third_party/WebKit/Source/core/inspector/
InspectorResourceAgent.cpp 467 void InspectorResourceAgent::willLoadXHR(XMLHttpRequest* xhr, ThreadableLoaderClient* client, const AtomicString& method, const KURL& url, bool async, FormData* formData, const HTTPHeaderMap& headers, bool includeCredentials)
469 ASSERT(xhr);
470 RefPtr<XHRReplayData> xhrReplayData = XHRReplayData::create(xhr->executionContext(), method, urlWithoutFragment(url), async, formData, includeCredentials);
698 RefPtrWillBeRawPtr<XMLHttpRequest> xhr = XMLHttpRequest::create(executionContext); local
704 xhr->open(xhrReplayData->method(), xhrReplayData->url(), xhrReplayData->async(), IGNORE_EXCEPTION);
707 xhr->setRequestHeader(it->key, it->value, IGNORE_EXCEPTION);
708 xhr->sendForInspectorXHRReplay(xhrReplayData->formData(), IGNORE_EXCEPTION);
    [all...]
  /external/chromium_org/tools/win/split_link/viz.js/
viz.js 79 var xhr = new XMLHttpRequest();
80 xhr.open('GET', url, false);
81 xhr.send(null);
82 return xhr.responseText;
    [all...]
  /external/chromium_org/v8/tools/profviz/
gnuplot-4.6.3-emscripten.js 137 var xhr = new XMLHttpRequest();
138 xhr.open('GET', url, false);
139 xhr.send(null);
140 return xhr.responseText;
    [all...]
  /cts/suite/cts/deviceTests/browserbench/assets/octane/
pdfjs.js     [all...]

Completed in 1301 milliseconds