Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1942)

Unified Diff: blimp/net/blob_channel/blob_channel_sender.h

Issue 2056993003: Add Mojo IPC for seeding new Renderer with Browser's cached blob state. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@blobchannel-master
Patch Set: use a better upstream branch for the patch Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: blimp/net/blob_channel/blob_channel_sender.h
diff --git a/blimp/net/blob_channel/blob_channel_sender.h b/blimp/net/blob_channel/blob_channel_sender.h
index ec121c8f896c2e4bd82494850ff19da1928c5227..b1fc19fd68d555f55cc182034b3aa29e119ac5b4 100644
--- a/blimp/net/blob_channel/blob_channel_sender.h
+++ b/blimp/net/blob_channel/blob_channel_sender.h
@@ -5,6 +5,8 @@
#ifndef BLIMP_NET_BLOB_CHANNEL_BLOB_CHANNEL_SENDER_H_
#define BLIMP_NET_BLOB_CHANNEL_BLOB_CHANNEL_SENDER_H_
+#include <vector>
+
#include "blimp/common/blob_cache/blob_cache.h"
#include "blimp/net/blimp_net_export.h"
@@ -12,8 +14,16 @@ namespace blimp {
class BLIMP_NET_EXPORT BlobChannelSender {
public:
+ struct CacheState {
Wez 2016/06/21 00:33:33 nit: CacheStateEntry, for consistency w/ the Mojo?
Kevin M 2016/06/21 21:23:52 Done.
+ BlobId id;
+ bool is_replicated;
+ };
+
virtual ~BlobChannelSender() {}
+ // Gets the list of cache keys and their replication status in the BlobCache.
+ virtual std::vector<CacheState> GetCacheState() const = 0;
+
// Puts a blob in the local BlobChannel. The blob can then be pushed to the
// remote receiver via "DeliverBlob()".
// Does nothing if there is already a blob |id| in the channel.

Powered by Google App Engine
This is Rietveld 408576698