diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2016-11-17 15:34:47 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-17 15:34:47 -0600 |
commit | 22aebdf5d41a3509cd6515ccf5edcdf33715a76d (patch) | |
tree | 824af410d147404d0a6dc0908cec85cc71df5bfd /components/script_traits/script_msg.rs | |
parent | b3ad71353bf264770bf0b3a87b32d86928eb09d4 (diff) | |
parent | 913c874cb55fd0fdc9e8f3a4c34624cd015fac8a (diff) | |
download | servo-22aebdf5d41a3509cd6515ccf5edcdf33715a76d.tar.gz servo-22aebdf5d41a3509cd6515ccf5edcdf33715a76d.zip |
Auto merge of #14246 - emilio:servo-url, r=SimonSapin
Urlmageddon
<!-- Please describe your changes on the following line: -->
Still needs a bunch of code in net to be converted in order to get more
advantage of this for images and stuff, but meanwhile this should help quite a
bit with #13778.
Still wanted to get this in.
r? @SimonSapin
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/14246)
<!-- Reviewable:end -->
Diffstat (limited to 'components/script_traits/script_msg.rs')
-rw-r--r-- | components/script_traits/script_msg.rs | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/components/script_traits/script_msg.rs b/components/script_traits/script_msg.rs index 434aa0011e6..61c64bbc750 100644 --- a/components/script_traits/script_msg.rs +++ b/components/script_traits/script_msg.rs @@ -20,9 +20,9 @@ use msg::constellation_msg::{PipelineId, TraversalDirection}; use net_traits::CoreResourceMsg; use net_traits::storage_thread::StorageType; use offscreen_gl_context::{GLContextAttributes, GLLimits}; +use servo_url::ServoUrl; use style_traits::cursor::Cursor; use style_traits::viewport::ViewportConstraints; -use url::Url; /// Messages from the layout to the constellation. #[derive(Deserialize, Serialize)] @@ -62,7 +62,7 @@ pub enum LogEntry { pub enum ScriptMsg { /// Broadcast a storage event to every same-origin pipeline. /// The strings are key, old value and new value. - BroadcastStorageEvent(PipelineId, StorageType, Url, Option<String>, Option<String>, Option<String>), + BroadcastStorageEvent(PipelineId, StorageType, ServoUrl, Option<String>, Option<String>, Option<String>), /// Indicates whether this pipeline is currently running animations. ChangeRunningAnimationsState(PipelineId, AnimationState), /// Requests that a new 2D canvas thread be created. (This is done in the constellation because @@ -95,7 +95,7 @@ pub enum ScriptMsg { /// Gets the length of the joint session history from the constellation. JointSessionHistoryLength(PipelineId, IpcSender<u32>), /// Favicon detected - NewFavicon(Url), + NewFavicon(ServoUrl), /// Status message to be displayed in the chrome, eg. a link URL on mouseover. NodeStatus(Option<String>), /// Notification that this iframe should be removed. @@ -113,7 +113,7 @@ pub enum ScriptMsg { /// Set the document state for a pipeline (used by screenshot / reftests) SetDocumentState(PipelineId, DocumentState), /// Update the pipeline Url, which can change after redirections. - SetFinalUrl(PipelineId, Url), + SetFinalUrl(PipelineId, ServoUrl), /// Check if an alert dialog box should be presented Alert(PipelineId, String, IpcSender<bool>), /// Scroll a page in a window @@ -137,9 +137,9 @@ pub enum ScriptMsg { PipelineExited(PipelineId), /// Send messages from postMessage calls from serviceworker /// to constellation for storing in service worker manager - ForwardDOMMessage(DOMMessage, Url), + ForwardDOMMessage(DOMMessage, ServoUrl), /// Store the data required to activate a service worker for the given scope - RegisterServiceWorker(ScopeThings, Url), + RegisterServiceWorker(ScopeThings, ServoUrl), /// Requests that the compositor shut down. Exit } @@ -148,7 +148,7 @@ pub enum ScriptMsg { #[derive(Deserialize, Serialize, Clone)] pub struct ScopeThings { /// script resource url - pub script_url: Url, + pub script_url: ServoUrl, /// network load origin of the resource pub worker_load_origin: WorkerScriptLoadOrigin, /// base resources required to create worker global scopes @@ -175,11 +175,11 @@ pub struct SWManagerSenders { #[derive(Deserialize, Serialize)] pub enum ServiceWorkerMsg { /// Message to register the service worker - RegisterServiceWorker(ScopeThings, Url), + RegisterServiceWorker(ScopeThings, ServoUrl), /// Timeout message sent by active service workers - Timeout(Url), + Timeout(ServoUrl), /// Message sent by constellation to forward to a running service worker - ForwardDOMMessage(DOMMessage, Url), + ForwardDOMMessage(DOMMessage, ServoUrl), /// Exit the service worker manager Exit, } |