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

Side by Side Diff: dart/lib/compiler/samples/leap/leap_server.dart

Issue 11233061: Revert "Parts must start with 'part of'" and "Attempt to fix VM build" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 2 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 import 'dart:io'; 5 #import('dart:io');
6 6
7 class Conversation { 7 class Conversation {
8 HttpRequest request; 8 HttpRequest request;
9 HttpResponse response; 9 HttpResponse response;
10 10
11 static const String LEAP_LANDING_PAGE = 'samples/leap/index.html'; 11 static const String LEAP_LANDING_PAGE = 'samples/leap/index.html';
12 12
13 static String landingPage = LEAP_LANDING_PAGE; 13 static String landingPage = LEAP_LANDING_PAGE;
14 14
15 Conversation(this.request, this.response); 15 Conversation(this.request, this.response);
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 if (arguments.length > 0) { 65 if (arguments.length > 0) {
66 Conversation.landingPage = arguments[0]; 66 Conversation.landingPage = arguments[0];
67 } 67 }
68 var server = new HttpServer(); 68 var server = new HttpServer();
69 var host = '127.0.0.1'; 69 var host = '127.0.0.1';
70 var port = 8080; 70 var port = 8080;
71 server.listen(host, port); 71 server.listen(host, port);
72 print('HTTP server started on http://$host:$port/'); 72 print('HTTP server started on http://$host:$port/');
73 server.defaultRequestHandler = Conversation.onRequest; 73 server.defaultRequestHandler = Conversation.onRequest;
74 } 74 }
OLDNEW
« no previous file with comments | « dart/lib/compiler/samples/leap/leap_script.dart ('k') | dart/lib/compiler/samples/leap/request_cache.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698