Mátyás Mustoha
91b4246e1b
Fix some irregular indentation.
2015-04-22 21:57:58 +02:00
Adenilson Cavalcanti
0f5b5a5cd4
Using FF broken image icon.
...
Got it from:
https://mxr.mozilla.org/mozilla-central/source/layout/generic/broken-image.png
2015-04-21 16:04:28 -07:00
Marcus Klaas
c1f25bbfe4
Replace usage of ResponseSenders by LoadConsumer
2015-04-19 13:26:56 +02:00
Josh Matthews
7b3043a59b
Warning fixes.
2015-04-16 11:46:42 -04:00
Josh Matthews
1b9684634f
Document async networking interfaces.
2015-04-16 11:46:41 -04:00
Josh Matthews
7517aac9e9
Completely abstract sending responses over channels vs. listeners.
2015-04-16 11:46:39 -04:00
Josh Matthews
1644436557
Start switching net/ to use abstractions over channels to allow introducing non-channel communication in the future.
2015-04-16 11:46:39 -04:00
Bogdan Cuza
ce4b8a0af7
Reduce duplication
2015-04-14 22:03:22 +03:00
Bogdan Cuza
19ffab82f1
Make Metadata use ContentType
2015-04-14 22:03:21 +03:00
bors-servo
4997d3a112
Auto merge of #5677 - frewsxcv:https, r=Ms2ger
...
Extracted this out of #5649
This commit was created with the following commands:
```
find . -iname "*.webidl" -type f -print0 | xargs -0 sed -i '' 's/http:\(.*\)whatwg.org/https:\1whatwg.org/g'
```
```
find . -iname "*.rs" -type f -print0 | xargs -0 sed -i '' 's/http:\(.*\)whatwg.org/https:\1whatwg.org/g'
```
2015-04-14 02:57:41 -05:00
bors-servo
b7f59a3646
Auto merge of #5642 - aneeshusa:arc-box-image-to-arc-image, r=Ms2ger
...
Image used to be a trait, but no longer is, so boxing it is no longer
necessary. Fixes #5639 .
2015-04-14 01:57:07 -05:00
Corey Farwell
5eaa922045
Update WHATWG links to use HTTPS
...
Extracted this out of #5649
This commit was created with the following commands:
```
find . -iname "*.webidl" -type f -print0 | xargs -0 sed -i '' 's/http:\(.*\)whatwg.org/https:\1whatwg.org/g'
```
```
find . -iname "*.rs" -type f -print0 | xargs -0 sed -i '' 's/http:\(.*\)whatwg.org/https:\1whatwg.org/g'
```
2015-04-13 21:34:27 -07:00
Aneesh Agrawal
395e8a5981
Make minor syntax simplification to address review.
2015-04-13 17:23:03 -04:00
Edward Cho
d0469dfaf3
move mime classifier unit tests into unit test crate
2015-04-13 15:40:30 -05:00
bors-servo
9754c4c255
Auto merge of #5576 - jagtalon:jag/slashdot-storage, r=jdm
...
Use `and_then` and remove `unwrap` instead of using a `map` as described in https://github.com/servo/servo/issues/5548#issuecomment-90254644 .
Fixes #5548
2015-04-11 18:13:16 -05:00
Aneesh Agrawal
5b593a3d32
Switch Arc<Box<Image>> to Arc<Image> for perf boost.
...
Image used to be a trait, but no longer is, so boxing it is no longer
necessary.
2015-04-10 18:59:02 -04:00
bors-servo
9677eb292d
Auto merge of #5631 - Ms2ger:virtual-file, r=jdm
2015-04-10 08:14:16 -05:00
Aneesh Agrawal
a1d7456307
Remove compositor dependency on net crate.
...
Move the ImageCacheTaskClient trait and impl to net_traits. Fixes #5551 .
2015-04-10 06:11:31 -04:00
Ms2ger
6881776d81
Avoid virtual calls when loading files.
2015-04-10 11:54:44 +02:00
Mátyás Mustoha
c842e499b3
Fix int-related warnings in net/mime_classifier.
2015-04-08 12:14:36 +02:00
bors-servo
cad27a9d25
Auto merge of #5568 - jdm:net_uint, r=jdm
2015-04-08 01:47:56 -05:00
Simon Sapin
e27c967f81
Move net::resource_task unit tests into the unit_tests crate.
2015-04-08 01:07:51 +02:00
Simon Sapin
d88770e09f
Move net::{data_loader,image_cache_task} unit tests into the unit_tests crate.
2015-04-08 01:07:50 +02:00
Simon Sapin
691222696e
Move net::cookie unit tests into the unit_tests crate.
2015-04-07 16:37:12 -04:00
Josh Matthews
1757afef27
Remove int_uint from net.
2015-04-07 16:13:37 -04:00
Josh Matthews
9674feebba
Cleanup tabs.
2015-04-07 13:25:17 -04:00
Josh Matthews
4a78da1158
Fix unit tests.
2015-04-07 13:25:16 -04:00
Josh Matthews
23ae940abf
Enable MIME sniffing for HTTP loads.
2015-04-07 13:25:15 -04:00
Josh Matthews
a3201bc1ac
Enable optional mime sniffing, and integrate it with the file loader.
2015-04-06 20:19:30 -04:00
Jag Talon
f9817da0c4
net/storage_task.rs: Fix remove_item
...
Use `and_then` and remove `unwrap` instead of using a `map` as described in https://github.com/servo/servo/issues/5548#issuecomment-90254644 .
2015-04-06 19:47:20 -04:00
Josh Matthews
2d730f2ae9
Remove the sniffer task.
2015-04-06 19:31:53 -04:00
Nathan Climer
44930b0fb0
Implement MIME sniffing.
2015-04-06 19:01:59 -04:00
Gilles Leblanc
ba36a108c1
Split out shared networking code into net_traits crate
...
Fixes #4476
2015-04-03 13:38:10 -04:00
Matt McCoy
818f1c5748
Closes #2587 Adding HTTP compression capability
2015-04-01 21:18:47 -04:00
snf
1cc5bd4287
broadcasting storage changes events
2015-03-31 21:51:41 +01:00
Adenilson Cavalcanti
cdebb3ca54
Load a placeholder when a url to an image is broken.
...
I decided to use the old Netscape broken image link icon (later we may
replace the image asset for something more trendier). The ref test will
expect that a failed load should display the rippy image.
ImageCacheTask users can define if a placeholder image should be loaded
at start up or not. This enables both the new behavior (e.g. always
return an image even for broken urls) as also the previous one.
2015-03-30 10:02:54 -07:00
Corey Farwell
679dd679a7
Improve and fix default_path cookie algorithm
...
* Previously, the function returned an owned String, which is not
necessary, so now it returns a slice
* Steps have now been documented/labeled
* The last step of the algorithm was incorrect; it would only slice the
path if the "/" was the last character, which is not what the spec
says. The spec says to slice up until (but not including) the last
"/". Also added a regression test for this.
2015-03-26 23:44:15 -04:00
Ms2ger
578a909864
Stop using old_io in net tests.
2015-03-26 17:43:13 +01:00
Ms2ger
9aa2696641
Stop using old_path in net.
2015-03-26 08:59:33 +01:00
Nicholas Nethercote
ce36e574f4
Rename lots of profiling-related things.
...
------------------------------------------------------------------------
BEFORE AFTER
------------------------------------------------------------------------
util::memory util::mem
- heap_size_of - heap_size_of (unchanged)
- SizeOf - HeapSizeOf
- size_of_excluding_self - heap_size_of_children
prof::mem prof::mem
- MemoryProfilerChan - ProfilerChan
- MemoryReport - Report
- MemoryReportsChan - ReportsChan
- MemoryReporter - Reporter
- MemoryProfilerMsg - ProfilerMsg
- {R,UnR}egisterMemoryReporter - {R,UnR}egisterReporter
- MemoryProfiler - Prof
- ReportsForest - ReportsForest (unchanged)
- ReportsTree - ReportsTree (unchanged)
- SystemMemoryReporter - SystemReporter
prof::time prof::time
- TimeProfilerChan - ProfilerChan
- TimerMetadata - TimerMetadata (unchanged)
- Formatable - Formattable [spelling!]
- TimeProfilerMsg - ProfilerMsg
- TimeProfilerCategory - ProfilerCategory
- TimeProfilerBuckets - ProfilerBuckets
- TimeProfiler - Profiler
- TimerMetadataFrameType - TimerMetadataFrameType (unchanged)
- TimerMetadataReflowType - TimerMetadataReflowType (unchanged)
- ProfilerMetadata - ProfilerMetadata (unchanged)
In a few places both prof::time and prof::mem are used, and so
module-qualification is needed to avoid overlap, e.g. time::Profiler and
mem::Profiler. Likewise with std::mem and prof::mem. This is not a big
deal.
2015-03-25 16:00:23 -07:00
Nicholas Nethercote
52447ccd9b
Move profiler code from util
into a new crate profile
.
...
- Most of util::memory has been moved into profile::mem, though the
`SizeOf` trait and related things remain in util::memory. The
`SystemMemoryReporter` code is now in a submodule
profile::mem::system_reporter.
- util::time has been moved entirely into profile::time.
2015-03-24 02:09:31 -07:00
bors-servo
be68ea0d81
auto merge of #5328 : aweinstock314/servo/master, r=jdm
2015-03-23 20:36:47 -06:00
Avi Weinstock
cf0657a403
Fixed some deprecation errors in components/net.
2015-03-23 18:28:44 -04:00
bors-servo
0c3615ced1
auto merge of #5312 : frewsxcv/servo/cleanup-view-source, r=jdm
...
Fixes #5304
2015-03-23 15:42:48 -06:00
Ms2ger
2755ed6c58
Remove allow(missing_copy_implementations) attributes.
...
This is now the default.
2015-03-23 10:49:44 +01:00
Corey Farwell
2da17b3ce5
Cleanup 'view-source:' conditional
...
Fixes #5304
2015-03-21 22:04:58 -04:00
Ms2ger
ba87666cdb
Update some code that's feature-gated under core.
2015-03-21 18:44:39 +01:00
Ms2ger
32d1e31c90
Replace most usage of std::old_io::File.
2015-03-20 23:47:29 +01:00
Ms2ger
2cde68f13f
Cleanup resource_task's global_init().
2015-03-20 21:07:16 +01:00
Simon Sapin
2f6951af0b
Fix some warnings in net.
2015-03-18 21:56:31 +01:00