summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/gtk/chrome_browser_main_extra_parts_gtk.h
blob: f6dd4646cf2c310d57a75f61ba814d8becc2a53e (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
// 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_GTK_CHROME_BROWSER_MAIN_EXTRA_PARTS_GTK_H_
#define CHROME_BROWSER_UI_GTK_CHROME_BROWSER_MAIN_EXTRA_PARTS_GTK_H_

#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include "chrome/browser/chrome_browser_main_extra_parts.h"

class ChromeBrowserMainExtraPartsGtk : public ChromeBrowserMainExtraParts {
 public:
  ChromeBrowserMainExtraPartsGtk();

  static void ShowMessageBox(const char* message);

  // Overridden from ChromeBrowserMainExtraParts:
  virtual void PreEarlyInitialization() OVERRIDE;

 private:
  void DetectRunningAsRoot();

  DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainExtraPartsGtk);
};

#endif  // CHROME_BROWSER_UI_GTK_CHROME_BROWSER_MAIN_EXTRA_PARTS_GTK_H_