| 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/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "chrome/browser/chrome_browser_main_linux.h" | 10 #include "chrome/browser/chrome_browser_main_linux.h" |
| 11 | 11 |
| 12 namespace chromeos { | 12 namespace chromeos { |
| 13 class BrightnessObserver; | 13 class BrightnessObserver; |
| 14 class MediaDeviceNotifications; | 14 class MediaDeviceNotifications; |
| 15 class OutputObserver; | 15 class OutputObserver; |
| 16 class PowerButtonObserver; | 16 class PowerButtonObserver; |
| 17 class PowerStateOverride; | 17 class PowerStateOverride; |
| 18 class ResumeObserver; | 18 class ResumeObserver; |
| 19 class ScreenDimmingObserver; | 19 class ScreenDimmingObserver; |
| 20 class ScreenLockObserver; | 20 class ScreenLockObserver; |
| 21 class SessionManagerObserver; | 21 class SessionManagerObserver; |
| 22 class UserActivityNotifier; | 22 class UserActivityNotifier; |
| 23 class VideoActivityNotifier; | 23 class VideoActivityNotifier; |
| 24 } // namespace chromeos | 24 } // namespace chromeos |
| 25 | 25 |
| 26 namespace contacts { |
| 27 class ContactManager; |
| 28 } // namespace contacts |
| 29 |
| 26 namespace policy { | 30 namespace policy { |
| 27 class NetworkConfigurationUpdater; | 31 class NetworkConfigurationUpdater; |
| 28 } // namespace policy | 32 } // namespace policy |
| 29 | 33 |
| 30 class ChromeBrowserMainPartsChromeos : public ChromeBrowserMainPartsLinux { | 34 class ChromeBrowserMainPartsChromeos : public ChromeBrowserMainPartsLinux { |
| 31 public: | 35 public: |
| 32 explicit ChromeBrowserMainPartsChromeos( | 36 explicit ChromeBrowserMainPartsChromeos( |
| 33 const content::MainFunctionParams& parameters); | 37 const content::MainFunctionParams& parameters); |
| 34 virtual ~ChromeBrowserMainPartsChromeos(); | 38 virtual ~ChromeBrowserMainPartsChromeos(); |
| 35 | 39 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 46 virtual void PostBrowserStart() OVERRIDE; | 50 virtual void PostBrowserStart() OVERRIDE; |
| 47 | 51 |
| 48 virtual void PostMainMessageLoopRun() OVERRIDE; | 52 virtual void PostMainMessageLoopRun() OVERRIDE; |
| 49 | 53 |
| 50 virtual void SetupPlatformFieldTrials() OVERRIDE; | 54 virtual void SetupPlatformFieldTrials() OVERRIDE; |
| 51 | 55 |
| 52 private: | 56 private: |
| 53 // Set up field trial for low memory headroom settings. | 57 // Set up field trial for low memory headroom settings. |
| 54 void SetupLowMemoryHeadroomFieldTrial(); | 58 void SetupLowMemoryHeadroomFieldTrial(); |
| 55 | 59 |
| 60 scoped_ptr<contacts::ContactManager> contact_manager_; |
| 56 scoped_ptr<chromeos::BrightnessObserver> brightness_observer_; | 61 scoped_ptr<chromeos::BrightnessObserver> brightness_observer_; |
| 57 scoped_ptr<chromeos::OutputObserver> output_observer_; | 62 scoped_ptr<chromeos::OutputObserver> output_observer_; |
| 58 scoped_ptr<chromeos::ResumeObserver> resume_observer_; | 63 scoped_ptr<chromeos::ResumeObserver> resume_observer_; |
| 59 scoped_ptr<chromeos::ScreenLockObserver> screen_lock_observer_; | 64 scoped_ptr<chromeos::ScreenLockObserver> screen_lock_observer_; |
| 60 scoped_ptr<chromeos::SessionManagerObserver> session_manager_observer_; | 65 scoped_ptr<chromeos::SessionManagerObserver> session_manager_observer_; |
| 61 scoped_ptr<chromeos::PowerButtonObserver> power_button_observer_; | 66 scoped_ptr<chromeos::PowerButtonObserver> power_button_observer_; |
| 62 scoped_ptr<chromeos::PowerStateOverride> power_state_override_; | 67 scoped_ptr<chromeos::PowerStateOverride> power_state_override_; |
| 63 scoped_ptr<chromeos::UserActivityNotifier> user_activity_notifier_; | 68 scoped_ptr<chromeos::UserActivityNotifier> user_activity_notifier_; |
| 64 scoped_ptr<chromeos::VideoActivityNotifier> video_activity_notifier_; | 69 scoped_ptr<chromeos::VideoActivityNotifier> video_activity_notifier_; |
| 65 scoped_ptr<chromeos::ScreenDimmingObserver> screen_dimming_observer_; | 70 scoped_ptr<chromeos::ScreenDimmingObserver> screen_dimming_observer_; |
| 66 scoped_ptr<policy::NetworkConfigurationUpdater> network_config_updater_; | 71 scoped_ptr<policy::NetworkConfigurationUpdater> network_config_updater_; |
| 67 scoped_refptr<chromeos::MediaDeviceNotifications> media_device_notifications_; | 72 scoped_refptr<chromeos::MediaDeviceNotifications> media_device_notifications_; |
| 68 | 73 |
| 69 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainPartsChromeos); | 74 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainPartsChromeos); |
| 70 }; | 75 }; |
| 71 | 76 |
| 72 #endif // CHROME_BROWSER_CHROMEOS_CHROME_BROWSER_MAIN_CHROMEOS_H_ | 77 #endif // CHROME_BROWSER_CHROMEOS_CHROME_BROWSER_MAIN_CHROMEOS_H_ |
| OLD | NEW |