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

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

Issue 10211008: Moves media device notification code to chrome/browser (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fixed indentation Created 8 years, 8 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
« no previous file with comments | « no previous file | chrome/browser/chrome_browser_main_win.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) 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 #pragma once 9 #pragma once
10 10
11 #include "base/memory/scoped_ptr.h"
11 #include "chrome/browser/chrome_browser_main.h" 12 #include "chrome/browser/chrome_browser_main.h"
12 13
13 class CommandLine; 14 class CommandLine;
14 15
16 namespace chrome {
17 class MediaDeviceNotificationsWindowWin;
18 } // namespace chrome
19
20
15 // Handle uninstallation when given the appropriate the command-line switch. 21 // 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 22 // If |chrome_still_running| is true a modal dialog will be shown asking the
17 // user to close the other chrome instance. 23 // user to close the other chrome instance.
18 int DoUninstallTasks(bool chrome_still_running); 24 int DoUninstallTasks(bool chrome_still_running);
19 25
20 class ChromeBrowserMainPartsWin : public ChromeBrowserMainParts { 26 class ChromeBrowserMainPartsWin : public ChromeBrowserMainParts {
21 public: 27 public:
22 explicit ChromeBrowserMainPartsWin( 28 explicit ChromeBrowserMainPartsWin(
23 const content::MainFunctionParams& parameters); 29 const content::MainFunctionParams& parameters);
24 30
31 virtual ChromeBrowserMainPartsWin::~ChromeBrowserMainPartsWin();
32
25 // BrowserParts overrides. 33 // BrowserParts overrides.
26 virtual void ToolkitInitialized() OVERRIDE; 34 virtual void ToolkitInitialized() OVERRIDE;
27 virtual void PreMainMessageLoopStart() OVERRIDE; 35 virtual void PreMainMessageLoopStart() OVERRIDE;
28 36
29 // ChromeBrowserMainParts overrides. 37 // ChromeBrowserMainParts overrides.
30 virtual void ShowMissingLocaleMessageBox() OVERRIDE; 38 virtual void ShowMissingLocaleMessageBox() OVERRIDE;
31 39
32 // Prepares the localized strings that are going to be displayed to 40 // Prepares the localized strings that are going to be displayed to
33 // the user if the browser process dies. These strings are stored in the 41 // the user if the browser process dies. These strings are stored in the
34 // environment block so they are accessible in the early stages of the 42 // environment block so they are accessible in the early stages of the
(...skipping 12 matching lines...) Expand all
47 // functionality so we just ask the users if they want to uninstall Chrome. 55 // functionality so we just ask the users if they want to uninstall Chrome.
48 static int HandleIconsCommands(const CommandLine& parsed_command_line); 56 static int HandleIconsCommands(const CommandLine& parsed_command_line);
49 57
50 // Check if there is any machine level Chrome installed on the current 58 // Check if there is any machine level Chrome installed on the current
51 // machine. If yes and the current Chrome process is user level, we do not 59 // machine. If yes and the current Chrome process is user level, we do not
52 // allow the user level Chrome to run. So we notify the user and uninstall 60 // allow the user level Chrome to run. So we notify the user and uninstall
53 // user level Chrome. 61 // user level Chrome.
54 static bool CheckMachineLevelInstall(); 62 static bool CheckMachineLevelInstall();
55 63
56 private: 64 private:
65 scoped_ptr<chrome::MediaDeviceNotificationsWindowWin>
66 media_device_notifications_window_;
57 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainPartsWin); 67 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainPartsWin);
58 }; 68 };
59 69
60 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_WIN_H_ 70 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_WIN_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chrome_browser_main_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698