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> |
| 11 #include <set> | 11 #include <set> |
| 12 #include <string> | 12 #include <string> |
| 13 #include <vector> | 13 #include <vector> |
| 14 | 14 |
| 15 #include "base/compiler_specific.h" | 15 #include "base/compiler_specific.h" |
| 16 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
| 17 #include "base/memory/weak_ptr.h" | 17 #include "base/memory/weak_ptr.h" |
| 18 #include "base/synchronization/waitable_event.h" | 18 #include "base/synchronization/waitable_event.h" |
| 19 #include "chrome/browser/automation/automation_provider_json.h" | 19 #include "chrome/browser/automation/automation_provider_json.h" |
| 20 #include "chrome/browser/automation/automation_tab_helper.h" | 20 #include "chrome/browser/automation/automation_tab_helper.h" |
| 21 #include "chrome/browser/bookmarks/bookmark_model_observer.h" | 21 #include "chrome/browser/bookmarks/bookmark_model_observer.h" |
| 22 #include "chrome/browser/browsing_data_remover.h" | 22 #include "chrome/browser/browsing_data_remover.h" |
| 23 #if defined(OS_CHROMEOS) | 23 #if defined(OS_CHROMEOS) |
| 24 #include "chrome/browser/chromeos/cros/network_library.h" | 24 #include "chrome/browser/chromeos/cros/network_library.h" |
| 25 #include "chrome/browser/chromeos/login/enterprise_enrollment_screen.h" | 25 #include "chrome/browser/chromeos/login/enterprise_enrollment_screen.h" |
| 26 #include "chrome/browser/chromeos/login/enterprise_enrollment_screen_actor.h" | 26 #include "chrome/browser/chromeos/login/enterprise_enrollment_screen_actor.h" |
| 27 #include "chrome/browser/chromeos/login/enterprise_enrollment_view.h" | 27 #include "chrome/browser/chromeos/login/enterprise_enrollment_view.h" |
| 28 #include "chrome/browser/chromeos/login/login_status_consumer.h" | 28 #include "chrome/browser/chromeos/login/login_status_consumer.h" |
| 29 #include "chrome/browser/chromeos/login/wizard_controller.h" | 29 #include "chrome/browser/chromeos/login/wizard_controller.h" |
| 30 #include "chrome/browser/chromeos/options/take_photo_dialog.h" | |
|
Nirnimesh
2011/07/30 10:32:31
Including the .h might not be necessary.
Just for
frankf
2011/08/01 19:31:09
I don't think you can forward declare a nested cla
| |
| 30 #endif // defined(OS_CHROMEOS) | 31 #endif // defined(OS_CHROMEOS) |
| 31 #include "chrome/browser/download/download_item.h" | 32 #include "chrome/browser/download/download_item.h" |
| 32 #include "chrome/browser/download/download_manager.h" | 33 #include "chrome/browser/download/download_manager.h" |
| 33 #include "chrome/browser/history/history.h" | 34 #include "chrome/browser/history/history.h" |
| 34 #include "chrome/browser/history/history_types.h" | 35 #include "chrome/browser/history/history_types.h" |
| 35 #include "chrome/browser/importer/importer_data_types.h" | 36 #include "chrome/browser/importer/importer_data_types.h" |
| 36 #include "chrome/browser/importer/importer_progress_observer.h" | 37 #include "chrome/browser/importer/importer_progress_observer.h" |
| 37 #include "chrome/browser/password_manager/password_store_change.h" | 38 #include "chrome/browser/password_manager/password_store_change.h" |
| 38 #include "chrome/browser/password_manager/password_store_consumer.h" | 39 #include "chrome/browser/password_manager/password_store_consumer.h" |
| 39 #include "chrome/browser/policy/browser_policy_connector.h" | 40 #include "chrome/browser/policy/browser_policy_connector.h" |
| (...skipping 910 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 950 const std::string& ssid); | 951 const std::string& ssid); |
| 951 | 952 |
| 952 virtual const chromeos::WifiNetwork* GetWifiNetwork( | 953 virtual const chromeos::WifiNetwork* GetWifiNetwork( |
| 953 chromeos::NetworkLibrary* network_library); | 954 chromeos::NetworkLibrary* network_library); |
| 954 | 955 |
| 955 private: | 956 private: |
| 956 std::string ssid_; | 957 std::string ssid_; |
| 957 | 958 |
| 958 DISALLOW_COPY_AND_ASSIGN(SSIDConnectObserver); | 959 DISALLOW_COPY_AND_ASSIGN(SSIDConnectObserver); |
| 959 }; | 960 }; |
| 961 | |
| 962 // Waits for a capture success or failure from the camera | |
| 963 // and returns the status to automation provider. | |
| 964 class PhotoCaptureObserver : public chromeos::TakePhotoDialog::Observer { | |
| 965 public: | |
| 966 PhotoCaptureObserver(AutomationProvider* automation, | |
| 967 IPC::Message* reply_message); | |
| 968 virtual ~PhotoCaptureObserver(); | |
| 969 | |
| 970 virtual void OnCaptureSuccess( | |
| 971 chromeos::TakePhotoDialog* dialog, | |
| 972 chromeos::TakePhotoView* take_photo_view); | |
| 973 virtual void OnCaptureFailure( | |
| 974 chromeos::TakePhotoDialog* dialog, | |
| 975 chromeos::TakePhotoView* take_photo_view); | |
| 976 virtual void OnCapturingStopped( | |
| 977 chromeos::TakePhotoDialog* dialog, | |
| 978 chromeos::TakePhotoView* take_photo_view); | |
| 979 | |
| 980 private: | |
| 981 base::WeakPtr<AutomationProvider> automation_; | |
| 982 scoped_ptr<IPC::Message> reply_message_; | |
| 983 | |
| 984 DISALLOW_COPY_AND_ASSIGN(PhotoCaptureObserver); | |
| 985 }; | |
| 960 #endif // defined(OS_CHROMEOS) | 986 #endif // defined(OS_CHROMEOS) |
| 961 | 987 |
| 962 // Waits for the bookmark model to load. | 988 // Waits for the bookmark model to load. |
| 963 class AutomationProviderBookmarkModelObserver : public BookmarkModelObserver { | 989 class AutomationProviderBookmarkModelObserver : public BookmarkModelObserver { |
| 964 public: | 990 public: |
| 965 AutomationProviderBookmarkModelObserver(AutomationProvider* provider, | 991 AutomationProviderBookmarkModelObserver(AutomationProvider* provider, |
| 966 IPC::Message* reply_message, | 992 IPC::Message* reply_message, |
| 967 BookmarkModel* model); | 993 BookmarkModel* model); |
| 968 virtual ~AutomationProviderBookmarkModelObserver(); | 994 virtual ~AutomationProviderBookmarkModelObserver(); |
| 969 | 995 |
| (...skipping 644 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1614 | 1640 |
| 1615 private: | 1641 private: |
| 1616 NotificationRegistrar registrar_; | 1642 NotificationRegistrar registrar_; |
| 1617 base::WeakPtr<AutomationProvider> automation_; | 1643 base::WeakPtr<AutomationProvider> automation_; |
| 1618 scoped_ptr<IPC::Message> reply_message_; | 1644 scoped_ptr<IPC::Message> reply_message_; |
| 1619 | 1645 |
| 1620 DISALLOW_COPY_AND_ASSIGN(DragTargetDropAckNotificationObserver); | 1646 DISALLOW_COPY_AND_ASSIGN(DragTargetDropAckNotificationObserver); |
| 1621 }; | 1647 }; |
| 1622 | 1648 |
| 1623 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_ | 1649 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_ |
| OLD | NEW |