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 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 | 10 |
| 11 namespace base { |
11 class CommandLine; | 12 class CommandLine; |
| 13 } |
12 | 14 |
13 namespace policy { | 15 namespace policy { |
14 class BrowserPolicyConnector; | 16 class BrowserPolicyConnector; |
15 } | 17 } |
16 | 18 |
17 // A base class for platform-specific BrowserProcessPlatformPart | 19 // A base class for platform-specific BrowserProcessPlatformPart |
18 // implementations. This class itself should never be used verbatim. | 20 // implementations. This class itself should never be used verbatim. |
19 class BrowserProcessPlatformPartBase { | 21 class BrowserProcessPlatformPartBase { |
20 public: | 22 public: |
21 BrowserProcessPlatformPartBase(); | 23 BrowserProcessPlatformPartBase(); |
22 virtual ~BrowserProcessPlatformPartBase(); | 24 virtual ~BrowserProcessPlatformPartBase(); |
23 | 25 |
24 // Called after creating the process singleton or when another chrome | 26 // Called after creating the process singleton or when another chrome |
25 // rendez-vous with this one. | 27 // rendez-vous with this one. |
26 virtual void PlatformSpecificCommandLineProcessing( | 28 virtual void PlatformSpecificCommandLineProcessing( |
27 const CommandLine& command_line); | 29 const base::CommandLine& command_line); |
28 | 30 |
29 // Called from BrowserProcessImpl::StartTearDown(). | 31 // Called from BrowserProcessImpl::StartTearDown(). |
30 virtual void StartTearDown(); | 32 virtual void StartTearDown(); |
31 | 33 |
32 // Called from AttemptExitInternal(). | 34 // Called from AttemptExitInternal(). |
33 virtual void AttemptExit(); | 35 virtual void AttemptExit(); |
34 | 36 |
35 // Called at the end of BrowserProcessImpl::PreMainMessageLoopRun(). | 37 // Called at the end of BrowserProcessImpl::PreMainMessageLoopRun(). |
36 virtual void PreMainMessageLoopRun(); | 38 virtual void PreMainMessageLoopRun(); |
37 | 39 |
38 #if defined(ENABLE_CONFIGURATION_POLICY) | 40 #if defined(ENABLE_CONFIGURATION_POLICY) |
39 virtual scoped_ptr<policy::BrowserPolicyConnector> | 41 virtual scoped_ptr<policy::BrowserPolicyConnector> |
40 CreateBrowserPolicyConnector(); | 42 CreateBrowserPolicyConnector(); |
41 #endif | 43 #endif |
42 | 44 |
43 private: | 45 private: |
44 DISALLOW_COPY_AND_ASSIGN(BrowserProcessPlatformPartBase); | 46 DISALLOW_COPY_AND_ASSIGN(BrowserProcessPlatformPartBase); |
45 }; | 47 }; |
46 | 48 |
47 #endif // CHROME_BROWSER_BROWSER_PROCESS_PLATFORM_PART_BASE_H_ | 49 #endif // CHROME_BROWSER_BROWSER_PROCESS_PLATFORM_PART_BASE_H_ |
OLD | NEW |