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

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

Issue 10332190: Add SystemMonitor::GetMediaDevices() (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix win Created 8 years, 7 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
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 "base/compiler_specific.h"
12 #include "chrome/browser/chrome_browser_main.h" 12 #include "chrome/browser/chrome_browser_main.h"
13 13
14 class CommandLine; 14 class CommandLine;
15 15
16 namespace chrome {
17 class MediaDeviceNotificationsWindowWin;
18 } // namespace chrome
19
20
21 // Handle uninstallation when given the appropriate the command-line switch. 16 // Handle uninstallation when given the appropriate the command-line switch.
22 // If |chrome_still_running| is true a modal dialog will be shown asking the 17 // If |chrome_still_running| is true a modal dialog will be shown asking the
23 // user to close the other chrome instance. 18 // user to close the other chrome instance.
24 int DoUninstallTasks(bool chrome_still_running); 19 int DoUninstallTasks(bool chrome_still_running);
25 20
26 class ChromeBrowserMainPartsWin : public ChromeBrowserMainParts { 21 class ChromeBrowserMainPartsWin : public ChromeBrowserMainParts {
27 public: 22 public:
28 explicit ChromeBrowserMainPartsWin( 23 explicit ChromeBrowserMainPartsWin(
29 const content::MainFunctionParams& parameters); 24 const content::MainFunctionParams& parameters);
30 25
(...skipping 24 matching lines...) Expand all
55 // functionality so we just ask the users if they want to uninstall Chrome. 50 // functionality so we just ask the users if they want to uninstall Chrome.
56 static int HandleIconsCommands(const CommandLine& parsed_command_line); 51 static int HandleIconsCommands(const CommandLine& parsed_command_line);
57 52
58 // Check if there is any machine level Chrome installed on the current 53 // Check if there is any machine level Chrome installed on the current
59 // machine. If yes and the current Chrome process is user level, we do not 54 // 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 55 // allow the user level Chrome to run. So we notify the user and uninstall
61 // user level Chrome. 56 // user level Chrome.
62 static bool CheckMachineLevelInstall(); 57 static bool CheckMachineLevelInstall();
63 58
64 private: 59 private:
65 scoped_ptr<chrome::MediaDeviceNotificationsWindowWin>
66 media_device_notifications_window_;
67 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainPartsWin); 60 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainPartsWin);
68 }; 61 };
69 62
70 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_WIN_H_ 63 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698