summaryrefslogtreecommitdiffstats
path: root/chrome/browser/chrome_browser_main_extra_parts_gtk.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/chrome_browser_main_extra_parts_gtk.h')
-rw-r--r--chrome/browser/chrome_browser_main_extra_parts_gtk.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/chrome/browser/chrome_browser_main_extra_parts_gtk.h b/chrome/browser/chrome_browser_main_extra_parts_gtk.h
new file mode 100644
index 0000000..34b596f
--- /dev/null
+++ b/chrome/browser/chrome_browser_main_extra_parts_gtk.h
@@ -0,0 +1,26 @@
+// Copyright (c) 2011 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_EXTRA_PARTS_GTK_H_
+#define CHROME_BROWSER_CHROME_BROWSER_MAIN_EXTRA_PARTS_GTK_H_
+#pragma once
+
+#include "base/compiler_specific.h"
+#include "chrome/browser/chrome_browser_main_extra_parts.h"
+
+class ChromeBrowserMainExtraPartsGtk : public ChromeBrowserMainExtraParts {
+ public:
+ ChromeBrowserMainExtraPartsGtk();
+
+ virtual void PreEarlyInitialization() OVERRIDE;
+
+ static void ShowMessageBox(const char* message);
+
+ private:
+ void DetectRunningAsRoot();
+};
+
+#endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_EXTRA_PARTS_GTK_H_