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

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

Issue 182903005: split client and server channels (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: address comments Created 6 years, 9 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 | 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 analysis.server; 5 library analysis.server;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 import 'package:analysis_server/src/analysis_logger.dart'; 9 import 'package:analysis_server/src/analysis_logger.dart';
10 import 'package:analysis_server/src/channel.dart'; 10 import 'package:analysis_server/src/channel.dart';
(...skipping 17 matching lines...) Expand all
28 28
29 /** 29 /**
30 * The name of the parameter whose value is a source. 30 * The name of the parameter whose value is a source.
31 */ 31 */
32 static const String SOURCE_PARAM = 'source'; 32 static const String SOURCE_PARAM = 'source';
33 33
34 /** 34 /**
35 * The channel from which requests are received and to which responses should 35 * The channel from which requests are received and to which responses should
36 * be sent. 36 * be sent.
37 */ 37 */
38 final CommunicationChannel channel; 38 final ServerCommunicationChannel channel;
39 39
40 /** 40 /**
41 * A flag indicating whether the server is running. 41 * A flag indicating whether the server is running.
42 */ 42 */
43 bool running; 43 bool running;
44 44
45 /** 45 /**
46 * A list of the request handlers used to handle the requests sent to this 46 * A list of the request handlers used to handle the requests sent to this
47 * server. 47 * server.
48 */ 48 */
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 } 168 }
169 } 169 }
170 170
171 /** 171 /**
172 * Send the given [notification] to the client. 172 * Send the given [notification] to the client.
173 */ 173 */
174 void sendNotification(Notification notification) { 174 void sendNotification(Notification notification) {
175 channel.sendNotification(notification); 175 channel.sendNotification(notification);
176 } 176 }
177 } 177 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/lib/src/analysis_manager.dart ('k') | pkg/analysis_server/lib/src/channel.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698