| 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/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.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 StorageMonitorLinux; | 16 class StorageMonitorLinux; |
| 17 } | 17 } |
| 18 #endif | 18 #endif |
| 19 | 19 |
| 20 class ChromeBrowserMainPartsLinux : public ChromeBrowserMainPartsPosix { | 20 class ChromeBrowserMainPartsLinux : public ChromeBrowserMainPartsPosix { |
| 21 public: | 21 public: |
| 22 explicit ChromeBrowserMainPartsLinux( | 22 explicit ChromeBrowserMainPartsLinux( |
| 23 const content::MainFunctionParams& parameters); | 23 const content::MainFunctionParams& parameters); |
| 24 virtual ~ChromeBrowserMainPartsLinux(); | 24 virtual ~ChromeBrowserMainPartsLinux(); |
| 25 | 25 |
| 26 // ChromeBrowserMainParts overrides. | 26 // ChromeBrowserMainParts overrides. |
| 27 virtual void PreProfileInit() OVERRIDE; | 27 virtual void PreProfileInit() OVERRIDE; |
| 28 virtual void PostProfileInit() OVERRIDE; | |
| 29 virtual void PostMainMessageLoopRun() OVERRIDE; | 28 virtual void PostMainMessageLoopRun() OVERRIDE; |
| 30 | 29 |
| 31 private: | 30 private: |
| 32 #if !defined(OS_CHROMEOS) | 31 #if !defined(OS_CHROMEOS) |
| 33 scoped_ptr<chrome::StorageMonitorLinux> storage_monitor_; | 32 scoped_ptr<chrome::StorageMonitorLinux> storage_monitor_; |
| 34 #endif | 33 #endif |
| 35 | 34 |
| 36 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainPartsLinux); | 35 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainPartsLinux); |
| 37 }; | 36 }; |
| 38 | 37 |
| 39 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_LINUX_H_ | 38 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_LINUX_H_ |
| OLD | NEW |