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

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

Issue 12334096: Regularize ownerships and lifecycle for storage monitor platform classes. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Document lifecycle in storage_monitor.h Created 7 years, 9 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"
(...skipping 15 matching lines...) Expand all
26 public: 26 public:
27 explicit ChromeBrowserMainPartsWin( 27 explicit ChromeBrowserMainPartsWin(
28 const content::MainFunctionParams& parameters); 28 const content::MainFunctionParams& parameters);
29 29
30 virtual ~ChromeBrowserMainPartsWin(); 30 virtual ~ChromeBrowserMainPartsWin();
31 31
32 // BrowserParts overrides. 32 // BrowserParts overrides.
33 virtual void ToolkitInitialized() OVERRIDE; 33 virtual void ToolkitInitialized() OVERRIDE;
34 virtual void PreMainMessageLoopStart() OVERRIDE; 34 virtual void PreMainMessageLoopStart() OVERRIDE;
35 virtual void PostMainMessageLoopStart() OVERRIDE; 35 virtual void PostMainMessageLoopStart() OVERRIDE;
36 virtual void PreMainMessageLoopRun() OVERRIDE; 36 virtual void PreProfileInit() OVERRIDE;
37 virtual void PostProfileInit() OVERRIDE;
37 38
38 // ChromeBrowserMainParts overrides. 39 // ChromeBrowserMainParts overrides.
39 virtual void ShowMissingLocaleMessageBox() OVERRIDE; 40 virtual void ShowMissingLocaleMessageBox() OVERRIDE;
40 41
41 // Prepares the localized strings that are going to be displayed to 42 // Prepares the localized strings that are going to be displayed to
42 // the user if the browser process dies. These strings are stored in the 43 // the user if the browser process dies. These strings are stored in the
43 // environment block so they are accessible in the early stages of the 44 // environment block so they are accessible in the early stages of the
44 // chrome executable's lifetime. 45 // chrome executable's lifetime.
45 static void PrepareRestartOnCrashEnviroment( 46 static void PrepareRestartOnCrashEnviroment(
46 const CommandLine& parsed_command_line); 47 const CommandLine& parsed_command_line);
(...skipping 15 matching lines...) Expand all
62 // user level Chrome. 63 // user level Chrome.
63 static bool CheckMachineLevelInstall(); 64 static bool CheckMachineLevelInstall();
64 65
65 // Sets the TranslationDelegate which provides localized strings to 66 // Sets the TranslationDelegate which provides localized strings to
66 // installer_util. 67 // installer_util.
67 static void SetupInstallerUtilStrings(); 68 static void SetupInstallerUtilStrings();
68 69
69 private: 70 private:
70 scoped_ptr<chrome::RemovableDeviceNotificationsWindowWin> 71 scoped_ptr<chrome::RemovableDeviceNotificationsWindowWin>
71 removable_device_notifications_window_; 72 removable_device_notifications_window_;
73
72 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainPartsWin); 74 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainPartsWin);
73 }; 75 };
74 76
75 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_WIN_H_ 77 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698