Commit Graph
537 Commits
Author SHA1 Message Date
Ben Kelly 63935868ba Bug 1402586 Hold the worker alive while Cache API completes a lazy body open IPC operation. r=asuth 2017-09-25 10:45:58 -07:00
Tom Tung 99e9b28351 Bug 1400282 - Add a test to verify cache's operations won't run out of fd. r=bkelly
MozReview-Commit-ID: G8ztQs1mB6l
2017-09-13 17:24:13 +08:00
Ben Kelly fad54f15b0 Bug 1397128 P9 Make content script usage of Cache API use lazy body loading. r=tt 2017-09-15 12:25:41 -07:00
Ben Kelly 05f0a13264 Bug 1397128 P8 Track which storage "namespace" each Cache object is associated with. r=tt 2017-09-15 12:25:41 -07:00
Ben Kelly 731fb43e27 Bug 1397128 P7 Add an OpenMode enumeration to control if individual Cache API requests eagerly or lazily opens bodies. r=tt 2017-09-15 12:25:41 -07:00
Ben Kelly da3394c3f8 Bug 1397128 P6 Allow ReadStream to be created with an initially nullptr base stream. r=tt 2017-09-15 12:25:41 -07:00
Ben Kelly ffbfd8a7e4 Bug 1397128 P5 Add ReadStream::Inner::EnsureStream() to synchronously open stream when Availabe/Read/ReadSegments is called. r=tt 2017-09-15 12:25:41 -07:00
Ben Kelly 0433bb3c73 Bug 1397128 P4 Add a PCacheStreamControl message to open a stream based on its body ID. r=tt 2017-09-15 12:25:41 -07:00
Ben Kelly 4ea5fdca58 Bug 1397128 P3 Add an OpenStreamAction class to open the file stream on the io thread. r=tt 2017-09-15 12:25:40 -07:00
Ben Kelly ae6c3e29a7 Bug 1397128 P2 Refactor StreamList::Add() to use move constructors and accept a nullptr stream. r=tt 2017-09-15 12:25:40 -07:00
Ben Kelly 850edb23de Bug 1397128 P1 Make CacheReadStream ipdl struct contain an OptionalIPCStream. r=tt 2017-09-15 12:25:40 -07:00
Sebastian Hengst 12f8a5cd83 Backed out changeset 3f1e68da9634 (bug 1397128) for bustage at mozilla/dom/cache/CacheStorage.h:108. r=backout on a CLOSED TREE 2017-09-15 18:29:41 +02:00
Sebastian Hengst e53b398321 Backed out changeset 15edfaab92f6 (bug 1397128) 2017-09-15 18:28:54 +02:00
Sebastian Hengst f3f1393bc1 Backed out changeset bfbcc07fcb4b (bug 1397128) 2017-09-15 18:28:48 +02:00
Sebastian Hengst 3a6107fab2 Backed out changeset 389e9f39d6b8 (bug 1397128) 2017-09-15 18:28:43 +02:00
Sebastian Hengst 750a146e0c Backed out changeset 5988716b66bb (bug 1397128) 2017-09-15 18:28:37 +02:00
Sebastian Hengst b0b9459efa Backed out changeset bb52082d2d3c (bug 1397128) 2017-09-15 18:28:32 +02:00
Sebastian Hengst 69014e361f Backed out changeset b28740aedf34 (bug 1397128) 2017-09-15 18:28:27 +02:00
Sebastian Hengst 3733e4268a Backed out changeset e37614cb41e1 (bug 1397128) 2017-09-15 18:28:21 +02:00
Sebastian Hengst b8ddf4424e Backed out changeset b5ea37e08220 (bug 1397128) 2017-09-15 18:28:16 +02:00
Ben Kelly 0190a07ecc Bug 1397128 P9 Make content script usage of Cache API use lazy body loading. r=tt 2017-09-15 09:11:23 -07:00
Ben Kelly ba5947abb0 Bug 1397128 P8 Track which storage "namespace" each Cache object is associated with. r=tt 2017-09-15 09:11:23 -07:00
Ben Kelly 1c24df65ec Bug 1397128 P7 Add an OpenMode enumeration to control if individual Cache API requests eagerly or lazily opens bodies. r=tt 2017-09-15 09:11:23 -07:00
Ben Kelly 1f6cbc7aa5 Bug 1397128 P6 Allow ReadStream to be created with an initially nullptr base stream. r=tt 2017-09-15 09:11:23 -07:00
Ben Kelly 10b7fd58bf Bug 1397128 P5 Add ReadStream::Inner::EnsureStream() to synchronously open stream when Availabe/Read/ReadSegments is called. r=tt 2017-09-15 09:11:23 -07:00
Ben Kelly 23ca0c66ef Bug 1397128 P4 Add a PCacheStreamControl message to open a stream based on its body ID. r=tt 2017-09-15 09:11:22 -07:00
Ben Kelly be4e5b9e52 Bug 1397128 P3 Add an OpenStreamAction class to open the file stream on the io thread. r=tt 2017-09-15 09:11:22 -07:00
Ben Kelly b5e77d3c84 Bug 1397128 P2 Refactor StreamList::Add() to use move constructors and accept a nullptr stream. r=tt 2017-09-15 09:11:22 -07:00
Ben Kelly 39349b978a Bug 1397128 P1 Make CacheReadStream ipdl struct contain an OptionalIPCStream. r=tt 2017-09-15 09:11:22 -07:00
Tom Tung e9a40920ee Bug 1398231 - P2: Add a test to verify cache work when there is a temporary padding file. r=bkelly
MozReview-Commit-ID: JhPuL7AmteM
2017-09-09 15:34:59 +08:00
Tom Tung 88f07825ac Bug 1398231 - P1: Make file exist check before assertion. r=bkelly
MozReview-Commit-ID: 8t7P97Ttrv1
2017-09-09 09:30:05 +08:00
Tom Tung 312d8ae8be Bug 1398649: Capture the result from MigrateFrom25To26(). r=bkelly
MozReview-Commit-ID: DoVqSs53is5
2017-09-11 14:57:06 +08:00
Wes Kocher 53da9bec37 Merge inbound to central, a=merge
MozReview-Commit-ID: 4FEkd1x2GD
2017-09-08 13:36:31 -07:00
Andrea Marchesini 26b14d70a4 Bug 1397627 - Fetch API and other components should pass the length of the stream to necko when known, r=smaug 2017-09-08 16:06:26 +02:00
Tom Tung 99c2441423 Bug 1398043 - P3: Add a test to verify (DOM) Cache upgrade successfully. r=bkelly
MozReview-Commit-ID: IYyvEe3r0g4
2017-09-08 19:22:18 +08:00
Tom Tung a28a3237a5 Bug 1398043 - P2: Temporary fix for updating the existing response_padding_size to 0 when it's an opaque response with null padding size. r=bkelly
MozReview-Commit-ID: EKcUwqfTWvj
2017-09-08 17:23:52 +08:00
Tom Tung e33d9c07a2 Bug 1398043 - P1: Add a space between strings concatenation. r=bkelly
MozReview-Commit-ID: mHQq4J2Kv6
2017-09-08 15:56:53 +08:00
Tom Tung bf5e378f86 Bug 1290481 - P15: Add an test to verify opaque response has padding and the usage are still the same between in-memory object in QM and the file-system. r=bkelly 2017-08-01 17:44:52 +08:00
Tom Tung 5393fe76be Bug 1290481 - P13: Get padding from DB when there is no directroy padding file. r=bkelly
MozReview-Commit-ID: KlVsaGhpABk
2017-07-18 19:08:41 +08:00
Tom Tung ca026d2342 Bug 1290481 - P12: Get the padding size while QM gets usage from DOM Cache. r=bkelly
MozReview-Commit-ID: KlVsaGhpABk
2017-07-18 19:07:53 +08:00
Tom Tung b0a5dcfe0f Bug 1290481 - P11: Add an assertion to ensure DOM Cache running in the Quota IO thread while getting overall usage. r=bkelly
MozReview-Commit-ID: KlVsaGhpABk
2017-07-18 19:03:25 +08:00
Tom Tung 15d5a42c6c Bug 1290481 - P10: Update padding size to the direcotry padding file. r=bkelly
MozReview-Commit-ID: KlVsaGhpABk
2017-07-18 19:00:09 +08:00
Tom Tung 2412394204 Bug 1290481 - P9: Implement a function to get overall padding size for an origin from cache.sqlite. r=bkelly
MozReview-Commit-ID: KlVsaGhpABk
2017-07-18 18:58:56 +08:00
Tom Tung 104d11f718 Bug 1290481 - P8: Implement few utility functions to access direcotry padding file. r=bkelly
MozReview-Commit-ID: KlVsaGhpABk
2017-07-18 18:57:54 +08:00
Tom Tung d1d55ebfb1 Bug 1290481 - P7: Create a mutex lock on CacheQuotaClient for protected accessing directory padding file. r=bkelly 2017-07-20 11:33:39 +08:00
Tom Tung c6849638fc Bug 1290481 - P6: Upgrade QuotaManager to v3.0 for adding directory padding file to existing DOM Cache directory. r=bkelly, janv
MozReview-Commit-ID: KlVsaGhpABk
2017-07-18 18:54:20 +08:00
Tom Tung 388e584d55 Bug 1290481 - P5: Implement a function to generate padding size. r=bkelly
MozReview-Commit-ID: 6poDeyErBjc
2017-07-10 17:03:24 +08:00
Tom Tung a744bbce77 Bug 1290481 - P4: Update padding size to the QuotaManager. r=bkelly, janv
MozReview-Commit-ID: 6poDeyErBjc
2017-07-10 17:02:44 +08:00
Tom Tung 3e0688e8c5 Bug 1290481 - P3: Record padding size into cache.sqlite. r=bkelly
MozReview-Commit-ID: 6poDeyErBjc
2017-07-10 16:54:20 +08:00
Tom Tung c181244800 Bug 1290481 - P2: Upgrade the version of cache.sqlite to store opaque responses' padding size in SQLite. r=bkelly
MozReview-Commit-ID: 6poDeyErBjc
2017-07-10 16:45:56 +08:00