| 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 #ifndef CONTENT_BROWSER_BROWSER_CHILD_PROCESS_HOST_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_BROWSER_CHILD_PROCESS_HOST_IMPL_H_ |
| 6 #define CONTENT_BROWSER_BROWSER_CHILD_PROCESS_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_BROWSER_CHILD_PROCESS_HOST_IMPL_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <list> | 10 #include <list> |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 const std::string& service_name); | 59 const std::string& service_name); |
| 60 ~BrowserChildProcessHostImpl() override; | 60 ~BrowserChildProcessHostImpl() override; |
| 61 | 61 |
| 62 // Terminates all child processes and deletes each BrowserChildProcessHost | 62 // Terminates all child processes and deletes each BrowserChildProcessHost |
| 63 // instance. | 63 // instance. |
| 64 static void TerminateAll(); | 64 static void TerminateAll(); |
| 65 | 65 |
| 66 // Copies kEnableFeatures and kDisableFeatures to the command line. Generates | 66 // Copies kEnableFeatures and kDisableFeatures to the command line. Generates |
| 67 // them from the FeatureList override state, to take into account overrides | 67 // them from the FeatureList override state, to take into account overrides |
| 68 // from FieldTrials. | 68 // from FieldTrials. |
| 69 static std::unique_ptr<base::SharedMemory> CopyFeatureAndFieldTrialFlags( | 69 static void CopyFeatureAndFieldTrialFlags(base::CommandLine* cmd_line); |
| 70 base::CommandLine* cmd_line); | |
| 71 | 70 |
| 72 // BrowserChildProcessHost implementation: | 71 // BrowserChildProcessHost implementation: |
| 73 bool Send(IPC::Message* message) override; | 72 bool Send(IPC::Message* message) override; |
| 74 void Launch(SandboxedProcessLauncherDelegate* delegate, | 73 void Launch(SandboxedProcessLauncherDelegate* delegate, |
| 75 base::CommandLine* cmd_line, | 74 base::CommandLine* cmd_line, |
| 76 const base::SharedMemory* field_trial_state, | |
| 77 bool terminate_on_shutdown) override; | 75 bool terminate_on_shutdown) override; |
| 78 const ChildProcessData& GetData() const override; | 76 const ChildProcessData& GetData() const override; |
| 79 ChildProcessHost* GetHost() const override; | 77 ChildProcessHost* GetHost() const override; |
| 80 base::TerminationStatus GetTerminationStatus(bool known_dead, | 78 base::TerminationStatus GetTerminationStatus(bool known_dead, |
| 81 int* exit_code) override; | 79 int* exit_code) override; |
| 82 std::unique_ptr<base::SharedPersistentMemoryAllocator> TakeMetricsAllocator() | 80 std::unique_ptr<base::SharedPersistentMemoryAllocator> TakeMetricsAllocator() |
| 83 override; | 81 override; |
| 84 void SetName(const base::string16& name) override; | 82 void SetName(const base::string16& name) override; |
| 85 void SetHandle(base::ProcessHandle handle) override; | 83 void SetHandle(base::ProcessHandle handle) override; |
| 86 | 84 |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 | 172 |
| 175 bool is_channel_connected_; | 173 bool is_channel_connected_; |
| 176 bool notify_child_disconnected_; | 174 bool notify_child_disconnected_; |
| 177 | 175 |
| 178 base::WeakPtrFactory<BrowserChildProcessHostImpl> weak_factory_; | 176 base::WeakPtrFactory<BrowserChildProcessHostImpl> weak_factory_; |
| 179 }; | 177 }; |
| 180 | 178 |
| 181 } // namespace content | 179 } // namespace content |
| 182 | 180 |
| 183 #endif // CONTENT_BROWSER_BROWSER_CHILD_PROCESS_HOST_IMPL_H_ | 181 #endif // CONTENT_BROWSER_BROWSER_CHILD_PROCESS_HOST_IMPL_H_ |
| OLD | NEW |