| 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_CHROMEOS_H_ | 5 #ifndef CHROME_BROWSER_BROWSER_PROCESS_PLATFORM_PART_CHROMEOS_H_ |
| 6 #define CHROME_BROWSER_BROWSER_PROCESS_PLATFORM_PART_CHROMEOS_H_ | 6 #define CHROME_BROWSER_BROWSER_PROCESS_PLATFORM_PART_CHROMEOS_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 #include "base/threading/non_thread_safe.h" | 10 #include "base/threading/non_thread_safe.h" |
| 11 | 11 |
| 12 class CommandLine; | |
| 13 | |
| 14 namespace chromeos { | 12 namespace chromeos { |
| 15 class OomPriorityManager; | 13 class OomPriorityManager; |
| 16 class ProfileHelper; | 14 class ProfileHelper; |
| 17 } | 15 } |
| 18 | 16 |
| 19 class BrowserProcessPlatformPart : public base::NonThreadSafe { | 17 class BrowserProcessPlatformPart : public base::NonThreadSafe { |
| 20 public: | 18 public: |
| 21 BrowserProcessPlatformPart(); | 19 BrowserProcessPlatformPart(); |
| 22 virtual ~BrowserProcessPlatformPart(); | 20 virtual ~BrowserProcessPlatformPart(); |
| 23 | 21 |
| 24 // Called after creating the process singleton or when another chrome | |
| 25 // rendez-vous with this one. | |
| 26 virtual void PlatformSpecificCommandLineProcessing( | |
| 27 const CommandLine& command_line); | |
| 28 | |
| 29 // Called from BrowserProcessImpl::StartTearDown(). | 22 // Called from BrowserProcessImpl::StartTearDown(). |
| 30 virtual void StartTearDown(); | 23 virtual void StartTearDown(); |
| 31 | 24 |
| 32 // Returns the out-of-memory priority manager. | 25 // Returns the out-of-memory priority manager. |
| 33 virtual chromeos::OomPriorityManager* oom_priority_manager(); | 26 virtual chromeos::OomPriorityManager* oom_priority_manager(); |
| 34 | 27 |
| 35 // Returns the ProfileHelper instance that is used to identify | 28 // Returns the ProfileHelper instance that is used to identify |
| 36 // users and their profiles in Chrome OS multi user session. | 29 // users and their profiles in Chrome OS multi user session. |
| 37 virtual chromeos::ProfileHelper* profile_helper(); | 30 virtual chromeos::ProfileHelper* profile_helper(); |
| 38 | 31 |
| 39 protected: | 32 protected: |
| 40 virtual void CreateProfileHelper(); | 33 virtual void CreateProfileHelper(); |
| 41 | 34 |
| 42 bool created_profile_helper_; | 35 bool created_profile_helper_; |
| 43 scoped_ptr<chromeos::ProfileHelper> profile_helper_; | 36 scoped_ptr<chromeos::ProfileHelper> profile_helper_; |
| 44 | 37 |
| 45 private: | 38 private: |
| 46 scoped_ptr<chromeos::OomPriorityManager> oom_priority_manager_; | 39 scoped_ptr<chromeos::OomPriorityManager> oom_priority_manager_; |
| 47 | 40 |
| 48 DISALLOW_COPY_AND_ASSIGN(BrowserProcessPlatformPart); | 41 DISALLOW_COPY_AND_ASSIGN(BrowserProcessPlatformPart); |
| 49 }; | 42 }; |
| 50 | 43 |
| 51 #endif // CHROME_BROWSER_BROWSER_PROCESS_PLATFORM_PART_CHROMEOS_H_ | 44 #endif // CHROME_BROWSER_BROWSER_PROCESS_PLATFORM_PART_CHROMEOS_H_ |
| OLD | NEW |