| 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 CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_NETWORK_STATE_INFORMER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_NETWORK_STATE_INFORMER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_NETWORK_STATE_INFORMER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_NETWORK_STATE_INFORMER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/cancelable_callback.h" | 11 #include "base/cancelable_callback.h" |
| 12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
| 13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
| 14 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
| 15 #include "base/observer_list.h" | 15 #include "base/observer_list.h" |
| 16 #include "chrome/browser/chromeos/login/captive_portal_window_proxy.h" | |
| 17 #include "chrome/browser/chromeos/login/screens/error_screen_actor.h" | 16 #include "chrome/browser/chromeos/login/screens/error_screen_actor.h" |
| 17 #include "chrome/browser/chromeos/login/ui/captive_portal_window_proxy.h" |
| 18 #include "chrome/browser/chromeos/net/network_portal_detector.h" | 18 #include "chrome/browser/chromeos/net/network_portal_detector.h" |
| 19 #include "chromeos/network/network_state_handler_observer.h" | 19 #include "chromeos/network/network_state_handler_observer.h" |
| 20 #include "content/public/browser/notification_observer.h" | 20 #include "content/public/browser/notification_observer.h" |
| 21 #include "content/public/browser/notification_registrar.h" | 21 #include "content/public/browser/notification_registrar.h" |
| 22 #include "content/public/browser/notification_service.h" | 22 #include "content/public/browser/notification_service.h" |
| 23 | 23 |
| 24 namespace chromeos { | 24 namespace chromeos { |
| 25 | 25 |
| 26 // Class which observes network state changes and calls registered callbacks. | 26 // Class which observes network state changes and calls registered callbacks. |
| 27 // State is considered changed if connection or the active network has been | 27 // State is considered changed if connection or the active network has been |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 | 100 |
| 101 ObserverList<NetworkStateInformerObserver> observers_; | 101 ObserverList<NetworkStateInformerObserver> observers_; |
| 102 content::NotificationRegistrar registrar_; | 102 content::NotificationRegistrar registrar_; |
| 103 | 103 |
| 104 base::WeakPtrFactory<NetworkStateInformer> weak_ptr_factory_; | 104 base::WeakPtrFactory<NetworkStateInformer> weak_ptr_factory_; |
| 105 }; | 105 }; |
| 106 | 106 |
| 107 } // namespace chromeos | 107 } // namespace chromeos |
| 108 | 108 |
| 109 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_NETWORK_STATE_INFORMER_H_ | 109 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_NETWORK_STATE_INFORMER_H_ |
| OLD | NEW |