Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(771)

Side by Side Diff: chrome/browser/chromeos/cros/network_library.h

Issue 2869019: Don't generate a certificate browse button or passphrase field if cert path contains SETTINGS: (Closed)
Patch Set: Simplified SETTINGS: parsing. Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_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 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 virtual bool ConnectToPreferredNetworkIfAvailable() = 0; 299 virtual bool ConnectToPreferredNetworkIfAvailable() = 0;
300 300
301 // Returns true if we are currently connected to the preferred network. 301 // Returns true if we are currently connected to the preferred network.
302 virtual bool PreferredNetworkConnected() = 0; 302 virtual bool PreferredNetworkConnected() = 0;
303 303
304 // Returns true if we failed to connect to the preferred network. 304 // Returns true if we failed to connect to the preferred network.
305 virtual bool PreferredNetworkFailed() = 0; 305 virtual bool PreferredNetworkFailed() = 0;
306 306
307 // Connect to the specified wireless network with password. 307 // Connect to the specified wireless network with password.
308 virtual void ConnectToWifiNetwork(WifiNetwork network, 308 virtual void ConnectToWifiNetwork(WifiNetwork network,
309 const string16& password, 309 const std::string& password,
310 const string16& identity, 310 const std::string& identity,
311 const string16& certpath) = 0; 311 const std::string& certpath) = 0;
312 312
313 // Connect to the specified wifi ssid with password. 313 // Connect to the specified wifi ssid with password.
314 virtual void ConnectToWifiNetwork(const string16& ssid, 314 virtual void ConnectToWifiNetwork(const std::string& ssid,
315 const string16& password, 315 const std::string& password,
316 const string16& identity, 316 const std::string& identity,
317 const string16& certpath, 317 const std::string& certpath,
318 bool auto_connect) = 0; 318 bool auto_connect) = 0;
319 319
320 // Connect to the specified cellular network. 320 // Connect to the specified cellular network.
321 virtual void ConnectToCellularNetwork(CellularNetwork network) = 0; 321 virtual void ConnectToCellularNetwork(CellularNetwork network) = 0;
322 322
323 // Disconnect from the specified wireless (either cellular or wifi) network. 323 // Disconnect from the specified wireless (either cellular or wifi) network.
324 virtual void DisconnectFromWirelessNetwork( 324 virtual void DisconnectFromWirelessNetwork(
325 const WirelessNetwork& network) = 0; 325 const WirelessNetwork& network) = 0;
326 326
327 // Set whether or not to auto-connect to this network. 327 // Set whether or not to auto-connect to this network.
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
414 414
415 virtual const CellularNetworkVector& remembered_cellular_networks() const { 415 virtual const CellularNetworkVector& remembered_cellular_networks() const {
416 return remembered_cellular_networks_; 416 return remembered_cellular_networks_;
417 } 417 }
418 418
419 virtual void RequestWifiScan(); 419 virtual void RequestWifiScan();
420 virtual bool ConnectToPreferredNetworkIfAvailable(); 420 virtual bool ConnectToPreferredNetworkIfAvailable();
421 virtual bool PreferredNetworkConnected(); 421 virtual bool PreferredNetworkConnected();
422 virtual bool PreferredNetworkFailed(); 422 virtual bool PreferredNetworkFailed();
423 virtual void ConnectToWifiNetwork(WifiNetwork network, 423 virtual void ConnectToWifiNetwork(WifiNetwork network,
424 const string16& password, 424 const std::string& password,
425 const string16& identity, 425 const std::string& identity,
426 const string16& certpath); 426 const std::string& certpath);
427 virtual void ConnectToWifiNetwork(const string16& ssid, 427 virtual void ConnectToWifiNetwork(const std::string& ssid,
428 const string16& password, 428 const std::string& password,
429 const string16& identity, 429 const std::string& identity,
430 const string16& certpath, 430 const std::string& certpath,
431 bool auto_connect); 431 bool auto_connect);
432 virtual void ConnectToCellularNetwork(CellularNetwork network); 432 virtual void ConnectToCellularNetwork(CellularNetwork network);
433 virtual void DisconnectFromWirelessNetwork(const WirelessNetwork& network); 433 virtual void DisconnectFromWirelessNetwork(const WirelessNetwork& network);
434 virtual void SaveWifiNetwork(const WifiNetwork& network); 434 virtual void SaveWifiNetwork(const WifiNetwork& network);
435 virtual void ForgetWirelessNetwork(const WirelessNetwork& network); 435 virtual void ForgetWirelessNetwork(const WirelessNetwork& network);
436 436
437 virtual bool ethernet_available() const { 437 virtual bool ethernet_available() const {
438 return available_devices_ & (1 << TYPE_ETHERNET); 438 return available_devices_ & (1 << TYPE_ETHERNET);
439 } 439 }
440 virtual bool wifi_available() const { 440 virtual bool wifi_available() const {
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
568 int connected_devices_; 568 int connected_devices_;
569 569
570 bool offline_mode_; 570 bool offline_mode_;
571 571
572 DISALLOW_COPY_AND_ASSIGN(NetworkLibraryImpl); 572 DISALLOW_COPY_AND_ASSIGN(NetworkLibraryImpl);
573 }; 573 };
574 574
575 } // namespace chromeos 575 } // namespace chromeos
576 576
577 #endif // CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_H_ 577 #endif // CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698