OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_CROS_NETWORK_LIBRARY_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_H_ |
6 #define CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_H_ | 6 #define CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
406 bool support_network_scan() const { return support_network_scan_; } | 406 bool support_network_scan() const { return support_network_scan_; } |
407 enum TechnologyFamily technology_family() const { return technology_family_; } | 407 enum TechnologyFamily technology_family() const { return technology_family_; } |
408 const CellularApnList& provider_apn_list() const { | 408 const CellularApnList& provider_apn_list() const { |
409 return provider_apn_list_; | 409 return provider_apn_list_; |
410 } | 410 } |
411 | 411 |
412 // Updates the property specified by |key| with the contents of | 412 // Updates the property specified by |key| with the contents of |
413 // |value|. Returns false on failure. Upon success, returns the | 413 // |value|. Returns false on failure. Upon success, returns the |
414 // PropertyIndex that was updated in |index|. |index| may be NULL | 414 // PropertyIndex that was updated in |index|. |index| may be NULL |
415 // if not needed. | 415 // if not needed. |
416 virtual bool UpdateStatus(const std::string& key, | 416 bool UpdateStatus(const std::string& key, |
417 const Value& value, | 417 const Value& value, |
418 PropertyIndex *index); | 418 PropertyIndex *index); |
419 | 419 |
420 NativeNetworkDeviceParser* device_parser() { return device_parser_.get(); } | 420 NativeNetworkDeviceParser* device_parser() { return device_parser_.get(); } |
421 | 421 |
422 protected: | 422 protected: |
423 void set_unique_id(const std::string& unique_id) { unique_id_ = unique_id; } | 423 void set_unique_id(const std::string& unique_id) { unique_id_ = unique_id; } |
424 | 424 |
425 private: | 425 private: |
426 // This allows NetworkDeviceParser and its subclasses access to | 426 // This allows NetworkDeviceParser and its subclasses access to |
427 // device privates so that they can be reconstituted during parsing. | 427 // device privates so that they can be reconstituted during parsing. |
428 // The parsers only access things through the private set_ functions | 428 // The parsers only access things through the private set_ functions |
(...skipping 1194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1623 virtual void SwitchToPreferredNetwork() = 0; | 1623 virtual void SwitchToPreferredNetwork() = 0; |
1624 | 1624 |
1625 // Factory function, creates a new instance and returns ownership. | 1625 // Factory function, creates a new instance and returns ownership. |
1626 // For normal usage, access the singleton via CrosLibrary::Get(). | 1626 // For normal usage, access the singleton via CrosLibrary::Get(). |
1627 static NetworkLibrary* GetImpl(bool stub); | 1627 static NetworkLibrary* GetImpl(bool stub); |
1628 }; | 1628 }; |
1629 | 1629 |
1630 } // namespace chromeos | 1630 } // namespace chromeos |
1631 | 1631 |
1632 #endif // CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_H_ | 1632 #endif // CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_H_ |
OLD | NEW |