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 MediaTransferProtocolDeviceObserver; |
| 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 namespace policy { | 35 namespace policy { |
31 class NetworkConfigurationUpdater; | 36 class NetworkConfigurationUpdater; |
32 } // namespace policy | 37 } // namespace policy |
33 | 38 |
(...skipping 18 matching lines...) Expand all Loading... |
52 virtual void PostMainMessageLoopRun() OVERRIDE; | 57 virtual void PostMainMessageLoopRun() OVERRIDE; |
53 | 58 |
54 virtual void SetupPlatformFieldTrials() OVERRIDE; | 59 virtual void SetupPlatformFieldTrials() OVERRIDE; |
55 | 60 |
56 private: | 61 private: |
57 // Set up field trial for low memory headroom settings. | 62 // Set up field trial for low memory headroom settings. |
58 void SetupLowMemoryHeadroomFieldTrial(); | 63 void SetupLowMemoryHeadroomFieldTrial(); |
59 | 64 |
60 scoped_ptr<contacts::ContactManager> contact_manager_; | 65 scoped_ptr<contacts::ContactManager> contact_manager_; |
61 scoped_ptr<chromeos::BrightnessObserver> brightness_observer_; | 66 scoped_ptr<chromeos::BrightnessObserver> brightness_observer_; |
| 67 scoped_ptr<chromeos::mtp::MediaTransferProtocolDeviceObserver> |
| 68 media_transfer_protocol_device_observer_; |
62 scoped_ptr<chromeos::OutputObserver> output_observer_; | 69 scoped_ptr<chromeos::OutputObserver> output_observer_; |
63 scoped_ptr<chromeos::ResumeObserver> resume_observer_; | 70 scoped_ptr<chromeos::ResumeObserver> resume_observer_; |
64 scoped_ptr<chromeos::ScreenLockObserver> screen_lock_observer_; | 71 scoped_ptr<chromeos::ScreenLockObserver> screen_lock_observer_; |
65 scoped_ptr<chromeos::SessionManagerObserver> session_manager_observer_; | 72 scoped_ptr<chromeos::SessionManagerObserver> session_manager_observer_; |
66 scoped_ptr<chromeos::PowerButtonObserver> power_button_observer_; | 73 scoped_ptr<chromeos::PowerButtonObserver> power_button_observer_; |
67 scoped_ptr<chromeos::PowerStateOverride> power_state_override_; | 74 scoped_ptr<chromeos::PowerStateOverride> power_state_override_; |
68 scoped_ptr<chromeos::UserActivityNotifier> user_activity_notifier_; | 75 scoped_ptr<chromeos::UserActivityNotifier> user_activity_notifier_; |
69 scoped_ptr<chromeos::VideoActivityNotifier> video_activity_notifier_; | 76 scoped_ptr<chromeos::VideoActivityNotifier> video_activity_notifier_; |
70 scoped_ptr<chromeos::ScreenDimmingObserver> screen_dimming_observer_; | 77 scoped_ptr<chromeos::ScreenDimmingObserver> screen_dimming_observer_; |
71 scoped_ptr<policy::NetworkConfigurationUpdater> network_config_updater_; | 78 scoped_ptr<policy::NetworkConfigurationUpdater> network_config_updater_; |
72 scoped_refptr<chromeos::MediaDeviceNotifications> media_device_notifications_; | 79 scoped_refptr<chromeos::MediaDeviceNotifications> media_device_notifications_; |
73 | 80 |
74 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainPartsChromeos); | 81 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainPartsChromeos); |
75 }; | 82 }; |
76 | 83 |
77 #endif // CHROME_BROWSER_CHROMEOS_CHROME_BROWSER_MAIN_CHROMEOS_H_ | 84 #endif // CHROME_BROWSER_CHROMEOS_CHROME_BROWSER_MAIN_CHROMEOS_H_ |
OLD | NEW |