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_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_ | 5 #ifndef CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_ |
6 #define CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_ | 6 #define CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <deque> | 9 #include <deque> |
10 #include <map> | 10 #include <map> |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 virtual ~NetworkManagerInitObserver(); | 136 virtual ~NetworkManagerInitObserver(); |
137 virtual bool Init(); | 137 virtual bool Init(); |
138 virtual void OnNetworkManagerChanged(chromeos::NetworkLibrary* obj); | 138 virtual void OnNetworkManagerChanged(chromeos::NetworkLibrary* obj); |
139 | 139 |
140 private: | 140 private: |
141 base::WeakPtr<AutomationProvider> automation_; | 141 base::WeakPtr<AutomationProvider> automation_; |
142 | 142 |
143 DISALLOW_COPY_AND_ASSIGN(NetworkManagerInitObserver); | 143 DISALLOW_COPY_AND_ASSIGN(NetworkManagerInitObserver); |
144 }; | 144 }; |
145 | 145 |
146 // Observes when webui login becomes ready on chromeos. | 146 // Observes when the ChromeOS login WebUI becomes ready (by showing the login |
| 147 // form, account picker, a network error or the OOBE wizard, depending on Chrome |
| 148 // flags and state). |
147 class LoginWebuiReadyObserver : public content::NotificationObserver { | 149 class LoginWebuiReadyObserver : public content::NotificationObserver { |
148 public: | 150 public: |
149 explicit LoginWebuiReadyObserver(AutomationProvider* automation); | 151 explicit LoginWebuiReadyObserver(AutomationProvider* automation); |
150 virtual ~LoginWebuiReadyObserver(); | |
151 virtual void Observe(int type, | 152 virtual void Observe(int type, |
152 const content::NotificationSource& source, | 153 const content::NotificationSource& source, |
153 const content::NotificationDetails& details); | 154 const content::NotificationDetails& details); |
154 | 155 |
155 private: | 156 private: |
156 content::NotificationRegistrar registrar_; | 157 content::NotificationRegistrar registrar_; |
157 base::WeakPtr<AutomationProvider> automation_; | 158 base::WeakPtr<AutomationProvider> automation_; |
158 | 159 |
159 DISALLOW_COPY_AND_ASSIGN(LoginWebuiReadyObserver); | 160 DISALLOW_COPY_AND_ASSIGN(LoginWebuiReadyObserver); |
160 }; | 161 }; |
(...skipping 1649 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1810 private: | 1811 private: |
1811 base::WeakPtr<AutomationProvider> automation_; | 1812 base::WeakPtr<AutomationProvider> automation_; |
1812 scoped_ptr<IPC::Message> reply_message_; | 1813 scoped_ptr<IPC::Message> reply_message_; |
1813 std::string extension_id_; | 1814 std::string extension_id_; |
1814 content::NotificationRegistrar registrar_; | 1815 content::NotificationRegistrar registrar_; |
1815 | 1816 |
1816 DISALLOW_COPY_AND_ASSIGN(ExtensionPopupObserver); | 1817 DISALLOW_COPY_AND_ASSIGN(ExtensionPopupObserver); |
1817 }; | 1818 }; |
1818 | 1819 |
1819 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_ | 1820 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_ |
OLD | NEW |