| 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 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| 11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
| 12 #include "chrome/browser/chrome_browser_main_posix.h" | 12 #include "chrome/browser/chrome_browser_main_posix.h" |
| 13 | 13 |
| 14 #if !defined(OS_CHROMEOS) | 14 #if !defined(OS_CHROMEOS) |
| 15 namespace chrome { | 15 namespace chrome { |
| 16 class RemovableDeviceNotificationsLinux; | 16 class StorageMonitorLinux; |
| 17 } | 17 } |
| 18 #endif | 18 #endif |
| 19 | 19 |
| 20 namespace chrome { | 20 namespace chrome { |
| 21 class MediaTransferProtocolDeviceObserverLinux; | 21 class MediaTransferProtocolDeviceObserverLinux; |
| 22 } | 22 } |
| 23 | 23 |
| 24 class ChromeBrowserMainPartsLinux : public ChromeBrowserMainPartsPosix { | 24 class ChromeBrowserMainPartsLinux : public ChromeBrowserMainPartsPosix { |
| 25 public: | 25 public: |
| 26 explicit ChromeBrowserMainPartsLinux( | 26 explicit ChromeBrowserMainPartsLinux( |
| 27 const content::MainFunctionParams& parameters); | 27 const content::MainFunctionParams& parameters); |
| 28 virtual ~ChromeBrowserMainPartsLinux(); | 28 virtual ~ChromeBrowserMainPartsLinux(); |
| 29 | 29 |
| 30 // ChromeBrowserMainParts overrides. | 30 // ChromeBrowserMainParts overrides. |
| 31 virtual void PreProfileInit() OVERRIDE; | 31 virtual void PreProfileInit() OVERRIDE; |
| 32 virtual void PostProfileInit() OVERRIDE; | 32 virtual void PostProfileInit() OVERRIDE; |
| 33 virtual void PostMainMessageLoopRun() OVERRIDE; | 33 virtual void PostMainMessageLoopRun() OVERRIDE; |
| 34 | 34 |
| 35 private: | 35 private: |
| 36 #if !defined(OS_CHROMEOS) | 36 #if !defined(OS_CHROMEOS) |
| 37 scoped_refptr<chrome::RemovableDeviceNotificationsLinux> | 37 scoped_refptr<chrome::StorageMonitorLinux> storage_monitor_; |
| 38 removable_device_notifications_linux_; | |
| 39 #endif | 38 #endif |
| 40 scoped_ptr<chrome::MediaTransferProtocolDeviceObserverLinux> | 39 scoped_ptr<chrome::MediaTransferProtocolDeviceObserverLinux> |
| 41 media_transfer_protocol_device_observer_; | 40 media_transfer_protocol_device_observer_; |
| 42 bool initialized_media_transfer_protocol_manager_; | 41 bool initialized_media_transfer_protocol_manager_; |
| 43 | 42 |
| 44 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainPartsLinux); | 43 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainPartsLinux); |
| 45 }; | 44 }; |
| 46 | 45 |
| 47 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_LINUX_H_ | 46 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_LINUX_H_ |
| OLD | NEW |