| 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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( | 67 std::string CreateChannelMojo( |
| 68 mojo::edk::PendingProcessConnection* connection) override; | 68 mojo::edk::PendingProcessConnection* connection) override; |
| 69 void CreateChannelMojo() override; | 69 void CreateChannelMojo() override; |
| 70 bool IsChannelOpening() override; | 70 bool IsChannelOpening() override; |
| 71 void AddFilter(IPC::MessageFilter* filter) override; | 71 void AddFilter(IPC::MessageFilter* filter) override; |
| 72 service_manager::InterfaceProvider* GetRemoteInterfaces() override; | 72 void BindInterface(const std::string& interface_name, |
| 73 mojo::ScopedMessagePipeHandle interface_pipe) override; |
| 73 | 74 |
| 74 private: | 75 private: |
| 75 friend class ChildProcessHost; | 76 friend class ChildProcessHost; |
| 76 | 77 |
| 77 explicit ChildProcessHostImpl(ChildProcessHostDelegate* delegate); | 78 explicit ChildProcessHostImpl(ChildProcessHostDelegate* delegate); |
| 78 | 79 |
| 79 // IPC::Listener methods: | 80 // IPC::Listener methods: |
| 80 bool OnMessageReceived(const IPC::Message& msg) override; | 81 bool OnMessageReceived(const IPC::Message& msg) override; |
| 81 void OnChannelConnected(int32_t peer_pid) override; | 82 void OnChannelConnected(int32_t peer_pid) override; |
| 82 void OnChannelError() override; | 83 void OnChannelError() override; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 99 // thread, we don't have a IPC::ChannelProxy and so we manage filters | 100 // thread, we don't have a IPC::ChannelProxy and so we manage filters |
| 100 // manually. | 101 // manually. |
| 101 std::vector<scoped_refptr<IPC::MessageFilter> > filters_; | 102 std::vector<scoped_refptr<IPC::MessageFilter> > filters_; |
| 102 | 103 |
| 103 DISALLOW_COPY_AND_ASSIGN(ChildProcessHostImpl); | 104 DISALLOW_COPY_AND_ASSIGN(ChildProcessHostImpl); |
| 104 }; | 105 }; |
| 105 | 106 |
| 106 } // namespace content | 107 } // namespace content |
| 107 | 108 |
| 108 #endif // CONTENT_COMMON_CHILD_PROCESS_HOST_IMPL_H_ | 109 #endif // CONTENT_COMMON_CHILD_PROCESS_HOST_IMPL_H_ |
| OLD | NEW |