| 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 |
| 25 namespace mtp { |
| 26 class MediaTransferProtocolDeviceObserverCros; |
| 27 } // namespace mtp |
| 28 |
| 24 } // namespace chromeos | 29 } // namespace chromeos |
| 25 | 30 |
| 26 namespace contacts { | 31 namespace contacts { |
| 27 class ContactManager; | 32 class ContactManager; |
| 28 } // namespace contacts | 33 } // namespace contacts |
| 29 | 34 |
| 30 class ChromeBrowserMainPartsChromeos : public ChromeBrowserMainPartsLinux { | 35 class ChromeBrowserMainPartsChromeos : public ChromeBrowserMainPartsLinux { |
| 31 public: | 36 public: |
| 32 explicit ChromeBrowserMainPartsChromeos( | 37 explicit ChromeBrowserMainPartsChromeos( |
| 33 const content::MainFunctionParams& parameters); | 38 const content::MainFunctionParams& parameters); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 48 virtual void PostMainMessageLoopRun() OVERRIDE; | 53 virtual void PostMainMessageLoopRun() OVERRIDE; |
| 49 | 54 |
| 50 virtual void SetupPlatformFieldTrials() OVERRIDE; | 55 virtual void SetupPlatformFieldTrials() OVERRIDE; |
| 51 | 56 |
| 52 private: | 57 private: |
| 53 // Set up field trial for low memory headroom settings. | 58 // Set up field trial for low memory headroom settings. |
| 54 void SetupLowMemoryHeadroomFieldTrial(); | 59 void SetupLowMemoryHeadroomFieldTrial(); |
| 55 | 60 |
| 56 scoped_ptr<contacts::ContactManager> contact_manager_; | 61 scoped_ptr<contacts::ContactManager> contact_manager_; |
| 57 scoped_ptr<chromeos::BrightnessObserver> brightness_observer_; | 62 scoped_ptr<chromeos::BrightnessObserver> brightness_observer_; |
| 63 scoped_ptr<chromeos::mtp::MediaTransferProtocolDeviceObserverCros> |
| 64 media_transfer_protocol_device_observer_; |
| 58 scoped_ptr<chromeos::OutputObserver> output_observer_; | 65 scoped_ptr<chromeos::OutputObserver> output_observer_; |
| 59 scoped_ptr<chromeos::ResumeObserver> resume_observer_; | 66 scoped_ptr<chromeos::ResumeObserver> resume_observer_; |
| 60 scoped_ptr<chromeos::ScreenLockObserver> screen_lock_observer_; | 67 scoped_ptr<chromeos::ScreenLockObserver> screen_lock_observer_; |
| 61 scoped_ptr<chromeos::PowerButtonObserver> power_button_observer_; | 68 scoped_ptr<chromeos::PowerButtonObserver> power_button_observer_; |
| 62 scoped_ptr<chromeos::PowerStateOverride> power_state_override_; | 69 scoped_ptr<chromeos::PowerStateOverride> power_state_override_; |
| 63 scoped_ptr<chromeos::UserActivityNotifier> user_activity_notifier_; | 70 scoped_ptr<chromeos::UserActivityNotifier> user_activity_notifier_; |
| 64 scoped_ptr<chromeos::VideoActivityNotifier> video_activity_notifier_; | 71 scoped_ptr<chromeos::VideoActivityNotifier> video_activity_notifier_; |
| 65 scoped_ptr<chromeos::ScreenDimmingObserver> screen_dimming_observer_; | 72 scoped_ptr<chromeos::ScreenDimmingObserver> screen_dimming_observer_; |
| 66 scoped_refptr<chromeos::MediaDeviceNotifications> media_device_notifications_; | 73 scoped_refptr<chromeos::MediaDeviceNotifications> media_device_notifications_; |
| 67 | 74 |
| 68 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainPartsChromeos); | 75 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainPartsChromeos); |
| 69 }; | 76 }; |
| 70 | 77 |
| 71 #endif // CHROME_BROWSER_CHROMEOS_CHROME_BROWSER_MAIN_CHROMEOS_H_ | 78 #endif // CHROME_BROWSER_CHROMEOS_CHROME_BROWSER_MAIN_CHROMEOS_H_ |
| OLD | NEW |