blob: ec121c8f896c2e4bd82494850ff19da1928c5227 [file] [log] [blame]
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "blimp/common/blob_cache/blob_cache.h"
#include "blimp/net/blimp_net_export.h"
namespace blimp {
class BLIMP_NET_EXPORT BlobChannelSender {
virtual ~BlobChannelSender() {}
// 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.
virtual void PutBlob(const BlobId& id, BlobDataPtr data) = 0;
// Sends the blob |id| to the remote side, if the remote side doesn't already
// have the blob.
virtual void DeliverBlob(const BlobId& id) = 0;
} // namespace blimp