| // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #ifndef CHROME_BROWSER_CHROMEOS_CHROME_BROWSER_MAIN_CHROMEOS_H_ |
| #define CHROME_BROWSER_CHROMEOS_CHROME_BROWSER_MAIN_CHROMEOS_H_ |
| |
| #include "base/memory/ref_counted.h" |
| #include "base/memory/scoped_ptr.h" |
| #include "chrome/browser/chrome_browser_main_linux.h" |
| |
| namespace chromeos { |
| class BrightnessObserver; |
| class OutputObserver; |
| class PowerButtonObserver; |
| class PowerStateOverride; |
| class RemovableDeviceNotificationsCros; |
| class ResumeObserver; |
| class ScreenDimmingObserver; |
| class ScreenLockObserver; |
| class SessionManagerObserver; |
| class UserActivityNotifier; |
| class VideoActivityNotifier; |
| |
| namespace mtp { |
| class MediaTransferProtocolDeviceObserverCros; |
| } // namespace mtp |
| |
| } // namespace chromeos |
| |
| namespace contacts { |
| class ContactManager; |
| } // namespace contacts |
| |
| class ChromeBrowserMainPartsChromeos : public ChromeBrowserMainPartsLinux { |
| public: |
| explicit ChromeBrowserMainPartsChromeos( |
| const content::MainFunctionParams& parameters); |
| virtual ~ChromeBrowserMainPartsChromeos(); |
| |
| // ChromeBrowserMainParts overrides. |
| virtual void PreEarlyInitialization() OVERRIDE; |
| virtual void PreMainMessageLoopStart() OVERRIDE; |
| virtual void PostMainMessageLoopStart() OVERRIDE; |
| virtual void PreMainMessageLoopRun() OVERRIDE; |
| |
| // Stages called from PreMainMessageLoopRun. |
| virtual void PreProfileInit() OVERRIDE; |
| virtual void PostProfileInit() OVERRIDE; |
| virtual void PreBrowserStart() OVERRIDE; |
| virtual void PostBrowserStart() OVERRIDE; |
| |
| virtual void PostMainMessageLoopRun() OVERRIDE; |
| |
| virtual void SetupPlatformFieldTrials() OVERRIDE; |
| |
| private: |
| // Set up field trial for low memory headroom settings. |
| void SetupLowMemoryHeadroomFieldTrial(); |
| |
| scoped_ptr<contacts::ContactManager> contact_manager_; |
| scoped_ptr<chromeos::BrightnessObserver> brightness_observer_; |
| scoped_ptr<chromeos::mtp::MediaTransferProtocolDeviceObserverCros> |
| media_transfer_protocol_device_observer_; |
| scoped_ptr<chromeos::OutputObserver> output_observer_; |
| scoped_ptr<chromeos::ResumeObserver> resume_observer_; |
| scoped_ptr<chromeos::ScreenLockObserver> screen_lock_observer_; |
| scoped_ptr<chromeos::PowerButtonObserver> power_button_observer_; |
| scoped_ptr<chromeos::PowerStateOverride> power_state_override_; |
| scoped_ptr<chromeos::UserActivityNotifier> user_activity_notifier_; |
| scoped_ptr<chromeos::VideoActivityNotifier> video_activity_notifier_; |
| scoped_ptr<chromeos::ScreenDimmingObserver> screen_dimming_observer_; |
| scoped_refptr<chromeos::RemovableDeviceNotificationsCros> |
| removable_device_notifications_; |
| |
| DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainPartsChromeos); |
| }; |
| |
| #endif // CHROME_BROWSER_CHROMEOS_CHROME_BROWSER_MAIN_CHROMEOS_H_ |