aboutsummaryrefslogtreecommitdiffstats
path: root/components/devtools_traits/lib.rs
diff options
context:
space:
mode:
authorJosh Matthews <josh@joshmatthews.net>2016-06-03 13:39:38 -0400
committerJosh Matthews <josh@joshmatthews.net>2016-06-06 00:51:36 +0100
commit7bf2e19437ad954bd1d03bb52b86551546ae8ba5 (patch)
tree96d085e4a406776ce766e10b4c236be831e4cf65 /components/devtools_traits/lib.rs
parent1f5b0008ac763bbb2209a70afddb6434d18cff9d (diff)
downloadservo-7bf2e19437ad954bd1d03bb52b86551546ae8ba5.tar.gz
servo-7bf2e19437ad954bd1d03bb52b86551546ae8ba5.zip
Make the net monitor panel in FF's devtools show meaningful output.
0) Advertise support for the network monitor in the initial protocol communication. 1) Only notify the developer tools server about the final request in an HTTP transaction. 2) Add timing information for connecting to the HTTP server and sending the HTTP request. 3) Reduce duplication between various networkEventUpdate structures by creating a helper function that merges two JSON structures together. This also corrects the JSON structure so the devtools client interprets the output correctly. 4) Calculate various header size fields correctly. 5) Remove unnecessary usize->u32 casts by making the appropriate fields usize. 6) Add header values to request and response header messages. 7) Support triggering page reloads via the devtools client.
Diffstat (limited to 'components/devtools_traits/lib.rs')
-rw-r--r--components/devtools_traits/lib.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/components/devtools_traits/lib.rs b/components/devtools_traits/lib.rs
index 381af6016b3..d64ac04b16f 100644
--- a/components/devtools_traits/lib.rs
+++ b/components/devtools_traits/lib.rs
@@ -214,6 +214,8 @@ pub enum DevtoolScriptControlMsg {
/// Request a callback directed at the given actor name from the next animation frame
/// executed in the given pipeline.
RequestAnimationFrame(PipelineId, String),
+ /// Direct the given pipeline to reload the current page.
+ Reload(PipelineId),
}
#[derive(Deserialize, Serialize)]
@@ -292,7 +294,10 @@ pub struct HttpRequest {
pub headers: Headers,
pub body: Option<Vec<u8>>,
pub pipeline_id: PipelineId,
- pub startedDateTime: Tm
+ pub startedDateTime: Tm,
+ pub timeStamp: i64,
+ pub connect_time: u64,
+ pub send_time: u64,
}
#[derive(Debug, PartialEq)]