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

Side by Side Diff: samples/chat/chat_server_lib.dart

Issue 9488008: Include HTTP library in the standalone VM (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Minor update Created 8 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/io_sources.gypi ('k') | samples/chat/http.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #library("chat_server"); 5 #library("chat_server");
6 #import("dart:io"); 6 #import("dart:io");
7 #import("dart:isolate");
7 #import("dart:json"); 8 #import("dart:json");
8 #import("dart:isolate");
9 #import("http.dart");
10 9
11 typedef void RequestHandler(HttpRequest request, HttpResponse response); 10 typedef void RequestHandler(HttpRequest request, HttpResponse response);
12 11
13 class ChatServer extends IsolatedServer { 12 class ChatServer extends IsolatedServer {
14 ChatServer() : super() { 13 ChatServer() : super() {
15 addHandler("/", 14 addHandler("/",
16 (HttpRequest request, HttpResponse response) => 15 (HttpRequest request, HttpResponse response) =>
17 redirectPageHandler( 16 redirectPageHandler(
18 request, response, "dart_client/index.html")); 17 request, response, "dart_client/index.html"));
19 addHandler("/js_client/index.html", 18 addHandler("/js_client/index.html",
(...skipping 690 matching lines...) Expand 10 before | Expand all | Expand 10 after
710 } 709 }
711 } 710 }
712 711
713 int _timeRange; 712 int _timeRange;
714 List<int> _buckets; 713 List<int> _buckets;
715 int _currentBucket; 714 int _currentBucket;
716 int _currentBucketTime; 715 int _currentBucketTime;
717 num _bucketTimeRange; 716 num _bucketTimeRange;
718 int _sum; 717 int _sum;
719 } 718 }
OLDNEW
« no previous file with comments | « runtime/bin/io_sources.gypi ('k') | samples/chat/http.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698