aboutsummaryrefslogtreecommitdiffstats
path: root/components/devtools/lib.rs
diff options
context:
space:
mode:
authoreri <eri@inventati.org>2024-06-21 18:06:55 +0200
committerGitHub <noreply@github.com>2024-06-21 16:06:55 +0000
commit5eb88134488872f4ef1e5f0fcccf18bef47d83cf (patch)
treeacdd169d5d1f0e4278a1fb1e64141fb82d385439 /components/devtools/lib.rs
parent26c585a0c5d6e459e8f02517cb1231a1b7a9345f (diff)
downloadservo-5eb88134488872f4ef1e5f0fcccf18bef47d83cf.tar.gz
servo-5eb88134488872f4ef1e5f0fcccf18bef47d83cf.zip
DevTools: Implement watcher actor (#32509)
* feat: base for watcher * feat: some more watcher tests * feat: implement getWatcher * refactor: clean up getWatcher * feat: implement watchTargets * feat: implement watchResources * feat: very messy watchTargets fix * refactor: clean browsing context * feat: target configuration * refactor: start cleanup * refactor: more doc coments * refactor: clean browsing context
Diffstat (limited to 'components/devtools/lib.rs')
-rw-r--r--components/devtools/lib.rs11
1 files changed, 9 insertions, 2 deletions
diff --git a/components/devtools/lib.rs b/components/devtools/lib.rs
index 1dbc4cd1b76..3475e10c258 100644
--- a/components/devtools/lib.rs
+++ b/components/devtools/lib.rs
@@ -5,7 +5,7 @@
//! An actor-based remote devtools server implementation. Only tested with
//! nightly Firefox versions at time of writing. Largely based on
//! reverse-engineering of Firefox chrome devtool logs and reading of
-//! [code](http://mxr.mozilla.org/mozilla-central/source/toolkit/devtools/server/).
+//! [code](https://searchfox.org/mozilla-central/source/devtools/server).
#![crate_name = "devtools"]
#![crate_type = "rlib"]
@@ -48,9 +48,10 @@ use crate::actors::worker::{WorkerActor, WorkerType};
use crate::protocol::JsonPacketStream;
mod actor;
-/// Corresponds to <http://mxr.mozilla.org/mozilla-central/source/toolkit/devtools/server/actors/>
+/// <https://searchfox.org/mozilla-central/source/devtools/server/actors>
mod actors {
pub mod browsing_context;
+ pub mod configuration;
pub mod console;
pub mod device;
pub mod emulation;
@@ -68,6 +69,7 @@ mod actors {
pub mod tab;
pub mod thread;
pub mod timeline;
+ pub mod watcher;
pub mod worker;
}
mod protocol;
@@ -113,6 +115,11 @@ struct ResponseStartUpdateMsg {
response: ResponseStartMsg,
}
+#[derive(Serialize)]
+pub struct EmptyReplyMsg {
+ pub from: String,
+}
+
/// Spin up a devtools server that listens for connections on the specified port.
pub fn start_server(port: u16, embedder: EmbedderProxy) -> Sender<DevtoolsControlMsg> {
let (sender, receiver) = unbounded();