network_observer.h 658 B

12345678910111213141516171819202122
  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
  3. // found in the LICENSE file.
  4. #ifndef ASH_SYSTEM_NETWORK_NETWORK_OBSERVER_H_
  5. #define ASH_SYSTEM_NETWORK_NETWORK_OBSERVER_H_
  6. namespace ash {
  7. class NetworkObserver {
  8. public:
  9. virtual ~NetworkObserver() {}
  10. // Called to request toggling Wi-Fi enable/disable, e.g. from an accelerator.
  11. // NOTE: Toggling is asynchronous and subsequent calls to query the current
  12. // state may return the old value.
  13. virtual void RequestToggleWifi() = 0;
  14. };
  15. } // namespace ash
  16. #endif // ASH_SYSTEM_NETWORK_NETWORK_OBSERVER_H_