Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(187)

Side by Side Diff: content/common/child_process_host_impl.h

Issue 2058653002: Ignore kill termination status when shutting down a child process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_COMMON_CHILD_PROCESS_HOST_IMPL_H_ 5 #ifndef CONTENT_COMMON_CHILD_PROCESS_HOST_IMPL_H_
6 #define CONTENT_COMMON_CHILD_PROCESS_HOST_IMPL_H_ 6 #define CONTENT_COMMON_CHILD_PROCESS_HOST_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 // process. 71 // process.
72 // 72 //
73 // Never returns MemoryDumpManager::kInvalidTracingProcessId. 73 // Never returns MemoryDumpManager::kInvalidTracingProcessId.
74 // Returns only ChildProcessHost::kBrowserTracingProcessId in single-process 74 // Returns only ChildProcessHost::kBrowserTracingProcessId in single-process
75 // mode. 75 // mode.
76 static uint64_t ChildProcessUniqueIdToTracingProcessId(int child_process_id); 76 static uint64_t ChildProcessUniqueIdToTracingProcessId(int child_process_id);
77 77
78 // ChildProcessHost implementation 78 // ChildProcessHost implementation
79 bool Send(IPC::Message* message) override; 79 bool Send(IPC::Message* message) override;
80 void ForceShutdown() override; 80 void ForceShutdown() override;
81 bool IsShuttingDown() override;
81 std::string CreateChannel() override; 82 std::string CreateChannel() override;
82 std::string CreateChannelMojo(const std::string& child_token) override; 83 std::string CreateChannelMojo(const std::string& child_token) override;
83 bool IsChannelOpening() override; 84 bool IsChannelOpening() override;
84 void AddFilter(IPC::MessageFilter* filter) override; 85 void AddFilter(IPC::MessageFilter* filter) override;
85 #if defined(OS_POSIX) 86 #if defined(OS_POSIX)
86 base::ScopedFD TakeClientFileDescriptor() override; 87 base::ScopedFD TakeClientFileDescriptor() override;
87 #endif 88 #endif
88 89
89 private: 90 private:
90 friend class ChildProcessHost; 91 friend class ChildProcessHost;
(...skipping 21 matching lines...) Expand all
112 113
113 // Initializes the IPC channel and returns true on success. |channel_| must be 114 // Initializes the IPC channel and returns true on success. |channel_| must be
114 // non-null. 115 // non-null.
115 bool InitChannel(); 116 bool InitChannel();
116 117
117 ChildProcessHostDelegate* delegate_; 118 ChildProcessHostDelegate* delegate_;
118 base::Process peer_process_; 119 base::Process peer_process_;
119 bool opening_channel_; // True while we're waiting the channel to be opened. 120 bool opening_channel_; // True while we're waiting the channel to be opened.
120 std::unique_ptr<IPC::Channel> channel_; 121 std::unique_ptr<IPC::Channel> channel_;
121 std::string channel_id_; 122 std::string channel_id_;
123 bool is_shutting_down_;
122 124
123 // Holds all the IPC message filters. Since this object lives on the IO 125 // Holds all the IPC message filters. Since this object lives on the IO
124 // thread, we don't have a IPC::ChannelProxy and so we manage filters 126 // thread, we don't have a IPC::ChannelProxy and so we manage filters
125 // manually. 127 // manually.
126 std::vector<scoped_refptr<IPC::MessageFilter> > filters_; 128 std::vector<scoped_refptr<IPC::MessageFilter> > filters_;
127 129
128 DISALLOW_COPY_AND_ASSIGN(ChildProcessHostImpl); 130 DISALLOW_COPY_AND_ASSIGN(ChildProcessHostImpl);
129 }; 131 };
130 132
131 } // namespace content 133 } // namespace content
132 134
133 #endif // CONTENT_COMMON_CHILD_PROCESS_HOST_IMPL_H_ 135 #endif // CONTENT_COMMON_CHILD_PROCESS_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/browser_child_process_host_impl.cc ('k') | content/common/child_process_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698