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_PIPE_MANAGER_H_ | |
6 #define BLIMP_NET_PIPE_MANAGER_H_ | |
7 | |
8 #include "base/macros.h" | |
9 #include "blimp/common/proto/blimp_message.pb.h" | |
10 #include "blimp/net/blimp_net_export.h" | |
11 | |
12 namespace blimp { | |
13 | |
14 class BlimpMessageProcessor; | |
15 | |
16 class BLIMP_NET_EXPORT PipeManager { | |
17 public: | |
18 virtual ~PipeManager() {} | |
19 | |
20 // Registers a message processor |incoming_processor| which will receive all | |
21 // messages of the |feature_case| specified. Returns a BlimpMessageProcessor | |
22 // object for sending messages of the given feature. | |
23 virtual std::unique_ptr<BlimpMessageProcessor> RegisterFeature( | |
24 BlimpMessage::FeatureCase feature_case, | |
25 BlimpMessageProcessor* incoming_processor) = 0; | |
26 }; | |
27 | |
28 } // namespace blimp | |
29 | |
30 #endif // BLIMP_NET_PIPE_MANAGER_H_ | |
OLD | NEW |