| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef BLIMP_NET_BLOB_CHANNEL_HELIUM_BLOB_RECEIVER_DELEGATE_H_ | 5 #ifndef BLIMP_NET_BLOB_CHANNEL_HELIUM_BLOB_RECEIVER_DELEGATE_H_ |
| 6 #define BLIMP_NET_BLOB_CHANNEL_HELIUM_BLOB_RECEIVER_DELEGATE_H_ | 6 #define BLIMP_NET_BLOB_CHANNEL_HELIUM_BLOB_RECEIVER_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "blimp/net/blimp_message_processor.h" | 10 #include "blimp/net/blimp_message_processor.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 class BLIMP_NET_EXPORT HeliumBlobReceiverDelegate | 21 class BLIMP_NET_EXPORT HeliumBlobReceiverDelegate |
| 22 : public BlobChannelReceiver::Delegate, | 22 : public BlobChannelReceiver::Delegate, |
| 23 public BlimpMessageProcessor { | 23 public BlimpMessageProcessor { |
| 24 public: | 24 public: |
| 25 HeliumBlobReceiverDelegate(); | 25 HeliumBlobReceiverDelegate(); |
| 26 ~HeliumBlobReceiverDelegate() override; | 26 ~HeliumBlobReceiverDelegate() override; |
| 27 | 27 |
| 28 // Sets the Receiver object which will take incoming blobs. | 28 // Sets the Receiver object which will take incoming blobs. |
| 29 void SetReceiver(BlobChannelReceiver* receiver) override; | 29 void SetReceiver(BlobChannelReceiver* receiver) override; |
| 30 | 30 |
| 31 private: | |
| 32 // BlimpMessageProcessor implementation. | 31 // BlimpMessageProcessor implementation. |
| 33 void ProcessMessage(std::unique_ptr<BlimpMessage> message, | 32 void ProcessMessage(std::unique_ptr<BlimpMessage> message, |
| 34 const net::CompletionCallback& callback) override; | 33 const net::CompletionCallback& callback) override; |
| 35 | 34 |
| 35 private: |
| 36 BlobChannelReceiver* receiver_ = nullptr; | 36 BlobChannelReceiver* receiver_ = nullptr; |
| 37 | 37 |
| 38 DISALLOW_COPY_AND_ASSIGN(HeliumBlobReceiverDelegate); | 38 DISALLOW_COPY_AND_ASSIGN(HeliumBlobReceiverDelegate); |
| 39 }; | 39 }; |
| 40 | 40 |
| 41 } // namespace blimp | 41 } // namespace blimp |
| 42 | 42 |
| 43 #endif // BLIMP_NET_BLOB_CHANNEL_HELIUM_BLOB_RECEIVER_DELEGATE_H_ | 43 #endif // BLIMP_NET_BLOB_CHANNEL_HELIUM_BLOB_RECEIVER_DELEGATE_H_ |
| OLD | NEW |