summaryrefslogtreecommitdiffstats
path: root/chrome/browser/chromeos/network_library.h
diff options
context:
space:
mode:
authorchocobo@chromium.org <chocobo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-16 00:15:19 +0000
committerchocobo@chromium.org <chocobo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-16 00:15:19 +0000
commitd05301aa43b2f9358e69262151fc521fca6db57a (patch)
tree405e8e124457180ddd9ca70fe6f84de8b906c5b7 /chrome/browser/chromeos/network_library.h
parenteea8fd55353c798c2e58351be37dec3b5d69595b (diff)
downloadchromium_src-d05301aa43b2f9358e69262151fc521fca6db57a.zip
chromium_src-d05301aa43b2f9358e69262151fc521fca6db57a.tar.gz
chromium_src-d05301aa43b2f9358e69262151fc521fca6db57a.tar.bz2
Add offline mode selection for ChromeOS
BUG=568 TEST=none Review URL: http://codereview.chromium.org/504008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34627 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/chromeos/network_library.h')
-rw-r--r--chrome/browser/chromeos/network_library.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/chromeos/network_library.h b/chrome/browser/chromeos/network_library.h
index b313ced..021fd7d 100644
--- a/chrome/browser/chromeos/network_library.h
+++ b/chrome/browser/chromeos/network_library.h
@@ -115,6 +115,7 @@ class NetworkLibrary : public URLRequestJobTracker::JobObserver {
bool ethernet_enabled() const { return network_devices_ & TYPE_ETHERNET; }
bool wifi_enabled() const { return network_devices_ & TYPE_WIFI; }
+ bool offline_mode() const { return offline_mode_; }
// Enables/disables the ethernet network device.
void EnableEthernetNetworkDevice(bool enable);
@@ -122,6 +123,9 @@ class NetworkLibrary : public URLRequestJobTracker::JobObserver {
// Enables/disables the wifi network device.
void EnableWifiNetworkDevice(bool enable);
+ // Enables/disables offline mode.
+ void EnableOfflineMode(bool enable);
+
private:
friend struct DefaultSingletonTraits<NetworkLibrary>;
@@ -196,6 +200,8 @@ class NetworkLibrary : public URLRequestJobTracker::JobObserver {
// ConnectionTypes.
int network_devices_;
+ bool offline_mode_;
+
DISALLOW_COPY_AND_ASSIGN(NetworkLibrary);
};