summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser_main_gtk.h
blob: 39fb6212beeb0cdbffc752e3142ab49961c1aa83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// 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_BROWSER_MAIN_GTK_H_
#define CHROME_BROWSER_BROWSER_MAIN_GTK_H_
#pragma once

#include "base/compiler_specific.h"
#include "chrome/browser/browser_main_posix.h"

class BrowserMainPartsGtk : public BrowserMainPartsPosix {
 public:
  explicit BrowserMainPartsGtk(const MainFunctionParams& parameters)
      : BrowserMainPartsPosix(parameters) {}

  virtual void PreEarlyInitialization() OVERRIDE;

 private:
  void DetectRunningAsRoot();
  void SetupSandbox();
};

// 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_BROWSER_MAIN_GTK_H_