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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 // mode. | 75 // mode. |
76 static uint64_t ChildProcessUniqueIdToTracingProcessId(int child_process_id); | 76 static uint64_t ChildProcessUniqueIdToTracingProcessId(int child_process_id); |
77 | 77 |
78 // ChildProcessHost implementation | 78 // ChildProcessHost implementation |
79 bool Send(IPC::Message* message) override; | 79 bool Send(IPC::Message* message) override; |
80 void ForceShutdown() override; | 80 void ForceShutdown() override; |
81 std::string CreateChannelMojo(const std::string& child_token) override; | 81 std::string CreateChannelMojo(const std::string& child_token) override; |
82 void CreateChannelMojo() override; | 82 void CreateChannelMojo() override; |
83 bool IsChannelOpening() override; | 83 bool IsChannelOpening() override; |
84 void AddFilter(IPC::MessageFilter* filter) override; | 84 void AddFilter(IPC::MessageFilter* filter) override; |
85 shell::InterfaceProvider* GetRemoteInterfaces() override; | 85 service_manager::InterfaceProvider* GetRemoteInterfaces() override; |
86 #if defined(OS_POSIX) | 86 #if defined(OS_POSIX) |
87 base::ScopedFD TakeClientFileDescriptor() override; | 87 base::ScopedFD TakeClientFileDescriptor() override; |
88 #endif | 88 #endif |
89 | 89 |
90 private: | 90 private: |
91 friend class ChildProcessHost; | 91 friend class ChildProcessHost; |
92 | 92 |
93 explicit ChildProcessHostImpl(ChildProcessHostDelegate* delegate); | 93 explicit ChildProcessHostImpl(ChildProcessHostDelegate* delegate); |
94 | 94 |
95 // IPC::Listener methods: | 95 // IPC::Listener methods: |
(...skipping 29 matching lines...) Expand all Loading... |
125 // thread, we don't have a IPC::ChannelProxy and so we manage filters | 125 // thread, we don't have a IPC::ChannelProxy and so we manage filters |
126 // manually. | 126 // manually. |
127 std::vector<scoped_refptr<IPC::MessageFilter> > filters_; | 127 std::vector<scoped_refptr<IPC::MessageFilter> > filters_; |
128 | 128 |
129 DISALLOW_COPY_AND_ASSIGN(ChildProcessHostImpl); | 129 DISALLOW_COPY_AND_ASSIGN(ChildProcessHostImpl); |
130 }; | 130 }; |
131 | 131 |
132 } // namespace content | 132 } // namespace content |
133 | 133 |
134 #endif // CONTENT_COMMON_CHILD_PROCESS_HOST_IMPL_H_ | 134 #endif // CONTENT_COMMON_CHILD_PROCESS_HOST_IMPL_H_ |
OLD | NEW |