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

Side by Side Diff: pkg/analysis_server/lib/src/channel/channel.dart

Issue 790063002: Instrument communications (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years 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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 channel; 5 library channel;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:convert'; 8 import 'dart:convert';
9 9
10 import 'package:analysis_server/src/protocol.dart'; 10 import 'package:analysis_server/src/protocol.dart';
11 import 'package:analyzer/instrumentation/instrumentation.dart';
11 import 'package:analyzer/src/util/utilities_timing.dart'; 12 import 'package:analyzer/src/util/utilities_timing.dart';
12 13
13 /** 14 /**
14 * Instances of the class [ChannelChunkSink] uses a [Converter] to translate 15 * Instances of the class [ChannelChunkSink] uses a [Converter] to translate
15 * chunks. 16 * chunks.
16 */ 17 */
17 class ChannelChunkSink<S, T> extends ChunkedConversionSink<S> { 18 class ChannelChunkSink<S, T> extends ChunkedConversionSink<S> {
18 /** 19 /**
19 * The converter used to translate chunks. 20 * The converter used to translate chunks.
20 */ 21 */
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 /** 157 /**
157 * Send the given [notification] to the client. 158 * Send the given [notification] to the client.
158 */ 159 */
159 void sendNotification(Notification notification); 160 void sendNotification(Notification notification);
160 161
161 /** 162 /**
162 * Send the given [response] to the client. 163 * Send the given [response] to the client.
163 */ 164 */
164 void sendResponse(Response response); 165 void sendResponse(Response response);
165 } 166 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698