Fix infinite recursion on hiding panel when created during fullscreen mode.
[chromium-blink-merge.git] / chrome / browser / chromeos / chrome_browser_main_chromeos.h
blobc9bc75e48d240548ce09d07507c9d3d95a9ecf3d
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"
13 namespace content {
14 class PowerSaveBlocker;
17 namespace chromeos {
19 class DataPromoNotification;
20 class EventRewriter;
21 class ExtensionSystemEventObserver;
22 class IdleActionWarningObserver;
23 class MagnificationManager;
24 class PeripheralBatteryObserver;
25 class PowerButtonObserver;
26 class PowerPrefs;
27 class SessionManagerObserver;
28 class SwapMetrics;
30 namespace default_app_order {
31 class ExternalLoader;
34 namespace internal {
35 class DBusServices;
38 class ChromeBrowserMainPartsChromeos : public ChromeBrowserMainPartsLinux {
39 public:
40 explicit ChromeBrowserMainPartsChromeos(
41 const content::MainFunctionParams& parameters);
42 virtual ~ChromeBrowserMainPartsChromeos();
44 // ChromeBrowserMainParts overrides.
45 virtual void PreEarlyInitialization() OVERRIDE;
46 virtual void PreMainMessageLoopStart() OVERRIDE;
47 virtual void PostMainMessageLoopStart() OVERRIDE;
48 virtual void PreMainMessageLoopRun() OVERRIDE;
50 // Stages called from PreMainMessageLoopRun.
51 virtual void PreProfileInit() OVERRIDE;
52 virtual void PostProfileInit() OVERRIDE;
53 virtual void PreBrowserStart() OVERRIDE;
54 virtual void PostBrowserStart() OVERRIDE;
56 virtual void PostMainMessageLoopRun() OVERRIDE;
57 virtual void PostDestroyThreads() OVERRIDE;
59 private:
60 scoped_ptr<default_app_order::ExternalLoader> app_order_loader_;
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_;
69 scoped_ptr<internal::DBusServices> dbus_services_;
70 scoped_ptr<EventRewriter> event_rewriter_;
72 VersionLoader cros_version_loader_;
73 base::CancelableTaskTracker tracker_;
74 bool use_new_network_change_notifier_;
76 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainPartsChromeos);
79 } // namespace chromeos
81 #endif // CHROME_BROWSER_CHROMEOS_CHROME_BROWSER_MAIN_CHROMEOS_H_