Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(247)

Side by Side Diff: chrome/browser/automation/automation_provider_observers.h

Issue 10382197: Add PyAuto test for DeviceGuestModeEnabled policy (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Comments addressed. Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698