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

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: 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
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..b160f000b4f72fc5644835be00f9302fe0f4c7cc 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)
@@ -104,6 +105,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, std::string error_string);
Mattias Nissler (ping if slow) 2012/05/23 19:47:50 All parameters go on separate lines in declaration
craigdh 2012/05/24 21:17:26 Done.
+
+ private:
+
Mattias Nissler (ping if slow) 2012/05/23 19:47:50 nit: remove blank line.
craigdh 2012/05/24 21:17:26 Done.
+ DISALLOW_COPY_AND_ASSIGN(EnrollmentEventObserver);
+};
+
#endif // defined(OS_CHROMEOS)
#endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_EVENT_OBSERVERS_H_

Powered by Google App Engine
This is Rietveld 408576698