servo/components/net
bors-servo 7a582b4bf9 Auto merge of #10800 - DDEFISHER:read_profile_dir_from_file, r=frewsxcv
read cookie_jar, hsts_list, auth_cache, and local_data from file if profile_dir option is present

Last step in Persistent sessions student project

"check for the presence of the profile directory command-line option in the ResourceThread constructor and look for files that will contain serialized versions of the previous steps. If they exist, populate the appropriate fields with deserialized versions of the file contents."

Also populated local_data in StorageManager constructor

I am not sure if the handling of decoding and encoding the Option Tm type was done in the cleanest way here.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10800)
<!-- Reviewable:end -->
2016-04-25 18:10:40 -07:00
..
fetch Upgrade to rust-url 1.0 and hyper 0.9 2016-04-23 20:27:58 +02:00
about_loader.rs Upgrade to rust-url 1.0 and hyper 0.9 2016-04-23 20:27:58 +02:00
Cargo.toml read cookie_jar, hsts_list, auth_cache, and local_data from file if profile_dir option is present 2016-04-25 19:39:40 -04:00
chrome_loader.rs More chrome URL hardenning and tests. 2016-04-23 20:28:03 +02:00
cookie.rs read cookie_jar, hsts_list, auth_cache, and local_data from file if profile_dir option is present 2016-04-25 19:39:40 -04:00
cookie_storage.rs read cookie_jar, hsts_list, auth_cache, and local_data from file if profile_dir option is present 2016-04-25 19:39:40 -04:00
data_loader.rs Upgrade to rust-url 1.0 and hyper 0.9 2016-04-23 20:27:58 +02:00
file_loader.rs Add referrer policy pass-through and referrer header logic 2016-04-25 16:41:06 -04:00
hsts.rs Upgrade to rust-url 1.0 and hyper 0.9 2016-04-23 20:27:58 +02:00
http_loader.rs Auto merge of #10785 - frewsxcv:loaderrortype-nostring, r=jdm 2016-04-25 14:37:44 -07:00
image_cache_thread.rs Add referrer policy pass-through and referrer header logic 2016-04-25 16:41:06 -04:00
lib.rs Upgrade to rust-url 1.0 and hyper 0.9 2016-04-23 20:27:58 +02:00
mime_classifier.rs Use constructor pattern for ApacheFlag enum. 2016-04-15 18:10:33 -04:00
pub_domains.rs Fix existing syntactics nits. 2015-08-16 10:30:43 -04:00
resource_thread.rs read cookie_jar, hsts_list, auth_cache, and local_data from file if profile_dir option is present 2016-04-25 19:39:40 -04:00
storage_thread.rs read cookie_jar, hsts_list, auth_cache, and local_data from file if profile_dir option is present 2016-04-25 19:39:40 -04:00
websocket_loader.rs Upgrade to rust-url 1.0 and hyper 0.9 2016-04-23 20:27:58 +02:00