| 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_UI_AURA_CHROME_BROWSER_MAIN_EXTRA_PARTS_AURA_H_ | 5 #ifndef CHROME_BROWSER_UI_AURA_CHROME_BROWSER_MAIN_EXTRA_PARTS_AURA_H_ |
| 6 #define CHROME_BROWSER_UI_AURA_CHROME_BROWSER_MAIN_EXTRA_PARTS_AURA_H_ | 6 #define CHROME_BROWSER_UI_AURA_CHROME_BROWSER_MAIN_EXTRA_PARTS_AURA_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 11 #include "build/build_config.h" | 11 #include "build/build_config.h" |
| 12 #include "chrome/browser/chrome_browser_main_extra_parts.h" | 12 #include "chrome/browser/chrome_browser_main_extra_parts.h" |
| 13 | 13 |
| 14 class ActiveDesktopMonitor; | 14 class ActiveDesktopMonitor; |
| 15 | 15 |
| 16 class ChromeBrowserMainExtraPartsAura : public ChromeBrowserMainExtraParts { | 16 class ChromeBrowserMainExtraPartsAura : public ChromeBrowserMainExtraParts { |
| 17 public: | 17 public: |
| 18 ChromeBrowserMainExtraPartsAura(); | 18 ChromeBrowserMainExtraPartsAura(); |
| 19 ~ChromeBrowserMainExtraPartsAura() override; | 19 ~ChromeBrowserMainExtraPartsAura() override; |
| 20 | 20 |
| 21 // Overridden from ChromeBrowserMainExtraParts: | 21 // Overridden from ChromeBrowserMainExtraParts: |
| 22 void PreEarlyInitialization() override; | 22 void PreEarlyInitialization() override; |
| 23 void ToolkitInitialized() override; | 23 void ToolkitInitialized() override; |
| 24 void PreCreateThreads() override; | 24 void PreCreateThreadsBegin() override; |
| 25 void PreProfileInit() override; | 25 void PreProfileInit() override; |
| 26 void PostMainMessageLoopRun() override; | 26 void PostMainMessageLoopRun() override; |
| 27 | 27 |
| 28 private: | 28 private: |
| 29 #if defined(OS_LINUX) && !defined(OS_CHROMEOS) | 29 #if defined(OS_LINUX) && !defined(OS_CHROMEOS) |
| 30 // On the Linux desktop, we want to prevent the user from logging in as root, | 30 // On the Linux desktop, we want to prevent the user from logging in as root, |
| 31 // so that we don't destroy the profile. | 31 // so that we don't destroy the profile. |
| 32 void DetectRunningAsRoot(); | 32 void DetectRunningAsRoot(); |
| 33 #endif | 33 #endif |
| 34 | 34 |
| 35 scoped_ptr<ActiveDesktopMonitor> active_desktop_monitor_; | 35 scoped_ptr<ActiveDesktopMonitor> active_desktop_monitor_; |
| 36 | 36 |
| 37 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainExtraPartsAura); | 37 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainExtraPartsAura); |
| 38 }; | 38 }; |
| 39 | 39 |
| 40 #endif // CHROME_BROWSER_UI_AURA_CHROME_BROWSER_MAIN_EXTRA_PARTS_AURA_H_ | 40 #endif // CHROME_BROWSER_UI_AURA_CHROME_BROWSER_MAIN_EXTRA_PARTS_AURA_H_ |
| OLD | NEW |