Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef BLIMP_NET_BLOB_CHANNEL_BLOB_CHANNEL_BINDINGS_H_ | |
| 6 #define BLIMP_NET_BLOB_CHANNEL_BLOB_CHANNEL_BINDINGS_H_ | |
| 7 | |
| 8 #include <string> | |
| 9 #include <vector> | |
| 10 | |
| 11 namespace blimp { | |
| 12 | |
| 13 // Interfaces for attaching transport-specific implementations to BlobChannel | |
| 14 // operations. The caller is responsible for handling call deduplication; | |
| 15 // bindings objects simply execute the command. | |
| 16 | |
| 17 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. :)
| |
| 18 public: | |
| 19 // Send blob |id| with payload |data| to the receiver. | |
| 20 virtual void Send(const std::string& id, | |
| 21 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.
| |
| 22 }; | |
| 23 | |
| 24 } // namespace blimp | |
| 25 | |
| 26 #endif // BLIMP_NET_BLOB_CHANNEL_BLOB_CHANNEL_BINDINGS_H_ | |
| OLD | NEW |