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

Unified Diff: chrome/browser/automation/automation_event_observers.h

Issue 10408072: Rewrite of the EnrollEnterpriseDevice PyAuto automation hook for WebUI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed nits. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/automation/automation_event_observers_chromeos.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/automation/automation_event_observers.h
diff --git a/chrome/browser/automation/automation_event_observers.h b/chrome/browser/automation/automation_event_observers.h
index 8074ae1a55664a38848535d024d33aed8680f1e1..af49dbcb59d236ff3689842cfb31739cbea716b6 100644
--- a/chrome/browser/automation/automation_event_observers.h
+++ b/chrome/browser/automation/automation_event_observers.h
@@ -18,6 +18,7 @@
#if defined(OS_CHROMEOS)
namespace chromeos {
+class EnterpriseEnrollmentScreenActor;
class ExistingUserController;
}
#endif // defined(OS_CHROMEOS)
@@ -93,7 +94,8 @@ class LoginEventObserver
virtual void OnLoginSuccess(const std::string& username,
const std::string& password,
- bool pending_requests, bool using_oauth) OVERRIDE;
+ bool pending_requests,
+ bool using_oauth) OVERRIDE;
private:
chromeos::ExistingUserController* controller_;
@@ -104,6 +106,27 @@ class LoginEventObserver
DISALLOW_COPY_AND_ASSIGN(LoginEventObserver);
};
+// Event observer that listens for enrollment to complete.
+class EnrollmentEventObserver
+ : public AutomationEventObserver,
+ public chromeos::EnterpriseEnrollmentScreenActor::Observer {
+ public:
+ EnrollmentEventObserver(
+ AutomationEventQueue* event_queue,
+ chromeos::EnterpriseEnrollmentScreenActor* enrollment_screen_actor);
+
+ virtual ~EnrollmentEventObserver();
+
+ // chromeos::EnterpriseEnrollmentScreenActor::Observer implementation.
+ virtual void OnEnrollmentComplete(
+ chromeos::EnterpriseEnrollmentScreenActor* enrollment_screen_actor,
+ bool succeeded,
+ const std::string& error_string);
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(EnrollmentEventObserver);
+};
+
#endif // defined(OS_CHROMEOS)
#endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_EVENT_OBSERVERS_H_
« no previous file with comments | « no previous file | chrome/browser/automation/automation_event_observers_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698