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

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

Issue 9422019: isolates refactor: this change introduces 'dart:isolate' as a library. This is a (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: '' Created 8 years, 10 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
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("http.dart"); 8 #import("http.dart");
8 #import("../../lib/json/json.dart"); 9 #import("../../lib/json/json.dart");
9 10
10 typedef void RequestHandler(HTTPRequest request, HTTPResponse response); 11 typedef void RequestHandler(HTTPRequest request, HTTPResponse response);
11 12
12 class ChatServer extends IsolatedServer { 13 class ChatServer extends IsolatedServer {
13 ChatServer() : super() { 14 ChatServer() : super() {
14 addHandler("/", 15 addHandler("/",
15 (HTTPRequest request, HTTPResponse response) => 16 (HTTPRequest request, HTTPResponse response) =>
16 redirectPageHandler( 17 redirectPageHandler(
(...skipping 722 matching lines...) Expand 10 before | Expand all | Expand 10 after
739 } 740 }
740 } 741 }
741 742
742 int _timeRange; 743 int _timeRange;
743 List<int> _buckets; 744 List<int> _buckets;
744 int _currentBucket; 745 int _currentBucket;
745 int _currentBucketTime; 746 int _currentBucketTime;
746 num _bucketTimeRange; 747 num _bucketTimeRange;
747 int _sum; 748 int _sum;
748 } 749 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698