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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 // Terminates the process and logs a stack trace after a bad message was | 94 // Terminates the process and logs a stack trace after a bad message was |
95 // received from the child process. | 95 // received from the child process. |
96 void TerminateOnBadMessageReceived(const std::string& error); | 96 void TerminateOnBadMessageReceived(const std::string& error); |
97 | 97 |
98 // Removes this host from the host list. Calls ChildProcessHost::ForceShutdown | 98 // Removes this host from the host list. Calls ChildProcessHost::ForceShutdown |
99 void ForceShutdown(); | 99 void ForceShutdown(); |
100 | 100 |
101 // Adds an IPC message filter. | 101 // Adds an IPC message filter. |
102 void AddFilter(BrowserMessageFilter* filter); | 102 void AddFilter(BrowserMessageFilter* filter); |
103 | 103 |
104 static void HistogramBadMessageTerminated(int process_type); | 104 static void HistogramBadMessageTerminated(ProcessType process_type); |
105 | 105 |
106 BrowserChildProcessHostDelegate* delegate() const { return delegate_; } | 106 BrowserChildProcessHostDelegate* delegate() const { return delegate_; } |
107 | 107 |
108 ChildConnection* child_connection() const { | 108 ChildConnection* child_connection() const { |
109 return child_connection_.get(); | 109 return child_connection_.get(); |
110 } | 110 } |
111 | 111 |
112 mojo::edk::OutgoingBrokerClientInvitation* | 112 mojo::edk::OutgoingBrokerClientInvitation* |
113 GetInProcessBrokerClientInvitation() { | 113 GetInProcessBrokerClientInvitation() { |
114 return broker_client_invitation_.get(); | 114 return broker_client_invitation_.get(); |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 IPC::Channel* channel_ = nullptr; | 175 IPC::Channel* channel_ = nullptr; |
176 bool is_channel_connected_; | 176 bool is_channel_connected_; |
177 bool notify_child_disconnected_; | 177 bool notify_child_disconnected_; |
178 | 178 |
179 base::WeakPtrFactory<BrowserChildProcessHostImpl> weak_factory_; | 179 base::WeakPtrFactory<BrowserChildProcessHostImpl> weak_factory_; |
180 }; | 180 }; |
181 | 181 |
182 } // namespace content | 182 } // namespace content |
183 | 183 |
184 #endif // CONTENT_BROWSER_BROWSER_CHILD_PROCESS_HOST_IMPL_H_ | 184 #endif // CONTENT_BROWSER_BROWSER_CHILD_PROCESS_HOST_IMPL_H_ |
OLD | NEW |