Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(249)

Side by Side Diff: runtime/bin/vmstats/server_access.dart

Issue 12377099: Added support for "bin-ified" vmstats web app source files (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/bin/vmstats/packages/browser/dart.js ('k') | runtime/bin/vmstats/vmstats.css » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 part of vmstats;
2
3 HttpRequest sendRequest(String url, var onSuccess, var onError) {
4 HttpRequest request = new HttpRequest();
sethladd1 2013/03/05 15:59:37 have you seen http://api.dartlang.org/docs/release
Tom Ball 2013/03/05 18:53:31 Looks very useful, but I can't find any way to get
5 request.onReadyStateChange.listen((HttpRequestProgressEvent event) {
6 if (request.readyState != 4) return;
7 if (request.status == 200) {
8 onSuccess(JSON.parse(request.responseText));
9 } else {
10 onError(request.status);
11 }
12 });
13 request.open("GET", url, true);
14 request.setRequestHeader("Content-Type", "text/plain;charset=UTF-8");
15 request.send();
16 return request;
17 }
18
19
OLDNEW
« no previous file with comments | « runtime/bin/vmstats/packages/browser/dart.js ('k') | runtime/bin/vmstats/vmstats.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698