DescriptionAdd Mojo IPC for seeding new Renderer with Browser's cached blob state.
Cache key state is currently stored in the renderer and is used
by the image processor to determine which images should be transcoded
and sent to the client, and which images do not need to be sent,
reducing latency and compute resources. A drawback of storing this
state in the renderer is that the cache state is dumped when the
renderer is torn down, as in the case when the user navigates
to another site.
This patch provides the renderer with a snapshot of the browser's
cache state, which means that the knowledge of cache state is
retained when the renderer of a given site is torn down
and brought back again.
* Add GetCacheState() to BlobCache
* Add GetCacheState() to BlobChannelSender()
* Add GetCacheState() to .mojom file.
R=nyquist@chromium.org,wez@chromium.org
BUG=600719
Committed: https://crrev.com/2cfb64fdb531ebf178913ccda75d8b6954b9bae9
Cr-Commit-Position: refs/heads/master@{#406658}
Patch Set 1 #Patch Set 2 : rebase #Patch Set 3 : Added BlobChannelSender test #Patch Set 4 : use a better upstream branch for the patch #
Total comments: 28
Patch Set 5 : wez feedback #Patch Set 6 : rebase #Patch Set 7 : IPC owners #Patch Set 8 : . #
Total comments: 1
Patch Set 9 : dcheng feedback #Patch Set 10 : Revert type converters #
Total comments: 2
Patch Set 11 : Mojo mapz #
Total comments: 24
Patch Set 12 : wez/nyquist feedback #Patch Set 13 : STL containers yay #Messages
Total messages: 33 (7 generated)
|