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

Side by Side Diff: blimp/net/blob_channel/helium_blob_receiver_delegate.h

Issue 2300493002: Move glue code of blob channel to blimp_client_context_impl. (Closed)
Patch Set: More polish on comments. Created 4 years, 3 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 unified diff | Download patch
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698