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

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

Issue 2632803002: Remove all blimp network code. (Closed)
Patch Set: merge from origin/master for good measure Created 3 years, 11 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
deleted file mode 100644
index ddb43b05a9c12ab32d59d0e65ab2c23b2f906c33..0000000000000000000000000000000000000000
--- a/blimp/net/blob_channel/blob_channel_sender.h
+++ /dev/null
@@ -1,42 +0,0 @@
-// 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.
-
-#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"
-
-namespace blimp {
-
-// Blob size upper limit, for abuse prevention.
-const size_t kMaxBlobSizeBytes = 10 * 1024 * 1024;
-
-class BLIMP_NET_EXPORT BlobChannelSender {
- public:
- struct CacheStateEntry {
- BlobId id;
- bool was_delivered;
- };
-
- virtual ~BlobChannelSender() {}
-
- // Gets the list of cache keys and their replication status in the BlobCache.
- virtual std::vector<CacheStateEntry> GetCachedBlobIds() 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.
- 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
-
-#endif // BLIMP_NET_BLOB_CHANNEL_BLOB_CHANNEL_SENDER_H_
« no previous file with comments | « blimp/net/blob_channel/blob_channel_receiver_unittest.cc ('k') | blimp/net/blob_channel/blob_channel_sender_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698