mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
write cookie_jar, hsts_list, auth_cache, and local_data to file if profile_dir option is present
This commit is contained in:
parent
f051028ee8
commit
d4f63cda5f
6 changed files with 150 additions and 13 deletions
|
@ -7,16 +7,20 @@
|
|||
|
||||
use cookie::Cookie;
|
||||
use net_traits::CookieSource;
|
||||
use rustc_serialize::{Encodable, Encoder};
|
||||
use std::cmp::Ordering;
|
||||
use url::Url;
|
||||
|
||||
#[derive(RustcEncodable, Clone)]
|
||||
pub struct CookieStorage {
|
||||
version: u32,
|
||||
cookies: Vec<Cookie>
|
||||
}
|
||||
|
||||
impl CookieStorage {
|
||||
pub fn new() -> CookieStorage {
|
||||
CookieStorage {
|
||||
version: 1,
|
||||
cookies: Vec::new()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue