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

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

Issue 16703025: [StorageMonitor] Move StorageMonitor ownership to BrowserProcessImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 7 years, 6 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
Lei Zhang 2013/06/27 00:09:38 remove
Greg Billock 2013/06/27 18:25:43 Done.
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 namespace chrome {
16 class StorageMonitorWin;
17 } // namespace chrome
18
19
20 // Handle uninstallation when given the appropriate the command-line switch. 15 // Handle uninstallation when given the appropriate the command-line switch.
21 // 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
22 // user to close the other chrome instance. 17 // user to close the other chrome instance.
23 int DoUninstallTasks(bool chrome_still_running); 18 int DoUninstallTasks(bool chrome_still_running);
24 19
25 class ChromeBrowserMainPartsWin : public ChromeBrowserMainParts { 20 class ChromeBrowserMainPartsWin : public ChromeBrowserMainParts {
26 public: 21 public:
27 explicit ChromeBrowserMainPartsWin( 22 explicit ChromeBrowserMainPartsWin(
28 const content::MainFunctionParams& parameters); 23 const content::MainFunctionParams& parameters);
29 24
30 virtual ~ChromeBrowserMainPartsWin(); 25 virtual ~ChromeBrowserMainPartsWin();
31 26
32 // BrowserParts overrides. 27 // BrowserParts overrides.
33 virtual void ToolkitInitialized() OVERRIDE; 28 virtual void ToolkitInitialized() OVERRIDE;
34 virtual void PreMainMessageLoopStart() OVERRIDE; 29 virtual void PreMainMessageLoopStart() OVERRIDE;
35 virtual void PreProfileInit() OVERRIDE;
36 30
37 // ChromeBrowserMainParts overrides. 31 // ChromeBrowserMainParts overrides.
38 virtual void ShowMissingLocaleMessageBox() OVERRIDE; 32 virtual void ShowMissingLocaleMessageBox() OVERRIDE;
39 33
40 // Prepares the localized strings that are going to be displayed to 34 // Prepares the localized strings that are going to be displayed to
41 // the user if the browser process dies. These strings are stored in the 35 // the user if the browser process dies. These strings are stored in the
42 // environment block so they are accessible in the early stages of the 36 // environment block so they are accessible in the early stages of the
43 // chrome executable's lifetime. 37 // chrome executable's lifetime.
44 static void PrepareRestartOnCrashEnviroment( 38 static void PrepareRestartOnCrashEnviroment(
45 const CommandLine& parsed_command_line); 39 const CommandLine& parsed_command_line);
(...skipping 13 matching lines...) Expand all
59 // machine. If yes and the current Chrome process is user level, we do not 53 // machine. If yes and the current Chrome process is user level, we do not
60 // allow the user level Chrome to run. So we notify the user and uninstall 54 // allow the user level Chrome to run. So we notify the user and uninstall
61 // user level Chrome. 55 // user level Chrome.
62 static bool CheckMachineLevelInstall(); 56 static bool CheckMachineLevelInstall();
63 57
64 // Sets the TranslationDelegate which provides localized strings to 58 // Sets the TranslationDelegate which provides localized strings to
65 // installer_util. 59 // installer_util.
66 static void SetupInstallerUtilStrings(); 60 static void SetupInstallerUtilStrings();
67 61
68 private: 62 private:
69 scoped_ptr<chrome::StorageMonitorWin> storage_monitor_;
70
71 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainPartsWin); 63 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainPartsWin);
72 }; 64 };
73 65
74 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_WIN_H_ 66 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698