OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 #ifndef CHROME_BROWSER_BROWSER_PROCESS_PLATFORM_PART_BASE_H_ | 5 #ifndef CHROME_BROWSER_BROWSER_PROCESS_PLATFORM_PART_BASE_H_ |
6 #define CHROME_BROWSER_BROWSER_PROCESS_PLATFORM_PART_BASE_H_ | 6 #define CHROME_BROWSER_BROWSER_PROCESS_PLATFORM_PART_BASE_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 | 9 |
10 class CommandLine; | 10 class CommandLine; |
11 | 11 |
12 // A base class for platform-specific BrowserProcessPlatformPart | 12 // A base class for platform-specific BrowserProcessPlatformPart |
13 // implementations. This class itself should never be used verbatim. | 13 // implementations. This class itself should never be used verbatim. |
14 class BrowserProcessPlatformPartBase { | 14 class BrowserProcessPlatformPartBase { |
15 public: | 15 public: |
16 BrowserProcessPlatformPartBase(); | 16 BrowserProcessPlatformPartBase(); |
17 virtual ~BrowserProcessPlatformPartBase(); | 17 virtual ~BrowserProcessPlatformPartBase(); |
18 | 18 |
19 // Called after creating the process singleton or when another chrome | 19 // Called after creating the process singleton or when another chrome |
20 // rendez-vous with this one. | 20 // rendez-vous with this one. |
21 virtual void PlatformSpecificCommandLineProcessing( | 21 virtual void PlatformSpecificCommandLineProcessing( |
22 const CommandLine& command_line); | 22 const CommandLine& command_line); |
23 | 23 |
24 // Called from BrowserProcessImpl::StartTearDown(). | 24 // Called from BrowserProcessImpl::StartTearDown(). |
25 virtual void StartTearDown(); | 25 virtual void StartTearDown(); |
26 | 26 |
| 27 // Called from AttemptExitInternal(). |
| 28 virtual void AttemptExit(); |
| 29 |
27 private: | 30 private: |
28 DISALLOW_COPY_AND_ASSIGN(BrowserProcessPlatformPartBase); | 31 DISALLOW_COPY_AND_ASSIGN(BrowserProcessPlatformPartBase); |
29 }; | 32 }; |
30 | 33 |
31 #endif // CHROME_BROWSER_BROWSER_PROCESS_PLATFORM_PART_BASE_H_ | 34 #endif // CHROME_BROWSER_BROWSER_PROCESS_PLATFORM_PART_BASE_H_ |
OLD | NEW |