Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 684 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 695 const NotificationDetails& details); | 695 const NotificationDetails& details); |
| 696 | 696 |
| 697 private: | 697 private: |
| 698 NotificationRegistrar registrar_; | 698 NotificationRegistrar registrar_; |
| 699 AutomationProvider* automation_; | 699 AutomationProvider* automation_; |
| 700 IPC::Message* reply_message_; | 700 IPC::Message* reply_message_; |
| 701 bool lock_screen_; | 701 bool lock_screen_; |
| 702 | 702 |
| 703 DISALLOW_COPY_AND_ASSIGN(ScreenLockUnlockObserver); | 703 DISALLOW_COPY_AND_ASSIGN(ScreenLockUnlockObserver); |
| 704 }; | 704 }; |
| 705 | |
| 706 class NetworkScanObserver | |
| 707 : public chromeos::NetworkLibrary::NetworkManagerObserver { | |
|
dennis_jeffrey
2011/03/24 23:48:54
In other parts of this file, this line is generall
dtu
2011/03/25 22:22:11
Done.
| |
| 708 public: | |
| 709 NetworkScanObserver(AutomationProvider* automation, | |
| 710 IPC::Message* reply_message); | |
| 711 | |
| 712 virtual ~NetworkScanObserver(); | |
| 713 | |
| 714 // NetworkLibrary::NetworkManagerObserver implementation. | |
| 715 virtual void OnNetworkManagerChanged(chromeos::NetworkLibrary* obj); | |
| 716 | |
| 717 private: | |
| 718 AutomationProvider* automation_; | |
| 719 IPC::Message* reply_message_; | |
| 720 | |
| 721 DISALLOW_COPY_AND_ASSIGN(NetworkScanObserver); | |
| 722 }; | |
| 723 | |
| 724 // Waits for a connection success or failure for the specified | |
| 725 // network and returns the status to the automation provider. | |
| 726 class NetworkConnectObserver | |
| 727 : public chromeos::NetworkLibrary::NetworkManagerObserver { | |
|
dennis_jeffrey
2011/03/24 23:48:54
Same comment as line 707 above.
dtu
2011/03/25 22:22:11
Done.
| |
| 728 public: | |
| 729 NetworkConnectObserver(AutomationProvider* automation, | |
| 730 IPC::Message* reply_message, | |
| 731 chromeos::Network* network); | |
| 732 | |
| 733 virtual ~NetworkConnectObserver(); | |
| 734 | |
| 735 // NetworkLibrary::NetworkManagerObserver implementation. | |
| 736 virtual void OnNetworkManagerChanged(chromeos::NetworkLibrary* obj); | |
| 737 | |
| 738 private: | |
| 739 AutomationProvider* automation_; | |
| 740 IPC::Message* reply_message_; | |
| 741 chromeos::Network* network_; | |
| 742 | |
| 743 DISALLOW_COPY_AND_ASSIGN(NetworkConnectObserver); | |
| 744 }; | |
| 705 #endif // defined(OS_CHROMEOS) | 745 #endif // defined(OS_CHROMEOS) |
| 706 | 746 |
| 707 // Waits for the bookmark model to load. | 747 // Waits for the bookmark model to load. |
| 708 class AutomationProviderBookmarkModelObserver : BookmarkModelObserver { | 748 class AutomationProviderBookmarkModelObserver : BookmarkModelObserver { |
| 709 public: | 749 public: |
| 710 AutomationProviderBookmarkModelObserver(AutomationProvider* provider, | 750 AutomationProviderBookmarkModelObserver(AutomationProvider* provider, |
| 711 IPC::Message* reply_message, | 751 IPC::Message* reply_message, |
| 712 BookmarkModel* model); | 752 BookmarkModel* model); |
| 713 virtual ~AutomationProviderBookmarkModelObserver(); | 753 virtual ~AutomationProviderBookmarkModelObserver(); |
| 714 | 754 |
| (...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1177 // Sends the |reply_message_| to |automation_| indicating we're done. | 1217 // Sends the |reply_message_| to |automation_| indicating we're done. |
| 1178 void RunOnUIThread(); | 1218 void RunOnUIThread(); |
| 1179 | 1219 |
| 1180 base::WeakPtr<AutomationProvider> automation_; | 1220 base::WeakPtr<AutomationProvider> automation_; |
| 1181 scoped_ptr<IPC::Message> reply_message_; | 1221 scoped_ptr<IPC::Message> reply_message_; |
| 1182 | 1222 |
| 1183 DISALLOW_COPY_AND_ASSIGN(WaitForProcessLauncherThreadToGoIdleObserver); | 1223 DISALLOW_COPY_AND_ASSIGN(WaitForProcessLauncherThreadToGoIdleObserver); |
| 1184 }; | 1224 }; |
| 1185 | 1225 |
| 1186 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_ | 1226 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_ |
| OLD | NEW |