| 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_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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 // process. | 57 // process. |
| 58 // | 58 // |
| 59 // Never returns MemoryDumpManager::kInvalidTracingProcessId. | 59 // Never returns MemoryDumpManager::kInvalidTracingProcessId. |
| 60 // Returns only ChildProcessHost::kBrowserTracingProcessId in single-process | 60 // Returns only ChildProcessHost::kBrowserTracingProcessId in single-process |
| 61 // mode. | 61 // mode. |
| 62 static uint64_t ChildProcessUniqueIdToTracingProcessId(int child_process_id); | 62 static uint64_t ChildProcessUniqueIdToTracingProcessId(int child_process_id); |
| 63 | 63 |
| 64 // ChildProcessHost implementation | 64 // ChildProcessHost implementation |
| 65 bool Send(IPC::Message* message) override; | 65 bool Send(IPC::Message* message) override; |
| 66 void ForceShutdown() override; | 66 void ForceShutdown() override; |
| 67 std::string CreateChannelMojo(const std::string& child_token) override; | 67 std::string CreateChannelMojo( |
| 68 const mojo::edk::PendingProcessConnection& connection) override; |
| 68 void CreateChannelMojo() override; | 69 void CreateChannelMojo() override; |
| 69 bool IsChannelOpening() override; | 70 bool IsChannelOpening() override; |
| 70 void AddFilter(IPC::MessageFilter* filter) override; | 71 void AddFilter(IPC::MessageFilter* filter) override; |
| 71 service_manager::InterfaceProvider* GetRemoteInterfaces() override; | 72 service_manager::InterfaceProvider* GetRemoteInterfaces() override; |
| 72 | 73 |
| 73 private: | 74 private: |
| 74 friend class ChildProcessHost; | 75 friend class ChildProcessHost; |
| 75 | 76 |
| 76 explicit ChildProcessHostImpl(ChildProcessHostDelegate* delegate); | 77 explicit ChildProcessHostImpl(ChildProcessHostDelegate* delegate); |
| 77 | 78 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 98 // thread, we don't have a IPC::ChannelProxy and so we manage filters | 99 // thread, we don't have a IPC::ChannelProxy and so we manage filters |
| 99 // manually. | 100 // manually. |
| 100 std::vector<scoped_refptr<IPC::MessageFilter> > filters_; | 101 std::vector<scoped_refptr<IPC::MessageFilter> > filters_; |
| 101 | 102 |
| 102 DISALLOW_COPY_AND_ASSIGN(ChildProcessHostImpl); | 103 DISALLOW_COPY_AND_ASSIGN(ChildProcessHostImpl); |
| 103 }; | 104 }; |
| 104 | 105 |
| 105 } // namespace content | 106 } // namespace content |
| 106 | 107 |
| 107 #endif // CONTENT_COMMON_CHILD_PROCESS_HOST_IMPL_H_ | 108 #endif // CONTENT_COMMON_CHILD_PROCESS_HOST_IMPL_H_ |
| OLD | NEW |