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

Unified Diff: client/fling/src/dart/fling.dart

Issue 9314025: Remove fling, deftserver (used only by fling), and commons-codec (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 8 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « client/fling/samples/two_servers.dart ('k') | client/fling/src/dart/fling.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/fling/src/dart/fling.dart
===================================================================
--- client/fling/src/dart/fling.dart (revision 3853)
+++ client/fling/src/dart/fling.dart (working copy)
@@ -1,67 +0,0 @@
-// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-class Fling {
- static void goForth() native;
- static void refresh() native;
- static String getInstallPath() native;
-}
-
-
-typedef void HttpRequestHandler(HttpRequest req, HttpResponse res);
-
-
-class HttpResponse {
- HttpResponse._internal() {}
- void finish() native;
- void flush() native;
- void setHeader(String name, String value) native;
- void setStatusCode(int code) native;
- void write(String data) native;
- static HttpResponse _create() native {
- return new HttpResponse._internal();
- }
-}
-
-
-class HttpRequest {
- HttpRequest._internal() {}
- static HttpRequest _create() native {
- return new HttpRequest._internal();
- }
- String get body() native;
- bool get isKeepAlive() native;
- String get method() native;
- String get requestedPath() native;
- String get version() native;
- String get prefix() native;
-}
-
-
-class HttpServer {
- HttpServer() {
- _init();
- }
- void handle(String path, HttpRequestHandler handler) native;
- void listen(int port) native;
- void _init() native;
-}
-
-
-class ClientApp {
- ClientApp(String path, [List<String> staticApps = null]) {
- _init(path, staticApps);
- }
-
- static HttpRequestHandler create(String path, [List<String> staticApps = null]) {
- return new ClientApp(path, staticApps).handler;
- }
-
- HttpRequestHandler get handler() {
- return ((HttpRequest req, HttpResponse res) { return _handle(req, res); });
- }
-
- void _handle(HttpRequest req, HttpResponse res) native;
- void _init(String path, List<String> staticApps) native;
-}
« no previous file with comments | « client/fling/samples/two_servers.dart ('k') | client/fling/src/dart/fling.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698