@@ -11,7 +11,7 @@ namespace {
1111class WorkerStartedRequest : public Request {
1212 public:
1313 WorkerStartedRequest (
14- int id,
14+ uint64_t id,
1515 const std::string& url,
1616 std::shared_ptr<node::inspector::MainThreadHandle> worker_thread,
1717 bool waiting)
@@ -28,7 +28,7 @@ class WorkerStartedRequest : public Request {
2828 return " Worker " + std::to_string (id);
2929 }
3030
31- int id_;
31+ uint64_t id_;
3232 WorkerInfo info_;
3333 bool waiting_;
3434};
@@ -42,20 +42,20 @@ void Report(const std::unique_ptr<WorkerDelegate>& delegate,
4242
4343class WorkerFinishedRequest : public Request {
4444 public:
45- explicit WorkerFinishedRequest (int worker_id) : worker_id_(worker_id) {}
45+ explicit WorkerFinishedRequest (uint64_t worker_id) : worker_id_(worker_id) {}
4646
4747 void Call (MainThreadInterface* thread) override {
4848 thread->inspector_agent ()->GetWorkerManager ()->WorkerFinished (worker_id_);
4949 }
5050
5151 private:
52- int worker_id_;
52+ uint64_t worker_id_;
5353};
5454} // namespace
5555
5656
5757ParentInspectorHandle::ParentInspectorHandle (
58- int id, const std::string& url,
58+ uint64_t id, const std::string& url,
5959 std::shared_ptr<MainThreadHandle> parent_thread, bool wait_for_connect)
6060 : id_(id), url_(url), parent_thread_(parent_thread),
6161 wait_(wait_for_connect) {}
@@ -78,11 +78,11 @@ std::unique_ptr<inspector::InspectorSession> ParentInspectorHandle::Connect(
7878 return parent_thread_->Connect (std::move (delegate), prevent_shutdown);
7979}
8080
81- void WorkerManager::WorkerFinished (int session_id) {
81+ void WorkerManager::WorkerFinished (uint64_t session_id) {
8282 children_.erase (session_id);
8383}
8484
85- void WorkerManager::WorkerStarted (int session_id,
85+ void WorkerManager::WorkerStarted (uint64_t session_id,
8686 const WorkerInfo& info,
8787 bool waiting) {
8888 if (info.worker_thread ->Expired ())
@@ -94,7 +94,7 @@ void WorkerManager::WorkerStarted(int session_id,
9494}
9595
9696std::unique_ptr<ParentInspectorHandle>
97- WorkerManager::NewParentHandle (int thread_id, const std::string& url) {
97+ WorkerManager::NewParentHandle (uint64_t thread_id, const std::string& url) {
9898 bool wait = !delegates_waiting_on_start_.empty ();
9999 return std::make_unique<ParentInspectorHandle>(thread_id, url, thread_, wait);
100100}
0 commit comments