-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[shared storage] Hook up to DevTools debugger
Pass a mojom::WorkletGlobalScopeCreationParams to the renderer that contains necessary information to initialize the DevTools connection. For reference: Follow-up CL to add to chrome://inspect page: https://crrev.com/v/4776116 Sibling CL for the //front_end change: https://crrev.com/c/4752777 Screenshots demonstrating it's working end-to-end: https://crbug.com/1469983#c1 Bug: 1469983 Change-Id: Ib4089e76cdb35af92f5347e483efd672636892fc Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4748704 Commit-Queue: Yao Xiao <yaoxia@chromium.org> Reviewed-by: Dominic Farolino <dom@chromium.org> Reviewed-by: Daniel Cheng <dcheng@chromium.org> Cr-Commit-Position: refs/heads/main@{#1188379}
- Loading branch information
1 parent
d84b19a
commit c20779e
Showing
31 changed files
with
378 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
third_party/blink/public/mojom/worker/worklet_global_scope_creation_params.mojom
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// Copyright 2023 The Chromium Authors | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
module blink.mojom; | ||
|
||
import "third_party/blink/public/mojom/devtools/devtools_agent.mojom"; | ||
import "mojo/public/mojom/base/unguessable_token.mojom"; | ||
import "url/mojom/url.mojom"; | ||
|
||
// Interface implemented in the browser for the worklets to forward | ||
// ready-for-inspection notification. | ||
interface WorkletDevToolsHost { | ||
// Indicates that the worklet is ready for inspection, passes a DevToolsAgent | ||
// interface for this worklet and requests a corresponding host. | ||
OnReadyForInspection( | ||
pending_remote<blink.mojom.DevToolsAgent> agent, | ||
pending_receiver<blink.mojom.DevToolsAgentHost> agent_host); | ||
}; | ||
|
||
// Parameters for initializing WorkerOrWorkletGlobalScope. This is suitable for | ||
// worklets starting from a different process. | ||
struct WorkletGlobalScopeCreationParams { | ||
url.mojom.Url script_url; | ||
mojo_base.mojom.UnguessableToken devtools_token; | ||
pending_remote<WorkletDevToolsHost> devtools_host; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.