OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_NETWORK_LIST_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_NETWORK_LIST_H_ |
6 #define CHROME_BROWSER_CHROMEOS_NETWORK_LIST_H_ | 6 #define CHROME_BROWSER_CHROMEOS_NETWORK_LIST_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 | 76 |
77 // Returns number of networks. | 77 // Returns number of networks. |
78 size_t GetNetworkCount() const { | 78 size_t GetNetworkCount() const { |
79 return networks_.size(); | 79 return networks_.size(); |
80 } | 80 } |
81 | 81 |
82 // Returns network by index. | 82 // Returns network by index. |
83 NetworkList::NetworkItem* GetNetworkAt(int index); | 83 NetworkList::NetworkItem* GetNetworkAt(int index); |
84 | 84 |
85 // Callback from NetworkLibrary. | 85 // Callback from NetworkLibrary. |
86 void NetworkChanged(chromeos::NetworkLibrary* network_lib); | 86 void OnNetworkManagerChanged(chromeos::NetworkLibrary* network_lib); |
87 | 87 |
88 private: | 88 private: |
89 typedef std::vector<NetworkItem> NetworkItemVector; | 89 typedef std::vector<NetworkItem> NetworkItemVector; |
90 typedef std::vector<size_t> NetworkIndexVector; | 90 typedef std::vector<size_t> NetworkIndexVector; |
91 | 91 |
92 // Returns true if the specified network is in the list. | 92 // Returns true if the specified network is in the list. |
93 bool IsInNetworkList(const NetworkIndexVector& list, | 93 bool IsInNetworkList(const NetworkIndexVector& list, |
94 NetworkType type, | 94 NetworkType type, |
95 const string16& id) const; | 95 const string16& id) const; |
96 | 96 |
(...skipping 14 matching lines...) Expand all Loading... |
111 | 111 |
112 // Connecting networks indexes. | 112 // Connecting networks indexes. |
113 NetworkIndexVector connecting_networks_; | 113 NetworkIndexVector connecting_networks_; |
114 | 114 |
115 DISALLOW_COPY_AND_ASSIGN(NetworkList); | 115 DISALLOW_COPY_AND_ASSIGN(NetworkList); |
116 }; | 116 }; |
117 | 117 |
118 } // namespace chromeos | 118 } // namespace chromeos |
119 | 119 |
120 #endif // CHROME_BROWSER_CHROMEOS_NETWORK_LIST_H_ | 120 #endif // CHROME_BROWSER_CHROMEOS_NETWORK_LIST_H_ |
OLD | NEW |