// Copyright (c) 2010 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. // Contains functions used by BrowserMain() that are gtk-specific. #ifndef CHROME_BROWSER_CHROME_BROWSER_MAIN_GTK_H_ #define CHROME_BROWSER_CHROME_BROWSER_MAIN_GTK_H_ #pragma once #include "base/compiler_specific.h" #include "chrome/browser/chrome_browser_main_posix.h" class ChromeBrowserMainPartsGtk : public ChromeBrowserMainPartsPosix { public: explicit ChromeBrowserMainPartsGtk(const MainFunctionParams& parameters); virtual void PreEarlyInitialization() OVERRIDE; private: void DetectRunningAsRoot(); }; // Installs the X11 error handlers for the browser process. This will // allow us to exit cleanly if X exits before us. void SetBrowserX11ErrorHandlers(); #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_GTK_H_