mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Private browsing - Initial steps
This commit is contained in:
parent
afa5ae4c72
commit
af64a888e6
5 changed files with 36 additions and 0 deletions
|
@ -34,6 +34,7 @@ use hyper::mime::{Attr, Mime};
|
|||
use ipc_channel::ipc::{self, IpcReceiver, IpcSender};
|
||||
use msg::constellation_msg::{PipelineId};
|
||||
use serde::{Deserializer, Serializer};
|
||||
use std::sync::mpsc::Sender;
|
||||
use std::thread;
|
||||
use url::Url;
|
||||
use websocket::header;
|
||||
|
@ -398,3 +399,8 @@ pub fn unwrap_websocket_protocol(wsp: Option<&header::WebSocketProtocol>) -> Opt
|
|||
/// An unique identifier to keep track of each load message in the resource handler
|
||||
#[derive(Clone, PartialEq, Eq, Copy, Hash, Debug, Deserialize, Serialize, HeapSizeOf)]
|
||||
pub struct ResourceId(pub u32);
|
||||
|
||||
pub enum ConstellationMsg {
|
||||
/// Queries whether a pipeline or its ancestors are private
|
||||
IsPrivate(PipelineId, Sender<bool>),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue