| OLD | NEW |
| 1 // Copyright (c) 2011 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/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "chrome/browser/chrome_browser_main_linux.h" | 9 #include "chrome/browser/chrome_browser_main_linux.h" |
| 10 | 10 |
| 11 namespace chromeos { | 11 namespace chromeos { |
| 12 class BrightnessObserver; | 12 class BrightnessObserver; |
| 13 class SessionManagerObserver; | 13 class SessionManagerObserver; |
| 14 | 14 |
| 15 #if defined(USE_AURA) | 15 #if defined(USE_AURA) |
| 16 class InitialBrowserWindowObserver; | 16 class InitialBrowserWindowObserver; |
| 17 class PowerButtonObserver; |
| 17 #endif | 18 #endif |
| 18 } // namespace chromeos | 19 } // namespace chromeos |
| 19 | 20 |
| 20 class ChromeBrowserMainPartsChromeos : public ChromeBrowserMainPartsLinux { | 21 class ChromeBrowserMainPartsChromeos : public ChromeBrowserMainPartsLinux { |
| 21 public: | 22 public: |
| 22 explicit ChromeBrowserMainPartsChromeos( | 23 explicit ChromeBrowserMainPartsChromeos( |
| 23 const content::MainFunctionParams& parameters); | 24 const content::MainFunctionParams& parameters); |
| 24 virtual ~ChromeBrowserMainPartsChromeos(); | 25 virtual ~ChromeBrowserMainPartsChromeos(); |
| 25 | 26 |
| 26 // content::BrowserMainParts overrides. | 27 // content::BrowserMainParts overrides. |
| 27 virtual void PreEarlyInitialization() OVERRIDE; | 28 virtual void PreEarlyInitialization() OVERRIDE; |
| 28 virtual void PreMainMessageLoopStart() OVERRIDE; | 29 virtual void PreMainMessageLoopStart() OVERRIDE; |
| 29 virtual void PostMainMessageLoopStart() OVERRIDE; | 30 virtual void PostMainMessageLoopStart() OVERRIDE; |
| 30 virtual void PostMainMessageLoopRun() OVERRIDE; | 31 virtual void PostMainMessageLoopRun() OVERRIDE; |
| 31 | 32 |
| 32 // ChromeBrowserMainExtraParts overrodes. | 33 // ChromeBrowserMainExtraParts overrodes. |
| 33 virtual void PreProfileInit() OVERRIDE; | 34 virtual void PreProfileInit() OVERRIDE; |
| 34 virtual void PostProfileInit() OVERRIDE; | 35 virtual void PostProfileInit() OVERRIDE; |
| 35 virtual void PreBrowserStart() OVERRIDE; | 36 virtual void PreBrowserStart() OVERRIDE; |
| 36 virtual void PostBrowserStart() OVERRIDE; | 37 virtual void PostBrowserStart() OVERRIDE; |
| 37 | 38 |
| 38 private: | 39 private: |
| 39 scoped_ptr<chromeos::BrightnessObserver> brightness_observer_; | 40 scoped_ptr<chromeos::BrightnessObserver> brightness_observer_; |
| 40 scoped_ptr<chromeos::SessionManagerObserver> session_manager_observer_; | 41 scoped_ptr<chromeos::SessionManagerObserver> session_manager_observer_; |
| 41 | 42 |
| 42 #if defined(USE_AURA) | 43 #if defined(USE_AURA) |
| 43 scoped_ptr<chromeos::InitialBrowserWindowObserver> | 44 scoped_ptr<chromeos::InitialBrowserWindowObserver> |
| 44 initial_browser_window_observer_; | 45 initial_browser_window_observer_; |
| 46 scoped_ptr<chromeos::PowerButtonObserver> power_button_observer_; |
| 45 #endif | 47 #endif |
| 46 | 48 |
| 47 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainPartsChromeos); | 49 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainPartsChromeos); |
| 48 }; | 50 }; |
| 49 | 51 |
| 50 #endif // CHROME_BROWSER_CHROMEOS_CHROME_BROWSER_MAIN_CHROMEOS_H_ | 52 #endif // CHROME_BROWSER_CHROMEOS_CHROME_BROWSER_MAIN_CHROMEOS_H_ |
| OLD | NEW |