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

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

Issue 1887013003: Blimp: Add BlobChannelSender implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@blobchannel-blobcache
Patch Set: Remove erroneous namespace Created 4 years, 8 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_bindings.h
diff --git a/blimp/net/blob_channel/blob_channel_bindings.h b/blimp/net/blob_channel/blob_channel_bindings.h
new file mode 100644
index 0000000000000000000000000000000000000000..0f05f06e09e0f4038d1272250c0e0d3f887bc5c8
--- /dev/null
+++ b/blimp/net/blob_channel/blob_channel_bindings.h
@@ -0,0 +1,26 @@
+// 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_BINDINGS_H_
+#define BLIMP_NET_BLOB_CHANNEL_BLOB_CHANNEL_BINDINGS_H_
+
+#include <string>
+#include <vector>
+
+namespace blimp {
+
+// Interfaces for attaching transport-specific implementations to BlobChannel
+// operations. The caller is responsible for handling call deduplication;
+// bindings objects simply execute the command.
+
+class BlobSenderBindings {
Wez 2016/04/15 17:15:16 This just looks like a BlobSender "delegate"; why
Kevin M 2016/04/15 22:42:56 It is just a delegate. So, now it's a Delegate. :)
+ public:
+ // Send blob |id| with payload |data| to the receiver.
+ virtual void Send(const std::string& id,
+ const std::vector<uint8_t>& data) = 0;
Wez 2016/04/15 17:15:16 Provide typedefs for these so that BlobChannel/Blo
Kevin M 2016/04/15 22:42:56 Added "types.h" for standardization.
+};
+
+} // namespace blimp
+
+#endif // BLIMP_NET_BLOB_CHANNEL_BLOB_CHANNEL_BINDINGS_H_

Powered by Google App Engine
This is Rietveld 408576698