OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 CHROME_BROWSER_CHROMEOS_NET_CONNECTIVITY_STATE_HELPER_OBSERVER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_NET_CONNECTIVITY_STATE_HELPER_OBSERVER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_NET_CONNECTIVITY_STATE_HELPER_OBSERVER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_NET_CONNECTIVITY_STATE_HELPER_OBSERVER_H_ |
7 | 7 |
8 namespace chromeos { | 8 namespace chromeos { |
9 | 9 |
10 // A common observer interface used by the ConnectivityStateHelper object to | 10 // A common observer interface used by the ConnectivityStateHelper object to |
11 // relay observing events received from the (older) NetworkLibrary or the (new) | 11 // relay observing events received from the (older) NetworkLibrary or the (new) |
12 // NetworkStateHandler implementations. | 12 // NetworkStateHandler implementations. |
13 class ConnectivityStateHelperObserver { | 13 class ConnectivityStateHelperObserver { |
14 public: | 14 public: |
15 // Called when there's a change on the connection manager. | 15 // Called when there's a change on the connection manager. |
16 virtual void NetworkManagerChanged() = 0; | 16 virtual void NetworkManagerChanged() = 0; |
| 17 |
| 18 // Called when the default network changes. |
| 19 virtual void DefaultNetworkChanged() = 0; |
17 }; | 20 }; |
18 | 21 |
19 } // namespace chromeos | 22 } // namespace chromeos |
20 | 23 |
21 #endif // CHROME_BROWSER_CHROMEOS_NET_CONNECTIVITY_STATE_HELPER_OBSERVER_H_ | 24 #endif // CHROME_BROWSER_CHROMEOS_NET_CONNECTIVITY_STATE_HELPER_OBSERVER_H_ |
OLD | NEW |