| 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_CLIENT_CORE_SESSION_NETWORK_EVENT_OBSERVER_H_ | |
| 6 #define BLIMP_CLIENT_CORE_SESSION_NETWORK_EVENT_OBSERVER_H_ | |
| 7 | |
| 8 namespace blimp { | |
| 9 namespace client { | |
| 10 | |
| 11 // A NetworkEventObserver is informed whenever changes happen to the connection | |
| 12 // to the Blimp engine. | |
| 13 class NetworkEventObserver { | |
| 14 public: | |
| 15 NetworkEventObserver() {} | |
| 16 virtual ~NetworkEventObserver() {} | |
| 17 | |
| 18 virtual void OnConnected() = 0; | |
| 19 virtual void OnDisconnected(int result) = 0; | |
| 20 }; | |
| 21 | |
| 22 } // namespace client | |
| 23 } // namespace blimp | |
| 24 | |
| 25 #endif // BLIMP_CLIENT_CORE_SESSION_NETWORK_EVENT_OBSERVER_H_ | |
| OLD | NEW |