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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_CHROMEOS_CHROME_BROWSER_MAIN_CHROMEOS_H_
6 #define CHROME_BROWSER_CHROMEOS_CHROME_BROWSER_MAIN_CHROMEOS_H_
8 #include "base/memory/scoped_ptr.h"
9 #include "base/task/cancelable_task_tracker.h"
10 #include "chrome/browser/chrome_browser_main_linux.h"
11 #include "chrome/browser/chromeos/version_loader.h"
14 class PowerSaveBlocker;
19 class DataPromoNotification;
21 class EventRewriterController;
22 class ExtensionSystemEventObserver;
23 class IdleActionWarningObserver;
24 class MagnificationManager;
25 class PeripheralBatteryObserver;
26 class PowerButtonObserver;
28 class SessionManagerObserver;
31 namespace default_app_order {
39 class ChromeBrowserMainPartsChromeos : public ChromeBrowserMainPartsLinux {
41 explicit ChromeBrowserMainPartsChromeos(
42 const content::MainFunctionParams& parameters);
43 virtual ~ChromeBrowserMainPartsChromeos();
45 // ChromeBrowserMainParts overrides.
46 virtual void PreEarlyInitialization() OVERRIDE;
47 virtual void PreMainMessageLoopStart() OVERRIDE;
48 virtual void PostMainMessageLoopStart() OVERRIDE;
49 virtual void PreMainMessageLoopRun() OVERRIDE;
51 // Stages called from PreMainMessageLoopRun.
52 virtual void PreProfileInit() OVERRIDE;
53 virtual void PostProfileInit() OVERRIDE;
54 virtual void PreBrowserStart() OVERRIDE;
55 virtual void PostBrowserStart() OVERRIDE;
57 virtual void PostMainMessageLoopRun() OVERRIDE;
58 virtual void PostDestroyThreads() OVERRIDE;
61 scoped_ptr<default_app_order::ExternalLoader> app_order_loader_;
62 scoped_ptr<ExtensionSystemEventObserver> extension_system_event_observer_;
63 scoped_ptr<PeripheralBatteryObserver> peripheral_battery_observer_;
64 scoped_ptr<PowerPrefs> power_prefs_;
65 scoped_ptr<PowerButtonObserver> power_button_observer_;
66 scoped_ptr<content::PowerSaveBlocker> retail_mode_power_save_blocker_;
67 scoped_ptr<IdleActionWarningObserver> idle_action_warning_observer_;
68 scoped_ptr<DataPromoNotification> data_promo_notification_;
70 scoped_ptr<internal::DBusServices> dbus_services_;
72 scoped_ptr<EventRewriterController> keyboard_event_rewriters_;
74 VersionLoader cros_version_loader_;
75 base::CancelableTaskTracker tracker_;
76 bool use_new_network_change_notifier_;
78 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainPartsChromeos);
81 } // namespace chromeos
83 #endif // CHROME_BROWSER_CHROMEOS_CHROME_BROWSER_MAIN_CHROMEOS_H_