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

Unified Diff: chrome/browser/chromeos/cros/network_library.h

Issue 6292008: Added flags to prevent messing with network connections while 3G device is be... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/cros/network_library.h
===================================================================
--- chrome/browser/chromeos/cros/network_library.h (revision 71648)
+++ chrome/browser/chromeos/cros/network_library.h (working copy)
@@ -495,6 +495,15 @@
// Stop |observer| from observing any networks
virtual void RemoveObserverForAllNetworks(NetworkObserver* observer) = 0;
+ // Temporarily locks down certain functionality in network library to prevent
+ // unplanned side effects. During the lock down, Enable*Device() calls cannot
+ // be made.
+ virtual void Lock() = 0;
+ // Removes temporarily lock of network library.
+ virtual void Unlock() = 0;
+ // Checks if access to network library is locked.
+ virtual bool IsLocked() = 0;
+
virtual void AddCellularDataPlanObserver(
CellularDataPlanObserver* observer) = 0;
virtual void RemoveCellularDataPlanObserver(

Powered by Google App Engine
This is Rietveld 408576698