OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #if defined(TOOLKIT_USES_GTK) | 9 #if defined(TOOLKIT_USES_GTK) |
10 #include "chrome/browser/chrome_browser_main_gtk.h" | 10 #include "chrome/browser/chrome_browser_main_gtk.h" |
11 typedef ChromeBrowserMainPartsGtk ChromeBrowserMainPartsBase; | 11 typedef ChromeBrowserMainPartsGtk ChromeBrowserMainPartsBase; |
12 #else | 12 #else |
13 #include "chrome/browser/chrome_browser_main_posix.h" | 13 #include "chrome/browser/chrome_browser_main_posix.h" |
14 #include "chrome/browser/chrome_browser_main_x11.h" | 14 #include "chrome/browser/chrome_browser_main_x11.h" |
15 typedef ChromeBrowserMainPartsPosix ChromeBrowserMainPartsBase; | 15 typedef ChromeBrowserMainPartsPosix ChromeBrowserMainPartsBase; |
16 #endif | 16 #endif |
17 | 17 |
18 namespace chromeos { | 18 namespace chromeos { |
19 class BrightnessObserver; | 19 class BrightnessObserver; |
| 20 class SessionManagerObserver; |
20 } // namespace chromeos | 21 } // namespace chromeos |
21 | 22 |
22 class ChromeBrowserMainPartsChromeos : public ChromeBrowserMainPartsBase { | 23 class ChromeBrowserMainPartsChromeos : public ChromeBrowserMainPartsBase { |
23 public: | 24 public: |
24 explicit ChromeBrowserMainPartsChromeos(const MainFunctionParams& parameters); | 25 explicit ChromeBrowserMainPartsChromeos(const MainFunctionParams& parameters); |
25 | 26 |
26 virtual ~ChromeBrowserMainPartsChromeos(); | 27 virtual ~ChromeBrowserMainPartsChromeos(); |
27 | 28 |
28 virtual void PreEarlyInitialization() OVERRIDE; | 29 virtual void PreEarlyInitialization() OVERRIDE; |
29 virtual void PreMainMessageLoopStart() OVERRIDE; | 30 virtual void PreMainMessageLoopStart() OVERRIDE; |
30 virtual void PreMainMessageLoopRun() OVERRIDE; | 31 virtual void PreMainMessageLoopRun() OVERRIDE; |
31 virtual void PostMainMessageLoopStart() OVERRIDE; | 32 virtual void PostMainMessageLoopStart() OVERRIDE; |
32 | 33 |
33 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainPartsChromeos); | |
34 | |
35 private: | 34 private: |
36 scoped_ptr<chromeos::BrightnessObserver> brightness_observer_; | 35 scoped_ptr<chromeos::BrightnessObserver> brightness_observer_; |
| 36 scoped_ptr<chromeos::SessionManagerObserver> session_manager_observer_; |
| 37 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainPartsChromeos); |
37 }; | 38 }; |
38 | 39 |
39 #endif // CHROME_BROWSER_CHROMEOS_CHROME_BROWSER_MAIN_CHROMEOS_H_ | 40 #endif // CHROME_BROWSER_CHROMEOS_CHROME_BROWSER_MAIN_CHROMEOS_H_ |
OLD | NEW |