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_H_ | 5 #ifndef CHROMEOS_NETWORK_NETWORK_STATE_HANDLER_H_ |
6 #define CHROMEOS_NETWORK_NETWORK_STATE_HANDLER_H_ | 6 #define CHROMEOS_NETWORK_NETWORK_STATE_HANDLER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 // each visible network. It is not used to change the properties of services or | 44 // each visible network. It is not used to change the properties of services or |
45 // devices, only global (manager) properties. | 45 // devices, only global (manager) properties. |
46 // | 46 // |
47 // All getters return the currently cached properties. This class is expected to | 47 // All getters return the currently cached properties. This class is expected to |
48 // keep properties up to date by managing the appropriate Shill observers. | 48 // keep properties up to date by managing the appropriate Shill observers. |
49 // It will invoke its own more specific observer methods when the specified | 49 // It will invoke its own more specific observer methods when the specified |
50 // changes occur. | 50 // changes occur. |
51 // | 51 // |
52 // Most *ByType or *ForType methods will accept any of the following for |type|. | 52 // Most *ByType or *ForType methods will accept any of the following for |type|. |
53 // See individual methods for specific notes. | 53 // See individual methods for specific notes. |
54 // * Any type defined in service_constants.h (e.g. flimflam::kTypeWifi) | 54 // * Any type defined in service_constants.h (e.g. shill::kTypeWifi) |
55 // * kMatchTypeDefault returns the default (active) network | 55 // * kMatchTypeDefault returns the default (active) network |
56 // * kMatchTypeNonVirtual returns the primary non virtual network | 56 // * kMatchTypeNonVirtual returns the primary non virtual network |
57 // * kMatchTypeWired returns the primary wired network | 57 // * kMatchTypeWired returns the primary wired network |
58 // * kMatchTypeWireless returns the primary wireless network | 58 // * kMatchTypeWireless returns the primary wireless network |
59 // * kMatchTypeMobile returns the primary cellular or wimax network | 59 // * kMatchTypeMobile returns the primary cellular or wimax network |
60 | 60 |
61 class CHROMEOS_EXPORT NetworkStateHandler | 61 class CHROMEOS_EXPORT NetworkStateHandler |
62 : public internal::ShillPropertyHandler::Listener { | 62 : public internal::ShillPropertyHandler::Listener { |
63 public: | 63 public: |
64 typedef std::vector<ManagedState*> ManagedStateList; | 64 typedef std::vector<ManagedState*> ManagedStateList; |
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
339 | 339 |
340 // Callbacks to run when a scan for the technology type completes. | 340 // Callbacks to run when a scan for the technology type completes. |
341 ScanCompleteCallbackMap scan_complete_callbacks_; | 341 ScanCompleteCallbackMap scan_complete_callbacks_; |
342 | 342 |
343 DISALLOW_COPY_AND_ASSIGN(NetworkStateHandler); | 343 DISALLOW_COPY_AND_ASSIGN(NetworkStateHandler); |
344 }; | 344 }; |
345 | 345 |
346 } // namespace chromeos | 346 } // namespace chromeos |
347 | 347 |
348 #endif // CHROMEOS_NETWORK_NETWORK_STATE_HANDLER_H_ | 348 #endif // CHROMEOS_NETWORK_NETWORK_STATE_HANDLER_H_ |
OLD | NEW |