OLD | NEW |
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 linux-specific. | 5 // Contains functions used by BrowserMain() that are linux-specific. |
6 | 6 |
7 #ifndef CHROME_BROWSER_CHROME_BROWSER_MAIN_LINUX_H_ | 7 #ifndef CHROME_BROWSER_CHROME_BROWSER_MAIN_LINUX_H_ |
8 #define CHROME_BROWSER_CHROME_BROWSER_MAIN_LINUX_H_ | 8 #define CHROME_BROWSER_CHROME_BROWSER_MAIN_LINUX_H_ |
9 #pragma once | 9 #pragma once |
10 | 10 |
11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 12 #include "base/memory/ref_counted.h" |
12 #include "chrome/browser/chrome_browser_main_posix.h" | 13 #include "chrome/browser/chrome_browser_main_posix.h" |
13 | 14 |
| 15 namespace chrome { |
| 16 class MediaDeviceNotificationsLinux; |
| 17 } |
| 18 |
14 class ChromeBrowserMainPartsLinux : public ChromeBrowserMainPartsPosix { | 19 class ChromeBrowserMainPartsLinux : public ChromeBrowserMainPartsPosix { |
15 public: | 20 public: |
16 explicit ChromeBrowserMainPartsLinux( | 21 explicit ChromeBrowserMainPartsLinux( |
17 const content::MainFunctionParams& parameters); | 22 const content::MainFunctionParams& parameters); |
| 23 virtual ~ChromeBrowserMainPartsLinux(); |
18 | 24 |
19 // ChromeBrowserMainParts overrides. | 25 // ChromeBrowserMainParts overrides. |
20 virtual void PreProfileInit() OVERRIDE; | 26 virtual void PreProfileInit() OVERRIDE; |
21 | 27 |
22 private: | 28 private: |
| 29 scoped_refptr<chrome::MediaDeviceNotificationsLinux> |
| 30 media_device_notifications_linux_; |
| 31 |
23 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainPartsLinux); | 32 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainPartsLinux); |
24 }; | 33 }; |
25 | 34 |
26 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_LINUX_H_ | 35 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_LINUX_H_ |
OLD | NEW |