| 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 CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_IMPL_BASE_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_IMPL_BASE_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_IMPL_BASE_H_ | 6 #define CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_IMPL_BASE_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <set> | 9 #include <set> |
| 10 | 10 |
| (...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 227 virtual void ForgetNetwork(const std::string& service_path) OVERRIDE; | 227 virtual void ForgetNetwork(const std::string& service_path) OVERRIDE; |
| 228 virtual void EnableEthernetNetworkDevice(bool enable) OVERRIDE; | 228 virtual void EnableEthernetNetworkDevice(bool enable) OVERRIDE; |
| 229 virtual void EnableWifiNetworkDevice(bool enable) OVERRIDE; | 229 virtual void EnableWifiNetworkDevice(bool enable) OVERRIDE; |
| 230 virtual void EnableMobileNetworkDevice(bool enable) OVERRIDE; | 230 virtual void EnableMobileNetworkDevice(bool enable) OVERRIDE; |
| 231 virtual void EnableWimaxNetworkDevice(bool enable) OVERRIDE; | 231 virtual void EnableWimaxNetworkDevice(bool enable) OVERRIDE; |
| 232 virtual void EnableCellularNetworkDevice(bool enable) OVERRIDE; | 232 virtual void EnableCellularNetworkDevice(bool enable) OVERRIDE; |
| 233 // virtual EnableOfflineMode implemented in derived classes. | 233 // virtual EnableOfflineMode implemented in derived classes. |
| 234 // virtual GetIPConfigs implemented in derived classes. | 234 // virtual GetIPConfigs implemented in derived classes. |
| 235 // virtual SetIPConfig implemented in derived classes. | 235 // virtual SetIPConfig implemented in derived classes. |
| 236 virtual void SwitchToPreferredNetwork() OVERRIDE; | 236 virtual void SwitchToPreferredNetwork() OVERRIDE; |
| 237 virtual bool LoadOncNetworks(const std::string& onc_blob, | 237 virtual bool LoadOncNetworks( |
| 238 const std::string& passphrase, | 238 const std::string& onc_blob, |
| 239 onc::ONCSource source, | 239 const std::string& passphrase, |
| 240 bool allow_web_trust_from_policy) OVERRIDE; | 240 onc::ONCSource source, |
| 241 net::CertificateList* onc_trusted_certificates) OVERRIDE; |
| 241 virtual bool SetActiveNetwork(ConnectionType type, | 242 virtual bool SetActiveNetwork(ConnectionType type, |
| 242 const std::string& service_path) OVERRIDE; | 243 const std::string& service_path) OVERRIDE; |
| 243 | 244 |
| 244 protected: | 245 protected: |
| 245 typedef ObserverList<NetworkObserver> NetworkObserverList; | 246 typedef ObserverList<NetworkObserver> NetworkObserverList; |
| 246 typedef std::map<std::string, NetworkObserverList*> NetworkObserverMap; | 247 typedef std::map<std::string, NetworkObserverList*> NetworkObserverMap; |
| 247 | 248 |
| 248 typedef ObserverList<NetworkDeviceObserver> NetworkDeviceObserverList; | 249 typedef ObserverList<NetworkDeviceObserver> NetworkDeviceObserverList; |
| 249 typedef std::map<std::string, NetworkDeviceObserverList*> | 250 typedef std::map<std::string, NetworkDeviceObserverList*> |
| 250 NetworkDeviceObserverMap; | 251 NetworkDeviceObserverMap; |
| (...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 488 // stray networks that shill still has on file, but are not known on the | 489 // stray networks that shill still has on file, but are not known on the |
| 489 // Chrome side. | 490 // Chrome side. |
| 490 NetworkSourceMap network_source_map_; | 491 NetworkSourceMap network_source_map_; |
| 491 | 492 |
| 492 DISALLOW_COPY_AND_ASSIGN(NetworkLibraryImplBase); | 493 DISALLOW_COPY_AND_ASSIGN(NetworkLibraryImplBase); |
| 493 }; | 494 }; |
| 494 | 495 |
| 495 } // namespace chromeos | 496 } // namespace chromeos |
| 496 | 497 |
| 497 #endif // CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_IMPL_BASE_H_ | 498 #endif // CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_IMPL_BASE_H_ |
| OLD | NEW |