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 572 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
583 bool preferred() const { return priority_ != kPriorityNotSet; } | 583 bool preferred() const { return priority_ != kPriorityNotSet; } |
584 bool auto_connect() const { return auto_connect_; } | 584 bool auto_connect() const { return auto_connect_; } |
585 bool save_credentials() const { return save_credentials_; } | 585 bool save_credentials() const { return save_credentials_; } |
586 | 586 |
587 bool added() const { return added_; } | 587 bool added() const { return added_; } |
588 bool notify_failure() const { return notify_failure_; } | 588 bool notify_failure() const { return notify_failure_; } |
589 const std::string& profile_path() const { return profile_path_; } | 589 const std::string& profile_path() const { return profile_path_; } |
590 NetworkProfileType profile_type() const { return profile_type_; } | 590 NetworkProfileType profile_type() const { return profile_type_; } |
591 | 591 |
592 const std::string& unique_id() const { return unique_id_; } | 592 const std::string& unique_id() const { return unique_id_; } |
| 593 int priority_order() const { return priority_order_; } |
593 | 594 |
594 const std::string& proxy_config() const { return proxy_config_; } | 595 const std::string& proxy_config() const { return proxy_config_; } |
595 | 596 |
596 void set_notify_failure(bool state) { notify_failure_ = state; } | 597 void set_notify_failure(bool state) { notify_failure_ = state; } |
597 | 598 |
598 void SetPreferred(bool preferred); | 599 void SetPreferred(bool preferred); |
599 | 600 |
600 void SetAutoConnect(bool auto_connect); | 601 void SetAutoConnect(bool auto_connect); |
601 | 602 |
602 void SetName(const std::string& name); | 603 void SetName(const std::string& name); |
(...skipping 1020 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1623 virtual void SwitchToPreferredNetwork() = 0; | 1624 virtual void SwitchToPreferredNetwork() = 0; |
1624 | 1625 |
1625 // Factory function, creates a new instance and returns ownership. | 1626 // Factory function, creates a new instance and returns ownership. |
1626 // For normal usage, access the singleton via CrosLibrary::Get(). | 1627 // For normal usage, access the singleton via CrosLibrary::Get(). |
1627 static NetworkLibrary* GetImpl(bool stub); | 1628 static NetworkLibrary* GetImpl(bool stub); |
1628 }; | 1629 }; |
1629 | 1630 |
1630 } // namespace chromeos | 1631 } // namespace chromeos |
1631 | 1632 |
1632 #endif // CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_H_ | 1633 #endif // CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_H_ |
OLD | NEW |