Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(212)

Side by Side Diff: chrome/browser/browser_main_gtk.h

Issue 7840041: Refactor some more BrowserMain code. Move core code that's required by all embedders to content. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: review comments Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/browser_main.cc ('k') | chrome/browser/browser_main_gtk.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Contains functions used by BrowserMain() that are gtk-specific. 5 // Contains functions used by BrowserMain() that are gtk-specific.
6 6
7 #ifndef CHROME_BROWSER_BROWSER_MAIN_GTK_H_ 7 #ifndef CHROME_BROWSER_BROWSER_MAIN_GTK_H_
8 #define CHROME_BROWSER_BROWSER_MAIN_GTK_H_ 8 #define CHROME_BROWSER_BROWSER_MAIN_GTK_H_
9 #pragma once 9 #pragma once
10 10
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "chrome/browser/browser_main_posix.h" 12 #include "chrome/browser/browser_main_posix.h"
13 13
14 class BrowserMainPartsGtk : public BrowserMainPartsPosix { 14 class BrowserMainPartsGtk : public BrowserMainPartsPosix {
15 public: 15 public:
16 explicit BrowserMainPartsGtk(const MainFunctionParams& parameters); 16 explicit BrowserMainPartsGtk(const MainFunctionParams& parameters);
17 17
18 virtual void PreEarlyInitialization() OVERRIDE; 18 virtual void PreEarlyInitialization() OVERRIDE;
19 19
20 private: 20 private:
21 void DetectRunningAsRoot(); 21 void DetectRunningAsRoot();
22 void SetupSandbox();
23 }; 22 };
24 23
25 // Installs the X11 error handlers for the browser process. This will 24 // Installs the X11 error handlers for the browser process. This will
26 // allow us to exit cleanly if X exits before us. 25 // allow us to exit cleanly if X exits before us.
27 void SetBrowserX11ErrorHandlers(); 26 void SetBrowserX11ErrorHandlers();
28 27
29 #endif // CHROME_BROWSER_BROWSER_MAIN_GTK_H_ 28 #endif // CHROME_BROWSER_BROWSER_MAIN_GTK_H_
OLDNEW
« no previous file with comments | « chrome/browser/browser_main.cc ('k') | chrome/browser/browser_main_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698