| 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_
|
|
|