Chromium Code Reviews| 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_ |