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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 public ChildProcessLauncher::Client { | 47 public ChildProcessLauncher::Client { |
48 public: | 48 public: |
49 BrowserChildProcessHostImpl(content::ProcessType process_type, | 49 BrowserChildProcessHostImpl(content::ProcessType process_type, |
50 BrowserChildProcessHostDelegate* delegate); | 50 BrowserChildProcessHostDelegate* delegate); |
51 ~BrowserChildProcessHostImpl() override; | 51 ~BrowserChildProcessHostImpl() override; |
52 | 52 |
53 // Terminates all child processes and deletes each BrowserChildProcessHost | 53 // Terminates all child processes and deletes each BrowserChildProcessHost |
54 // instance. | 54 // instance. |
55 static void TerminateAll(); | 55 static void TerminateAll(); |
56 | 56 |
| 57 // Copies kEnableFeatures and kDisableFeatures to the command line. Generates |
| 58 // them from the FeatureList override state, to take into account overrides |
| 59 // from FieldTrials. |
| 60 static void CopyFeatureAndFieldTrialFlags(base::CommandLine* cmd_line); |
| 61 |
57 // BrowserChildProcessHost implementation: | 62 // BrowserChildProcessHost implementation: |
58 bool Send(IPC::Message* message) override; | 63 bool Send(IPC::Message* message) override; |
59 void Launch(SandboxedProcessLauncherDelegate* delegate, | 64 void Launch(SandboxedProcessLauncherDelegate* delegate, |
60 base::CommandLine* cmd_line, | 65 base::CommandLine* cmd_line, |
61 bool terminate_on_shutdown) override; | 66 bool terminate_on_shutdown) override; |
62 const ChildProcessData& GetData() const override; | 67 const ChildProcessData& GetData() const override; |
63 ChildProcessHost* GetHost() const override; | 68 ChildProcessHost* GetHost() const override; |
64 base::TerminationStatus GetTerminationStatus(bool known_dead, | 69 base::TerminationStatus GetTerminationStatus(bool known_dead, |
65 int* exit_code) override; | 70 int* exit_code) override; |
66 void SetName(const base::string16& name) override; | 71 void SetName(const base::string16& name) override; |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 base::win::ObjectWatcher early_exit_watcher_; | 136 base::win::ObjectWatcher early_exit_watcher_; |
132 #endif | 137 #endif |
133 | 138 |
134 bool is_channel_connected_; | 139 bool is_channel_connected_; |
135 bool notify_child_disconnected_; | 140 bool notify_child_disconnected_; |
136 }; | 141 }; |
137 | 142 |
138 } // namespace content | 143 } // namespace content |
139 | 144 |
140 #endif // CONTENT_BROWSER_BROWSER_CHILD_PROCESS_HOST_IMPL_H_ | 145 #endif // CONTENT_BROWSER_BROWSER_CHILD_PROCESS_HOST_IMPL_H_ |
OLD | NEW |