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 1240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1251 base::WeakPtr<AutomationProvider> automation_; | 1251 base::WeakPtr<AutomationProvider> automation_; |
1252 scoped_ptr<IPC::Message> reply_message_; | 1252 scoped_ptr<IPC::Message> reply_message_; |
1253 NavigationController* controller_; | 1253 NavigationController* controller_; |
1254 | 1254 |
1255 DISALLOW_COPY_AND_ASSIGN(OmniboxAcceptNotificationObserver); | 1255 DISALLOW_COPY_AND_ASSIGN(OmniboxAcceptNotificationObserver); |
1256 }; | 1256 }; |
1257 | 1257 |
1258 // Allows the automation provider to wait for a save package notification. | 1258 // Allows the automation provider to wait for a save package notification. |
1259 class SavePackageNotificationObserver : public NotificationObserver { | 1259 class SavePackageNotificationObserver : public NotificationObserver { |
1260 public: | 1260 public: |
1261 SavePackageNotificationObserver(SavePackage* save_package, | 1261 SavePackageNotificationObserver(DownloadManager* download_manager, |
1262 AutomationProvider* automation, | 1262 AutomationProvider* automation, |
1263 IPC::Message* reply_message); | 1263 IPC::Message* reply_message); |
1264 virtual ~SavePackageNotificationObserver(); | 1264 virtual ~SavePackageNotificationObserver(); |
1265 | 1265 |
1266 virtual void Observe(int type, | 1266 virtual void Observe(int type, |
1267 const NotificationSource& source, | 1267 const NotificationSource& source, |
1268 const NotificationDetails& details); | 1268 const NotificationDetails& details); |
1269 | 1269 |
1270 private: | 1270 private: |
1271 NotificationRegistrar registrar_; | 1271 NotificationRegistrar registrar_; |
(...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1638 | 1638 |
1639 private: | 1639 private: |
1640 NotificationRegistrar registrar_; | 1640 NotificationRegistrar registrar_; |
1641 base::WeakPtr<AutomationProvider> automation_; | 1641 base::WeakPtr<AutomationProvider> automation_; |
1642 scoped_ptr<IPC::Message> reply_message_; | 1642 scoped_ptr<IPC::Message> reply_message_; |
1643 | 1643 |
1644 DISALLOW_COPY_AND_ASSIGN(DragTargetDropAckNotificationObserver); | 1644 DISALLOW_COPY_AND_ASSIGN(DragTargetDropAckNotificationObserver); |
1645 }; | 1645 }; |
1646 | 1646 |
1647 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_ | 1647 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_ |
OLD | NEW |