OLD | NEW |
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 ASH_SYSTEM_NETWORK_NETWORK_OBSERVER_H | 5 #ifndef ASH_SYSTEM_NETWORK_NETWORK_OBSERVER_H |
6 #define ASH_SYSTEM_NETWORK_NETWORK_OBSERVER_H | 6 #define ASH_SYSTEM_NETWORK_NETWORK_OBSERVER_H |
7 | 7 |
8 #include "base/string16.h" | 8 #include "base/string16.h" |
9 | 9 |
10 namespace ash { | 10 namespace ash { |
(...skipping 24 matching lines...) Expand all Loading... |
35 // Sets a network error notification. |error_type| identifies the type of | 35 // Sets a network error notification. |error_type| identifies the type of |
36 // error. |delegate|->NotificationLinkClicked() will be called if |link_text| | 36 // error. |delegate|->NotificationLinkClicked() will be called if |link_text| |
37 // is clicked (if supplied, |link_text| may be empty). | 37 // is clicked (if supplied, |link_text| may be empty). |
38 virtual void SetNetworkError(NetworkTrayDelegate* delegate, | 38 virtual void SetNetworkError(NetworkTrayDelegate* delegate, |
39 ErrorType error_type, | 39 ErrorType error_type, |
40 const string16& title, | 40 const string16& title, |
41 const string16& message, | 41 const string16& message, |
42 const string16& link_text) = 0; | 42 const string16& link_text) = 0; |
43 // Clears the error notification for |error_type|. | 43 // Clears the error notification for |error_type|. |
44 virtual void ClearNetworkError(ErrorType error_type) = 0; | 44 virtual void ClearNetworkError(ErrorType error_type) = 0; |
| 45 |
| 46 // Called when the user attempted to toggle Wi-Fi enable/disable. |
| 47 // NOTE: Toggling is asynchronous and subsequent calls to query the current |
| 48 // state may return the old value. |
| 49 virtual void OnWillToggleWifi() = 0; |
45 }; | 50 }; |
46 | 51 |
47 } // namespace ash | 52 } // namespace ash |
48 | 53 |
49 #endif // ASH_SYSTEM_NETWORK_NETWORK_OBSERVER_H | 54 #endif // ASH_SYSTEM_NETWORK_NETWORK_OBSERVER_H |
OLD | NEW |