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

Unified Diff: dart/pkg/microlytics/lib/html_channels.dart

Issue 515993003: Minimalistic analytics library used by Dart Server and try.dartlang.org (Closed) Base URL: https://github.com/lukechurch/dart-mircolytics.git@master
Patch Set: Address review comments Created 6 years, 3 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 | « dart/pkg/microlytics/lib/channels.dart ('k') | dart/pkg/microlytics/lib/io_channels.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/pkg/microlytics/lib/html_channels.dart
diff --git a/dart/pkg/http/test/html/utils.dart b/dart/pkg/microlytics/lib/html_channels.dart
similarity index 53%
copy from dart/pkg/http/test/html/utils.dart
copy to dart/pkg/microlytics/lib/html_channels.dart
index 243278ea7fde4aae653b4619f740be6db8f10eae..b3eef43bbac4bb8b43f7a7ae35e66d7a5da530e8 100644
--- a/dart/pkg/http/test/html/utils.dart
+++ b/dart/pkg/microlytics/lib/html_channels.dart
@@ -2,12 +2,13 @@
// 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.
-library http.test.html_utils;
+library microlytics.html_channels;
import 'dart:html';
+import 'channels.dart';
-export '../utils.dart';
-
-/// The test server's echo URL.
-Uri get echoUrl => Uri.parse(
- '${window.location.protocol}//${window.location.host}/echo');
+class HttpRequestChannel extends Channel {
+ void sendData(String data) {
+ HttpRequest.request(ANALYTICS_URL, method: "POST", sendData: data);
+ }
+}
« no previous file with comments | « dart/pkg/microlytics/lib/channels.dart ('k') | dart/pkg/microlytics/lib/io_channels.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698