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

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

Issue 15899015: Add CheckPortalList manager property to NetworkStateHandler (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: force manager property update in shill manager client stub implementation Created 7 years, 6 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 | Annotate | Revision Log
OLDNEW
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_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 <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 1444 matching lines...) Expand 10 before | Expand all | Expand 10 after
1455 virtual bool ethernet_busy() const = 0; 1455 virtual bool ethernet_busy() const = 0;
1456 virtual bool wifi_busy() const = 0; 1456 virtual bool wifi_busy() const = 0;
1457 virtual bool wimax_busy() const = 0; 1457 virtual bool wimax_busy() const = 0;
1458 virtual bool cellular_busy() const = 0; 1458 virtual bool cellular_busy() const = 0;
1459 virtual bool mobile_busy() const = 0; 1459 virtual bool mobile_busy() const = 0;
1460 1460
1461 virtual bool wifi_scanning() const = 0; 1461 virtual bool wifi_scanning() const = 0;
1462 virtual bool cellular_initializing() const = 0; 1462 virtual bool cellular_initializing() const = 0;
1463 virtual bool offline_mode() const = 0; 1463 virtual bool offline_mode() const = 0;
1464 1464
1465 // Returns list of technologies for which captive portal checking is enabled.
1466 // This is a comma-separated string; e.g. "ethernet,wifi,cellular".
1467 // See kDefaultCheckPortalList in portal_detector.cc.
1468 virtual std::string GetCheckPortalList() const = 0;
1469
1470 // Sets comma-separated list of interfaces that have portal check enabled.
1471 // Setting to empty string would disable portal check.
1472 virtual void SetCheckPortalList(const std::string& check_portal_list) = 0;
1473
1474 // Enables portal checking on a default set of interfaces:
1475 // "ethernet,wifi,cellular".
1476 virtual void SetDefaultCheckPortalList() = 0;
1477
1478 // Returns the current IP address if connected. If not, returns empty string. 1465 // Returns the current IP address if connected. If not, returns empty string.
1479 virtual const std::string& IPAddress() const = 0; 1466 virtual const std::string& IPAddress() const = 0;
1480 1467
1481 // Return a pointer to the device, if it exists, or NULL. 1468 // Return a pointer to the device, if it exists, or NULL.
1482 virtual const NetworkDevice* FindNetworkDeviceByPath( 1469 virtual const NetworkDevice* FindNetworkDeviceByPath(
1483 const std::string& path) const = 0; 1470 const std::string& path) const = 0;
1484 1471
1485 // Returns device with TYPE_CELLULAR or TYPE_WIMAX. 1472 // Returns device with TYPE_CELLULAR or TYPE_WIMAX.
1486 // Returns NULL if none exists. 1473 // Returns NULL if none exists.
1487 virtual const NetworkDevice* FindMobileDevice() const = 0; 1474 virtual const NetworkDevice* FindMobileDevice() const = 0;
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
1738 const std::string& service_path) = 0; 1725 const std::string& service_path) = 0;
1739 1726
1740 // Factory function, creates a new instance and returns ownership. 1727 // Factory function, creates a new instance and returns ownership.
1741 // For normal usage, access the singleton via CrosLibrary::Get(). 1728 // For normal usage, access the singleton via CrosLibrary::Get().
1742 static NetworkLibrary* GetImpl(bool stub); 1729 static NetworkLibrary* GetImpl(bool stub);
1743 }; 1730 };
1744 1731
1745 } // namespace chromeos 1732 } // namespace chromeos
1746 1733
1747 #endif // CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_H_ 1734 #endif // CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/cros/mock_network_library.h ('k') | chrome/browser/chromeos/cros/network_library_impl_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698