Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_CONNECTION_HANDLER_H_ | 5 #ifndef BLIMP_NET_CONNECTION_HANDLER_H_ |
| 6 #define BLIMP_NET_CONNECTION_HANDLER_H_ | 6 #define BLIMP_NET_CONNECTION_HANDLER_H_ |
| 7 | 7 |
| 8 namespace blimp { | 8 namespace blimp { |
| 9 | 9 |
| 10 class BlimpConnection; | 10 class BlimpConnection; |
| 11 | 11 |
| 12 // Interface for objects that can take possession of BlimpConnections. | 12 // Interface for objects that can take possession of BlimpConnections. |
| 13 class ConnectionHandler { | 13 class ConnectionHandler { |
| 14 public: | 14 public: |
| 15 virtual ~ConnectionHandler() {} | 15 virtual ~ConnectionHandler() {} |
| 16 | 16 |
| 17 // Implementation must attach incoming message processor and error observer | |
|
Kevin M
2015/12/03 19:11:36
That seems like an impl detail.
How about
"The r
haibinlu
2015/12/03 22:28:35
Done.
| |
| 18 // synchronously. | |
| 17 virtual void HandleConnection(scoped_ptr<BlimpConnection> connection) = 0; | 19 virtual void HandleConnection(scoped_ptr<BlimpConnection> connection) = 0; |
| 18 }; | 20 }; |
| 19 | 21 |
| 20 } // namespace blimp | 22 } // namespace blimp |
| 21 | 23 |
| 22 #endif // BLIMP_NET_CONNECTION_HANDLER_H_ | 24 #endif // BLIMP_NET_CONNECTION_HANDLER_H_ |
| OLD | NEW |