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

Unified Diff: mojo/common/dart/lib/trace_controller_impl.dart

Issue 1284293003: Rename tracing interfaces. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 4 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 | « mojo/common/dart/BUILD.gn ('k') | mojo/common/dart/lib/trace_provider_impl.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/common/dart/lib/trace_controller_impl.dart
diff --git a/mojo/common/dart/lib/trace_controller_impl.dart b/mojo/common/dart/lib/trace_controller_impl.dart
deleted file mode 100644
index b56b4e25e2ffa08a3ea3a0e173608559e51bfee2..0000000000000000000000000000000000000000
--- a/mojo/common/dart/lib/trace_controller_impl.dart
+++ /dev/null
@@ -1,46 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-import 'dart:async';
-
-import 'package:mojo/application.dart';
-import 'package:mojo/bindings.dart';
-import 'package:mojo/core.dart';
-import 'package:mojo_services/tracing/tracing.mojom.dart';
-
-class TraceControllerImpl implements TraceController {
- TraceControllerStub _stub;
- TraceDataCollectorProxy _collector;
- // TODO(rudominer) We currently ignore _categories.
- String _categories;
-
- TraceControllerImpl.fromEndpoint(MojoMessagePipeEndpoint e) {
- _stub = TraceControllerStub.newFromEndpoint(e);
- _stub.impl = this;
- }
-
- @override
- void startTracing(String categories, TraceDataCollectorProxy collector) {
- assert(_collector == null);
- _collector = collector;
- _categories = categories;
- }
-
- @override
- void stopTracing() {
- assert(_collector != null);
- _collector.close();
- _collector = null;
- }
-
- bool isActive() {
- return _collector != null;
- }
-
- void sendTraceMessage(String message) {
- if (_collector != null) {
- _collector.ptr.dataCollected(message);
- }
- }
-}
« no previous file with comments | « mojo/common/dart/BUILD.gn ('k') | mojo/common/dart/lib/trace_provider_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698