| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CHROMEOS_NETWORK_NETWORK_STATE_HANDLER_OBSERVER_H_ | 5 #ifndef CHROMEOS_NETWORK_NETWORK_STATE_HANDLER_OBSERVER_H_ |
| 6 #define CHROMEOS_NETWORK_NETWORK_STATE_HANDLER_OBSERVER_H_ | 6 #define CHROMEOS_NETWORK_NETWORK_STATE_HANDLER_OBSERVER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 | 37 |
| 38 // The connection state of |network| changed. | 38 // The connection state of |network| changed. |
| 39 virtual void NetworkConnectionStateChanged(const NetworkState* network); | 39 virtual void NetworkConnectionStateChanged(const NetworkState* network); |
| 40 | 40 |
| 41 // One or more properties of |network| have been updated. Note: this will get | 41 // One or more properties of |network| have been updated. Note: this will get |
| 42 // called in *addition* to NetworkConnectionStateChanged() when the | 42 // called in *addition* to NetworkConnectionStateChanged() when the |
| 43 // connection state property changes. Use this to track properties like | 43 // connection state property changes. Use this to track properties like |
| 44 // wifi strength. | 44 // wifi strength. |
| 45 virtual void NetworkPropertiesUpdated(const NetworkState* network); | 45 virtual void NetworkPropertiesUpdated(const NetworkState* network); |
| 46 | 46 |
| 47 // Called just before NetworkStateHandler is destroyed so that observers |
| 48 // can safely stop observing. |
| 49 virtual void IsShuttingDown(); |
| 50 |
| 47 private: | 51 private: |
| 48 DISALLOW_COPY_AND_ASSIGN(NetworkStateHandlerObserver); | 52 DISALLOW_COPY_AND_ASSIGN(NetworkStateHandlerObserver); |
| 49 }; | 53 }; |
| 50 | 54 |
| 51 } // namespace chromeos | 55 } // namespace chromeos |
| 52 | 56 |
| 53 #endif // CHROMEOS_NETWORK_NETWORK_STATE_HANDLER_OBSERVER_H_ | 57 #endif // CHROMEOS_NETWORK_NETWORK_STATE_HANDLER_OBSERVER_H_ |
| OLD | NEW |