| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 218 }; | 218 }; |
| 219 | 219 |
| 220 void Init(const Options& options); | 220 void Init(const Options& options); |
| 221 | 221 |
| 222 // We create the channel first without connecting it so we can add filters | 222 // We create the channel first without connecting it so we can add filters |
| 223 // prior to any messages being received, then connect it afterwards. | 223 // prior to any messages being received, then connect it afterwards. |
| 224 void ConnectChannel(bool use_mojo_channel, const std::string& ipc_token); | 224 void ConnectChannel(bool use_mojo_channel, const std::string& ipc_token); |
| 225 | 225 |
| 226 // IPC message handlers. | 226 // IPC message handlers. |
| 227 void OnShutdown(); | 227 void OnShutdown(); |
| 228 void OnSetProfilerStatus(tracked_objects::ThreadData::Status status); | 228 void OnSetProfilerStatus(tracked_objects::ThreadData::ThreadStatus status); |
| 229 void OnGetChildProfilerData(int sequence_number, int current_profiling_phase); | 229 void OnGetChildProfilerData(int sequence_number, int current_profiling_phase); |
| 230 void OnProfilingPhaseCompleted(int profiling_phase); | 230 void OnProfilingPhaseCompleted(int profiling_phase); |
| 231 #ifdef IPC_MESSAGE_LOG_ENABLED | 231 #ifdef IPC_MESSAGE_LOG_ENABLED |
| 232 void OnSetIPCLoggingEnabled(bool enable); | 232 void OnSetIPCLoggingEnabled(bool enable); |
| 233 #endif | 233 #endif |
| 234 | 234 |
| 235 void EnsureConnected(); | 235 void EnsureConnected(); |
| 236 | 236 |
| 237 std::unique_ptr<IPC::ScopedIPCSupport> mojo_ipc_support_; | 237 std::unique_ptr<IPC::ScopedIPCSupport> mojo_ipc_support_; |
| 238 std::unique_ptr<MojoApplication> mojo_application_; | 238 std::unique_ptr<MojoApplication> mojo_application_; |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 324 | 324 |
| 325 private: | 325 private: |
| 326 struct Options options_; | 326 struct Options options_; |
| 327 | 327 |
| 328 DISALLOW_COPY_AND_ASSIGN(Builder); | 328 DISALLOW_COPY_AND_ASSIGN(Builder); |
| 329 }; | 329 }; |
| 330 | 330 |
| 331 } // namespace content | 331 } // namespace content |
| 332 | 332 |
| 333 #endif // CONTENT_CHILD_CHILD_THREAD_IMPL_H_ | 333 #endif // CONTENT_CHILD_CHILD_THREAD_IMPL_H_ |
| OLD | NEW |