Migrate protocol/ to import cross-module

Bug: 1006759
Change-Id: Idab6f7a909932a1ad37b9bbb317e1cb3ff567814
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2016750
Reviewed-by: Paul Lewis <[email protected]>
Commit-Queue: Tim van der Lippe <[email protected]>
diff --git a/front_end/protocol/NodeURL.js b/front_end/protocol/NodeURL.js
index 2492b6f..d38d8f7 100644
--- a/front_end/protocol/NodeURL.js
+++ b/front_end/protocol/NodeURL.js
@@ -2,6 +2,10 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
+import * as Common from '../common/common.js';
+
+import * as Host from '../host/host.js';
+
 export class NodeURL {
   /**
    * @param {!Object} object
@@ -14,8 +18,8 @@
      * @param {string} path
      */
     function process(object, path) {
-      if (object.url && NodeURL._isPlatformPath(object.url, Host.isWin())) {
-        object.url = Common.ParsedURL.platformPathToURL(object.url);
+      if (object.url && NodeURL._isPlatformPath(object.url, Host.Platform.isWin())) {
+        object.url = Common.ParsedURL.ParsedURL.platformPathToURL(object.url);
       }
       for (const entry of Object.entries(object)) {
         const key = entry[0];