@@ -59,7 +59,7 @@ class DevHandler {
59
59
final AssetReader _assetReader;
60
60
final String _hostname;
61
61
final _connectedApps = StreamController <AppConnection >.broadcast ();
62
- final _servicesByAppId = < String , IAppDebugServices > {};
62
+ final _servicesByAppId = < String , AppDebugServices > {};
63
63
final _appConnectionByAppId = < String , AppConnection > {};
64
64
final Stream <BuildResult > buildResults;
65
65
final Future <ChromeConnection > Function () _chromeConnection;
@@ -163,8 +163,8 @@ class DevHandler {
163
163
return successfulSends;
164
164
}
165
165
166
- /// Starts a [DebugService ] for local debugging.
167
- Future <DebugService > _startLocalDebugService (
166
+ /// Starts a [ChromeDebugService ] for local debugging.
167
+ Future <ChromeDebugService > _startLocalDebugService (
168
168
ChromeConnection chromeConnection,
169
169
AppConnection appConnection,
170
170
) async {
@@ -224,7 +224,7 @@ class DevHandler {
224
224
225
225
final webkitDebugger = WebkitDebugger (WipDebugger (tabConnection));
226
226
227
- return DebugService .start (
227
+ return ChromeDebugService .start (
228
228
// We assume the user will connect to the debug service on the same
229
229
// machine. This allows consumers of DWDS to provide a `hostname` for
230
230
// debugging through the Dart Debug Extension without impacting the local
@@ -264,7 +264,7 @@ class DevHandler {
264
264
);
265
265
}
266
266
267
- Future <IAppDebugServices > loadAppServices (AppConnection appConnection) async {
267
+ Future <AppDebugServices > loadAppServices (AppConnection appConnection) async {
268
268
final appId = appConnection.request.appId;
269
269
var appServices = _servicesByAppId[appId];
270
270
if (appServices == null ) {
@@ -281,7 +281,7 @@ class DevHandler {
281
281
}
282
282
283
283
/// Creates WebSocket-based app services for hot reload functionality.
284
- Future <IAppDebugServices > _createWebSocketAppServices (
284
+ Future <AppDebugServices > _createWebSocketAppServices (
285
285
AppConnection appConnection,
286
286
) async {
287
287
final webSocketDebugService = await WebSocketDebugService .start (
@@ -296,7 +296,7 @@ class DevHandler {
296
296
}
297
297
298
298
/// Creates Chrome-based app services for full debugging capabilities.
299
- Future <IAppDebugServices > _createChromeAppServices (
299
+ Future <AppDebugServices > _createChromeAppServices (
300
300
AppConnection appConnection,
301
301
) async {
302
302
final debugService = await _startLocalDebugService (
@@ -308,7 +308,7 @@ class DevHandler {
308
308
309
309
/// Sets up cleanup handling for Chrome-based services.
310
310
void _setupChromeServiceCleanup (
311
- IAppDebugServices appServices,
311
+ AppDebugServices appServices,
312
312
AppConnection appConnection,
313
313
) {
314
314
final chromeProxy = appServices.proxyService;
@@ -468,7 +468,7 @@ class DevHandler {
468
468
return ;
469
469
}
470
470
final debuggerStart = DateTime .now ();
471
- IAppDebugServices appServices;
471
+ AppDebugServices appServices;
472
472
try {
473
473
appServices = await loadAppServices (appConnection);
474
474
} catch (_) {
@@ -733,7 +733,7 @@ class DevHandler {
733
733
734
734
/// Handles reconnection to existing services for web-socket mode.
735
735
Future <void > _reconnectToService (
736
- IAppDebugServices services,
736
+ AppDebugServices services,
737
737
AppConnection ? existingConnection,
738
738
AppConnection newConnection,
739
739
ConnectRequest message,
@@ -846,17 +846,21 @@ class DevHandler {
846
846
);
847
847
}
848
848
849
- Future <IAppDebugServices > _createAppDebugServices (
850
- DebugService debugService,
849
+ Future <AppDebugServices > _createAppDebugServices (
850
+ ChromeDebugService debugService,
851
851
) async {
852
852
final dwdsStats = DwdsStats ();
853
853
Uri ? ddsUri;
854
854
if (_spawnDds) {
855
855
final dds = await debugService.startDartDevelopmentService ();
856
856
ddsUri = dds.wsUri;
857
857
}
858
- final vmClient = await DwdsVmClient .create (debugService, dwdsStats, ddsUri);
859
- final appDebugService = AppDebugServices (
858
+ final vmClient = await ChromeDwdsVmClient .create (
859
+ debugService,
860
+ dwdsStats,
861
+ ddsUri,
862
+ );
863
+ final appDebugService = ChromeAppDebugServices (
860
864
debugService,
861
865
vmClient,
862
866
dwdsStats,
@@ -883,7 +887,7 @@ class DevHandler {
883
887
return appDebugService;
884
888
}
885
889
886
- Future <IAppDebugServices > _createAppDebugServicesWebSocketMode (
890
+ Future <AppDebugServices > _createAppDebugServicesWebSocketMode (
887
891
WebSocketDebugService webSocketDebugService,
888
892
AppConnection appConnection,
889
893
) async {
@@ -918,7 +922,7 @@ class DevHandler {
918
922
}
919
923
}
920
924
921
- /// Starts a [DebugService ] for Dart Debug Extension.
925
+ /// Starts a [ChromeProxyService ] for Dart Debug Extension.
922
926
void _startExtensionDebugService (ExtensionDebugger extensionDebugger) {
923
927
// Waits for a `DevToolsRequest` to be sent from the extension background
924
928
// when the extension is clicked.
@@ -965,7 +969,7 @@ class DevHandler {
965
969
final debuggerStart = DateTime .now ();
966
970
var appServices = _servicesByAppId[appId];
967
971
if (appServices == null ) {
968
- final debugService = await DebugService .start (
972
+ final debugService = await ChromeDebugService .start (
969
973
_hostname,
970
974
extensionDebugger,
971
975
executionContext,
0 commit comments