| 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 |
| 12 namespace chromeos { | 14 namespace chromeos { |
| 13 class OomPriorityManager; | 15 class OomPriorityManager; |
| 14 class ProfileHelper; | 16 class ProfileHelper; |
| 15 } | 17 } |
| 16 | 18 |
| 17 class BrowserProcessPlatformPart : public base::NonThreadSafe { | 19 class BrowserProcessPlatformPart : public base::NonThreadSafe { |
| 18 public: | 20 public: |
| 19 BrowserProcessPlatformPart(); | 21 BrowserProcessPlatformPart(); |
| 20 virtual ~BrowserProcessPlatformPart(); | 22 virtual ~BrowserProcessPlatformPart(); |
| 21 | 23 |
| 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 |
| 22 // Called from BrowserProcessImpl::StartTearDown(). | 29 // Called from BrowserProcessImpl::StartTearDown(). |
| 23 virtual void StartTearDown(); | 30 virtual void StartTearDown(); |
| 24 | 31 |
| 25 // Returns the out-of-memory priority manager. | 32 // Returns the out-of-memory priority manager. |
| 26 virtual chromeos::OomPriorityManager* oom_priority_manager(); | 33 virtual chromeos::OomPriorityManager* oom_priority_manager(); |
| 27 | 34 |
| 28 // Returns the ProfileHelper instance that is used to identify | 35 // Returns the ProfileHelper instance that is used to identify |
| 29 // users and their profiles in Chrome OS multi user session. | 36 // users and their profiles in Chrome OS multi user session. |
| 30 virtual chromeos::ProfileHelper* profile_helper(); | 37 virtual chromeos::ProfileHelper* profile_helper(); |
| 31 | 38 |
| 32 protected: | 39 protected: |
| 33 virtual void CreateProfileHelper(); | 40 virtual void CreateProfileHelper(); |
| 34 | 41 |
| 35 bool created_profile_helper_; | 42 bool created_profile_helper_; |
| 36 scoped_ptr<chromeos::ProfileHelper> profile_helper_; | 43 scoped_ptr<chromeos::ProfileHelper> profile_helper_; |
| 37 | 44 |
| 38 private: | 45 private: |
| 39 scoped_ptr<chromeos::OomPriorityManager> oom_priority_manager_; | 46 scoped_ptr<chromeos::OomPriorityManager> oom_priority_manager_; |
| 40 | 47 |
| 41 DISALLOW_COPY_AND_ASSIGN(BrowserProcessPlatformPart); | 48 DISALLOW_COPY_AND_ASSIGN(BrowserProcessPlatformPart); |
| 42 }; | 49 }; |
| 43 | 50 |
| 44 #endif // CHROME_BROWSER_BROWSER_PROCESS_PLATFORM_PART_CHROMEOS_H_ | 51 #endif // CHROME_BROWSER_BROWSER_PROCESS_PLATFORM_PART_CHROMEOS_H_ |
| OLD | NEW |