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 WebUI login form or account picker becomes ready on |
| 147 // ChromeOS. |
147 class LoginWebuiReadyObserver : public content::NotificationObserver { | 148 class LoginWebuiReadyObserver : public content::NotificationObserver { |
148 public: | 149 public: |
149 explicit LoginWebuiReadyObserver(AutomationProvider* automation); | 150 explicit LoginWebuiReadyObserver(AutomationProvider* automation); |
150 virtual ~LoginWebuiReadyObserver(); | |
151 virtual void Observe(int type, | 151 virtual void Observe(int type, |
152 const content::NotificationSource& source, | 152 const content::NotificationSource& source, |
153 const content::NotificationDetails& details); | 153 const content::NotificationDetails& details); |
154 | 154 |
155 private: | 155 private: |
156 content::NotificationRegistrar registrar_; | 156 content::NotificationRegistrar registrar_; |
157 base::WeakPtr<AutomationProvider> automation_; | 157 base::WeakPtr<AutomationProvider> automation_; |
158 | 158 |
159 DISALLOW_COPY_AND_ASSIGN(LoginWebuiReadyObserver); | 159 DISALLOW_COPY_AND_ASSIGN(LoginWebuiReadyObserver); |
160 }; | 160 }; |
(...skipping 1649 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1810 private: | 1810 private: |
1811 base::WeakPtr<AutomationProvider> automation_; | 1811 base::WeakPtr<AutomationProvider> automation_; |
1812 scoped_ptr<IPC::Message> reply_message_; | 1812 scoped_ptr<IPC::Message> reply_message_; |
1813 std::string extension_id_; | 1813 std::string extension_id_; |
1814 content::NotificationRegistrar registrar_; | 1814 content::NotificationRegistrar registrar_; |
1815 | 1815 |
1816 DISALLOW_COPY_AND_ASSIGN(ExtensionPopupObserver); | 1816 DISALLOW_COPY_AND_ASSIGN(ExtensionPopupObserver); |
1817 }; | 1817 }; |
1818 | 1818 |
1819 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_ | 1819 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_ |
OLD | NEW |