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

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

Issue 8387039: Move content_restriction.h and main_function_params.h to content/public/common, and put them in t... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 win32-specific. 5 // Contains functions used by BrowserMain() that are win32-specific.
6 6
7 #ifndef CHROME_BROWSER_CHROME_BROWSER_MAIN_WIN_H_ 7 #ifndef CHROME_BROWSER_CHROME_BROWSER_MAIN_WIN_H_
8 #define CHROME_BROWSER_CHROME_BROWSER_MAIN_WIN_H_ 8 #define CHROME_BROWSER_CHROME_BROWSER_MAIN_WIN_H_
9 #pragma once 9 #pragma once
10 10
11 #include "chrome/browser/chrome_browser_main.h" 11 #include "chrome/browser/chrome_browser_main.h"
12 12
13 class CommandLine; 13 class CommandLine;
14 14
15 // Handle uninstallation when given the appropriate the command-line switch. 15 // Handle uninstallation when given the appropriate the command-line switch.
16 // If |chrome_still_running| is true a modal dialog will be shown asking the 16 // If |chrome_still_running| is true a modal dialog will be shown asking the
17 // user to close the other chrome instance. 17 // user to close the other chrome instance.
18 int DoUninstallTasks(bool chrome_still_running); 18 int DoUninstallTasks(bool chrome_still_running);
19 19
20 class ChromeBrowserMainPartsWin : public ChromeBrowserMainParts { 20 class ChromeBrowserMainPartsWin : public ChromeBrowserMainParts {
21 public: 21 public:
22 explicit ChromeBrowserMainPartsWin(const MainFunctionParams& parameters); 22 explicit ChromeBrowserMainPartsWin(
23 const content::MainFunctionParams& parameters);
23 24
24 // BrowserParts overrides. 25 // BrowserParts overrides.
25 virtual void PreMainMessageLoopStart() OVERRIDE; 26 virtual void PreMainMessageLoopStart() OVERRIDE;
26 27
27 // ChromeBrowserMainParts overrides. 28 // ChromeBrowserMainParts overrides.
28 virtual void ShowMissingLocaleMessageBox() OVERRIDE; 29 virtual void ShowMissingLocaleMessageBox() OVERRIDE;
29 30
30 // Prepares the localized strings that are going to be displayed to 31 // Prepares the localized strings that are going to be displayed to
31 // the user if the browser process dies. These strings are stored in the 32 // the user if the browser process dies. These strings are stored in the
32 // environment block so they are accessible in the early stages of the 33 // environment block so they are accessible in the early stages of the
(...skipping 13 matching lines...) Expand all
46 static int HandleIconsCommands(const CommandLine& parsed_command_line); 47 static int HandleIconsCommands(const CommandLine& parsed_command_line);
47 48
48 // Check if there is any machine level Chrome installed on the current 49 // Check if there is any machine level Chrome installed on the current
49 // machine. If yes and the current Chrome process is user level, we do not 50 // machine. If yes and the current Chrome process is user level, we do not
50 // allow the user level Chrome to run. So we notify the user and uninstall 51 // allow the user level Chrome to run. So we notify the user and uninstall
51 // user level Chrome. 52 // user level Chrome.
52 static bool CheckMachineLevelInstall(); 53 static bool CheckMachineLevelInstall();
53 }; 54 };
54 55
55 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_WIN_H_ 56 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_WIN_H_
OLDNEW
« no previous file with comments | « chrome/browser/chrome_browser_main_unittest.cc ('k') | chrome/browser/chrome_browser_main_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698