| // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #ifndef CHROME_BROWSER_UI_AURA_CHROME_BROWSER_MAIN_EXTRA_PARTS_AURA_H_ |
| #define CHROME_BROWSER_UI_AURA_CHROME_BROWSER_MAIN_EXTRA_PARTS_AURA_H_ |
| |
| #include "base/basictypes.h" |
| #include "base/compiler_specific.h" |
| #include "base/memory/scoped_ptr.h" |
| #include "chrome/browser/chrome_browser_main_extra_parts.h" |
| |
| class ActiveDesktopMonitor; |
| |
| class ChromeBrowserMainExtraPartsAura : public ChromeBrowserMainExtraParts { |
| public: |
| ChromeBrowserMainExtraPartsAura(); |
| virtual ~ChromeBrowserMainExtraPartsAura(); |
| |
| // Overridden from ChromeBrowserMainExtraParts: |
| virtual void PreEarlyInitialization() OVERRIDE; |
| virtual void ToolkitInitialized() OVERRIDE; |
| virtual void PreCreateThreads() OVERRIDE; |
| virtual void PreProfileInit() OVERRIDE; |
| virtual void PostMainMessageLoopRun() OVERRIDE; |
| |
| private: |
| #if defined(OS_LINUX) && !defined(OS_CHROMEOS) |
| // On the Linux desktop, we want to prevent the user from logging in as root, |
| // so that we don't destroy the profile. |
| void DetectRunningAsRoot(); |
| #endif |
| |
| scoped_ptr<ActiveDesktopMonitor> active_desktop_monitor_; |
| |
| DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainExtraPartsAura); |
| }; |
| |
| #endif // CHROME_BROWSER_UI_AURA_CHROME_BROWSER_MAIN_EXTRA_PARTS_AURA_H_ |