@@ -59,7 +59,7 @@ class DevHandler {
5959 final AssetReader _assetReader;
6060 final String _hostname;
6161 final _connectedApps = StreamController <AppConnection >.broadcast ();
62- final _servicesByAppId = < String , IAppDebugServices > {};
62+ final _servicesByAppId = < String , AppDebugServices > {};
6363 final _appConnectionByAppId = < String , AppConnection > {};
6464 final Stream <BuildResult > buildResults;
6565 final Future <ChromeConnection > Function () _chromeConnection;
@@ -163,8 +163,8 @@ class DevHandler {
163163 return successfulSends;
164164 }
165165
166- /// Starts a [DebugService ] for local debugging.
167- Future <DebugService > _startLocalDebugService (
166+ /// Starts a [ChromeDebugService ] for local debugging.
167+ Future <ChromeDebugService > _startLocalDebugService (
168168 ChromeConnection chromeConnection,
169169 AppConnection appConnection,
170170 ) async {
@@ -224,7 +224,7 @@ class DevHandler {
224224
225225 final webkitDebugger = WebkitDebugger (WipDebugger (tabConnection));
226226
227- return DebugService .start (
227+ return ChromeDebugService .start (
228228 // We assume the user will connect to the debug service on the same
229229 // machine. This allows consumers of DWDS to provide a `hostname` for
230230 // debugging through the Dart Debug Extension without impacting the local
@@ -264,7 +264,7 @@ class DevHandler {
264264 );
265265 }
266266
267- Future <IAppDebugServices > loadAppServices (AppConnection appConnection) async {
267+ Future <AppDebugServices > loadAppServices (AppConnection appConnection) async {
268268 final appId = appConnection.request.appId;
269269 var appServices = _servicesByAppId[appId];
270270 if (appServices == null ) {
@@ -281,7 +281,7 @@ class DevHandler {
281281 }
282282
283283 /// Creates WebSocket-based app services for hot reload functionality.
284- Future <IAppDebugServices > _createWebSocketAppServices (
284+ Future <AppDebugServices > _createWebSocketAppServices (
285285 AppConnection appConnection,
286286 ) async {
287287 final webSocketDebugService = await WebSocketDebugService .start (
@@ -296,7 +296,7 @@ class DevHandler {
296296 }
297297
298298 /// Creates Chrome-based app services for full debugging capabilities.
299- Future <IAppDebugServices > _createChromeAppServices (
299+ Future <AppDebugServices > _createChromeAppServices (
300300 AppConnection appConnection,
301301 ) async {
302302 final debugService = await _startLocalDebugService (
@@ -308,7 +308,7 @@ class DevHandler {
308308
309309 /// Sets up cleanup handling for Chrome-based services.
310310 void _setupChromeServiceCleanup (
311- IAppDebugServices appServices,
311+ AppDebugServices appServices,
312312 AppConnection appConnection,
313313 ) {
314314 final chromeProxy = appServices.proxyService;
@@ -468,7 +468,7 @@ class DevHandler {
468468 return ;
469469 }
470470 final debuggerStart = DateTime .now ();
471- IAppDebugServices appServices;
471+ AppDebugServices appServices;
472472 try {
473473 appServices = await loadAppServices (appConnection);
474474 } catch (_) {
@@ -733,7 +733,7 @@ class DevHandler {
733733
734734 /// Handles reconnection to existing services for web-socket mode.
735735 Future <void > _reconnectToService (
736- IAppDebugServices services,
736+ AppDebugServices services,
737737 AppConnection ? existingConnection,
738738 AppConnection newConnection,
739739 ConnectRequest message,
@@ -846,17 +846,21 @@ class DevHandler {
846846 );
847847 }
848848
849- Future <IAppDebugServices > _createAppDebugServices (
850- DebugService debugService,
849+ Future <AppDebugServices > _createAppDebugServices (
850+ ChromeDebugService debugService,
851851 ) async {
852852 final dwdsStats = DwdsStats ();
853853 Uri ? ddsUri;
854854 if (_spawnDds) {
855855 final dds = await debugService.startDartDevelopmentService ();
856856 ddsUri = dds.wsUri;
857857 }
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 (
860864 debugService,
861865 vmClient,
862866 dwdsStats,
@@ -883,7 +887,7 @@ class DevHandler {
883887 return appDebugService;
884888 }
885889
886- Future <IAppDebugServices > _createAppDebugServicesWebSocketMode (
890+ Future <AppDebugServices > _createAppDebugServicesWebSocketMode (
887891 WebSocketDebugService webSocketDebugService,
888892 AppConnection appConnection,
889893 ) async {
@@ -918,7 +922,7 @@ class DevHandler {
918922 }
919923 }
920924
921- /// Starts a [DebugService ] for Dart Debug Extension.
925+ /// Starts a [ChromeProxyService ] for Dart Debug Extension.
922926 void _startExtensionDebugService (ExtensionDebugger extensionDebugger) {
923927 // Waits for a `DevToolsRequest` to be sent from the extension background
924928 // when the extension is clicked.
@@ -965,7 +969,7 @@ class DevHandler {
965969 final debuggerStart = DateTime .now ();
966970 var appServices = _servicesByAppId[appId];
967971 if (appServices == null ) {
968- final debugService = await DebugService .start (
972+ final debugService = await ChromeDebugService .start (
969973 _hostname,
970974 extensionDebugger,
971975 executionContext,
0 commit comments