@@ -57,14 +57,14 @@ class ParentInspectorHandle {
5757 public: 
5858  ParentInspectorHandle (
5959      uint64_t  id,
60-       const   std::string&  url,
60+       std::string_view  url,
6161      std::shared_ptr<MainThreadHandle> parent_thread,
6262      bool  wait_for_connect,
63-       const   std::string&  name,
63+       std::string_view  name,
6464      std::shared_ptr<NetworkResourceManager> network_resource_manager);
6565  ~ParentInspectorHandle ();
6666  std::unique_ptr<ParentInspectorHandle> NewParentInspectorHandle (
67-       uint64_t  thread_id, const   std::string&  url, const   std::string&  name) {
67+       uint64_t  thread_id, std::string_view  url, std::string_view  name) {
6868    return  std::make_unique<ParentInspectorHandle>(
6969        thread_id, url, parent_thread_, wait_, name, network_resource_manager_);
7070  }
@@ -97,8 +97,8 @@ class WorkerManager : public std::enable_shared_from_this<WorkerManager> {
9797
9898  std::unique_ptr<ParentInspectorHandle> NewParentHandle (
9999      uint64_t  thread_id,
100-       const   std::string&  url,
101-       const   std::string&  name,
100+       std::string_view  url,
101+       std::string_view  name,
102102      std::shared_ptr<NetworkResourceManager> network_resource_manager);
103103  void  WorkerStarted (uint64_t  session_id, const  WorkerInfo& info, bool  waiting);
104104  void  WorkerFinished (uint64_t  session_id);
0 commit comments