| 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_CHROMEOS_CHROME_BROWSER_MAIN_CHROMEOS_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_CHROME_BROWSER_MAIN_CHROMEOS_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_CHROME_BROWSER_MAIN_CHROMEOS_H_ | 6 #define CHROME_BROWSER_CHROMEOS_CHROME_BROWSER_MAIN_CHROMEOS_H_ |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/task/cancelable_task_tracker.h" | 9 #include "base/task/cancelable_task_tracker.h" |
| 10 #include "chrome/browser/chrome_browser_main_linux.h" | 10 #include "chrome/browser/chrome_browser_main_linux.h" |
| 11 #include "chrome/browser/chromeos/version_loader.h" | 11 #include "chrome/browser/chromeos/version_loader.h" |
| 12 | 12 |
| 13 namespace content { | 13 namespace content { |
| 14 class PowerSaveBlocker; | 14 class PowerSaveBlocker; |
| 15 } | 15 } |
| 16 | 16 |
| 17 namespace chromeos { | 17 namespace chromeos { |
| 18 | 18 |
| 19 class ChromeNetworkWatcher; |
| 19 class DataPromoNotification; | 20 class DataPromoNotification; |
| 20 class EventRewriter; | 21 class EventRewriter; |
| 21 class ExtensionSystemEventObserver; | 22 class ExtensionSystemEventObserver; |
| 22 class IdleActionWarningObserver; | 23 class IdleActionWarningObserver; |
| 23 class MagnificationManager; | 24 class MagnificationManager; |
| 24 class PeripheralBatteryObserver; | 25 class PeripheralBatteryObserver; |
| 25 class PowerButtonObserver; | 26 class PowerButtonObserver; |
| 26 class PowerPrefs; | 27 class PowerPrefs; |
| 27 class SessionManagerObserver; | 28 class SessionManagerObserver; |
| 28 class SwapMetrics; | 29 class SwapMetrics; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 50 // Stages called from PreMainMessageLoopRun. | 51 // Stages called from PreMainMessageLoopRun. |
| 51 virtual void PreProfileInit() OVERRIDE; | 52 virtual void PreProfileInit() OVERRIDE; |
| 52 virtual void PostProfileInit() OVERRIDE; | 53 virtual void PostProfileInit() OVERRIDE; |
| 53 virtual void PreBrowserStart() OVERRIDE; | 54 virtual void PreBrowserStart() OVERRIDE; |
| 54 virtual void PostBrowserStart() OVERRIDE; | 55 virtual void PostBrowserStart() OVERRIDE; |
| 55 | 56 |
| 56 virtual void PostMainMessageLoopRun() OVERRIDE; | 57 virtual void PostMainMessageLoopRun() OVERRIDE; |
| 57 virtual void PostDestroyThreads() OVERRIDE; | 58 virtual void PostDestroyThreads() OVERRIDE; |
| 58 | 59 |
| 59 private: | 60 private: |
| 60 scoped_ptr<default_app_order::ExternalLoader> app_order_loader_; | 61 // PostMainMessageLoopStart |
| 61 scoped_ptr<ExtensionSystemEventObserver> extension_system_event_observer_; | |
| 62 scoped_ptr<PeripheralBatteryObserver> peripheral_battery_observer_; | |
| 63 scoped_ptr<PowerPrefs> power_prefs_; | |
| 64 scoped_ptr<PowerButtonObserver> power_button_observer_; | |
| 65 scoped_ptr<content::PowerSaveBlocker> retail_mode_power_save_blocker_; | |
| 66 scoped_ptr<IdleActionWarningObserver> idle_action_warning_observer_; | |
| 67 scoped_ptr<DataPromoNotification> data_promo_notification_; | |
| 68 | |
| 69 scoped_ptr<internal::DBusServices> dbus_services_; | 62 scoped_ptr<internal::DBusServices> dbus_services_; |
| 70 | 63 |
| 64 // PreProfileInit |
| 65 scoped_ptr<ChromeNetworkWatcher> chrome_network_watcher_; |
| 66 scoped_ptr<default_app_order::ExternalLoader> app_order_loader_; |
| 67 scoped_ptr<PowerPrefs> power_prefs_; |
| 68 |
| 69 // PostProfileInit |
| 70 scoped_ptr<ExtensionSystemEventObserver> extension_system_event_observer_; |
| 71 scoped_ptr<content::PowerSaveBlocker> retail_mode_power_save_blocker_; |
| 72 scoped_ptr<PeripheralBatteryObserver> peripheral_battery_observer_; |
| 73 scoped_ptr<IdleActionWarningObserver> idle_action_warning_observer_; |
| 74 |
| 75 // PreBrowserStart |
| 71 #if defined(USE_X11) | 76 #if defined(USE_X11) |
| 72 scoped_ptr<EventRewriter> event_rewriter_; | 77 scoped_ptr<EventRewriter> event_rewriter_; |
| 73 #endif | 78 #endif |
| 74 | 79 |
| 80 // PostBrowserStart |
| 81 scoped_ptr<PowerButtonObserver> power_button_observer_; |
| 82 scoped_ptr<DataPromoNotification> data_promo_notification_; |
| 83 |
| 75 VersionLoader cros_version_loader_; | 84 VersionLoader cros_version_loader_; |
| 76 base::CancelableTaskTracker tracker_; | 85 base::CancelableTaskTracker tracker_; |
| 77 bool use_new_network_change_notifier_; | 86 bool use_new_network_change_notifier_; |
| 78 | 87 |
| 79 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainPartsChromeos); | 88 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainPartsChromeos); |
| 80 }; | 89 }; |
| 81 | 90 |
| 82 } // namespace chromeos | 91 } // namespace chromeos |
| 83 | 92 |
| 84 #endif // CHROME_BROWSER_CHROMEOS_CHROME_BROWSER_MAIN_CHROMEOS_H_ | 93 #endif // CHROME_BROWSER_CHROMEOS_CHROME_BROWSER_MAIN_CHROMEOS_H_ |
| OLD | NEW |