Chromium Code Reviews| Index: components/browser_watcher/watcher_client_win.h |
| diff --git a/components/browser_watcher/watcher_client_win.h b/components/browser_watcher/watcher_client_win.h |
| index 5ae3c96f2a4393caf5e5fc7a01cd6ba4fef76d88..847e1a5cf552b3ecd657f23a41ecea7f032a2bde 100644 |
| --- a/components/browser_watcher/watcher_client_win.h |
| +++ b/components/browser_watcher/watcher_client_win.h |
| @@ -32,12 +32,15 @@ class WatcherClient { |
| // a non-threadsafe legacy launch mode that's compatible with Windows XP. |
| void LaunchWatcher(); |
| + void AddInheritedHandle(HANDLE handle); |
|
Sigurður Ásgeirsson
2015/02/03 20:28:05
nit: add some docs?
|
| + |
| + const base::Process& process() const { return process_; } |
| + |
| // Accessors, exposed only for testing. |
| bool use_legacy_launch() const { return use_legacy_launch_; } |
| void set_use_legacy_launch(bool use_legacy_launch) { |
| use_legacy_launch_ = use_legacy_launch; |
| } |
| - base::ProcessHandle process() const { return process_.Handle(); } |
| private: |
| // If true, the watcher process will be launched with XP legacy handle |
| @@ -52,6 +55,8 @@ class WatcherClient { |
| // LaunchWatcher() call. |
| base::Process process_; |
| + std::vector<HANDLE> inherited_handles_; |
| + |
| DISALLOW_COPY_AND_ASSIGN(WatcherClient); |
| }; |