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

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

Issue 1398293002: Move the wire protocol support into the public API (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Add missed files Created 5 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
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/plugin/protocol/protocol.dart';
11 11
12 /** 12 /**
13 * Instances of the class [ChannelChunkSink] uses a [Converter] to translate 13 * Instances of the class [ChannelChunkSink] uses a [Converter] to translate
14 * chunks. 14 * chunks.
15 */ 15 */
16 class ChannelChunkSink<S, T> extends ChunkedConversionSink<S> { 16 class ChannelChunkSink<S, T> extends ChunkedConversionSink<S> {
17 /** 17 /**
18 * The converter used to translate chunks. 18 * The converter used to translate chunks.
19 */ 19 */
20 final Converter<S, T> converter; 20 final Converter<S, T> converter;
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 /** 143 /**
144 * Send the given [notification] to the client. 144 * Send the given [notification] to the client.
145 */ 145 */
146 void sendNotification(Notification notification); 146 void sendNotification(Notification notification);
147 147
148 /** 148 /**
149 * Send the given [response] to the client. 149 * Send the given [response] to the client.
150 */ 150 */
151 void sendResponse(Response response); 151 void sendResponse(Response response);
152 } 152 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698