| 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 885 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 896 virtual chromeos::VirtualNetwork* GetVirtualNetwork( | 896 virtual chromeos::VirtualNetwork* GetVirtualNetwork( |
| 897 const chromeos::NetworkLibrary* cros); | 897 const chromeos::NetworkLibrary* cros); |
| 898 | 898 |
| 899 base::WeakPtr<AutomationProvider> automation_; | 899 base::WeakPtr<AutomationProvider> automation_; |
| 900 scoped_ptr<IPC::Message> reply_message_; | 900 scoped_ptr<IPC::Message> reply_message_; |
| 901 std::string service_name_; | 901 std::string service_name_; |
| 902 | 902 |
| 903 DISALLOW_COPY_AND_ASSIGN(VirtualConnectObserver); | 903 DISALLOW_COPY_AND_ASSIGN(VirtualConnectObserver); |
| 904 }; | 904 }; |
| 905 | 905 |
| 906 // Waits for enterprise device enrollment to complete and returns the status to | |
| 907 // the automation provider. | |
| 908 class EnrollmentObserver | |
| 909 : public chromeos::EnterpriseEnrollmentScreenActor::Observer { | |
| 910 public: | |
| 911 EnrollmentObserver(AutomationProvider* automation, | |
| 912 IPC::Message* reply_message, | |
| 913 chromeos::EnterpriseEnrollmentScreenActor* enrollment_screen_actor, | |
| 914 chromeos::EnterpriseEnrollmentScreen* enrollment_screen); | |
| 915 | |
| 916 virtual ~EnrollmentObserver(); | |
| 917 | |
| 918 // chromeos::EnterpriseEnrollmentScreenActor::Observer implementation. | |
| 919 virtual void OnEnrollmentComplete( | |
| 920 chromeos::EnterpriseEnrollmentScreenActor* enrollment_screen_actor, | |
| 921 bool succeeded); | |
| 922 | |
| 923 private: | |
| 924 base::WeakPtr<AutomationProvider> automation_; | |
| 925 scoped_ptr<IPC::Message> reply_message_; | |
| 926 chromeos::EnterpriseEnrollmentScreen* enrollment_screen_; | |
| 927 | |
| 928 DISALLOW_COPY_AND_ASSIGN(EnrollmentObserver); | |
| 929 }; | |
| 930 | |
| 931 // Waits for profile photo to be captured by the camera, | 906 // Waits for profile photo to be captured by the camera, |
| 932 // saved to file, and the path set in local state preferences | 907 // saved to file, and the path set in local state preferences |
| 933 class PhotoCaptureObserver : public chromeos::TakePhotoDialog::Observer, | 908 class PhotoCaptureObserver : public chromeos::TakePhotoDialog::Observer, |
| 934 public chromeos::UserManager::Observer { | 909 public chromeos::UserManager::Observer { |
| 935 public: | 910 public: |
| 936 PhotoCaptureObserver(AutomationProvider* automation, | 911 PhotoCaptureObserver(AutomationProvider* automation, |
| 937 IPC::Message* reply_message); | 912 IPC::Message* reply_message); |
| 938 virtual ~PhotoCaptureObserver(); | 913 virtual ~PhotoCaptureObserver(); |
| 939 | 914 |
| 940 // TakePhotoDialog::Observer overrides | 915 // TakePhotoDialog::Observer overrides |
| (...skipping 852 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1793 private: | 1768 private: |
| 1794 base::WeakPtr<AutomationProvider> automation_; | 1769 base::WeakPtr<AutomationProvider> automation_; |
| 1795 scoped_ptr<IPC::Message> reply_message_; | 1770 scoped_ptr<IPC::Message> reply_message_; |
| 1796 std::string extension_id_; | 1771 std::string extension_id_; |
| 1797 content::NotificationRegistrar registrar_; | 1772 content::NotificationRegistrar registrar_; |
| 1798 | 1773 |
| 1799 DISALLOW_COPY_AND_ASSIGN(ExtensionPopupObserver); | 1774 DISALLOW_COPY_AND_ASSIGN(ExtensionPopupObserver); |
| 1800 }; | 1775 }; |
| 1801 | 1776 |
| 1802 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_ | 1777 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_ |
| OLD | NEW |