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_CHILD_CHILD_THREAD_IMPL_H_ | 5 #ifndef CONTENT_CHILD_CHILD_THREAD_IMPL_H_ |
6 #define CONTENT_CHILD_CHILD_THREAD_IMPL_H_ | 6 #define CONTENT_CHILD_CHILD_THREAD_IMPL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 | 220 |
221 void Init(const Options& options); | 221 void Init(const Options& options); |
222 | 222 |
223 // We create the channel first without connecting it so we can add filters | 223 // We create the channel first without connecting it so we can add filters |
224 // prior to any messages being received, then connect it afterwards. | 224 // prior to any messages being received, then connect it afterwards. |
225 void ConnectChannel(bool use_mojo_channel); | 225 void ConnectChannel(bool use_mojo_channel); |
226 | 226 |
227 // IPC message handlers. | 227 // IPC message handlers. |
228 void OnShutdown(); | 228 void OnShutdown(); |
229 void OnSetProfilerStatus(tracked_objects::ThreadData::Status status); | 229 void OnSetProfilerStatus(tracked_objects::ThreadData::Status status); |
230 void OnGetChildProfilerData(int sequence_number); | 230 void OnGetChildProfilerData(int sequence_number, int current_profiling_phase); |
| 231 void OnProfilingPhaseCompletion(int profiling_phase); |
231 void OnDumpHandles(); | 232 void OnDumpHandles(); |
232 void OnProcessBackgrounded(bool background); | 233 void OnProcessBackgrounded(bool background); |
233 #ifdef IPC_MESSAGE_LOG_ENABLED | 234 #ifdef IPC_MESSAGE_LOG_ENABLED |
234 void OnSetIPCLoggingEnabled(bool enable); | 235 void OnSetIPCLoggingEnabled(bool enable); |
235 #endif | 236 #endif |
236 #if defined(USE_TCMALLOC) | 237 #if defined(USE_TCMALLOC) |
237 void OnGetTcmallocStats(); | 238 void OnGetTcmallocStats(); |
238 #endif | 239 #endif |
239 | 240 |
240 void EnsureConnected(); | 241 void EnsureConnected(); |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
301 bool in_browser_process_; | 302 bool in_browser_process_; |
302 | 303 |
303 base::WeakPtrFactory<ChildThreadImpl> channel_connected_factory_; | 304 base::WeakPtrFactory<ChildThreadImpl> channel_connected_factory_; |
304 | 305 |
305 DISALLOW_COPY_AND_ASSIGN(ChildThreadImpl); | 306 DISALLOW_COPY_AND_ASSIGN(ChildThreadImpl); |
306 }; | 307 }; |
307 | 308 |
308 } // namespace content | 309 } // namespace content |
309 | 310 |
310 #endif // CONTENT_CHILD_CHILD_THREAD_IMPL_H_ | 311 #endif // CONTENT_CHILD_CHILD_THREAD_IMPL_H_ |
OLD | NEW |