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_H_ | 5 #ifndef CONTENT_CHILD_CHILD_THREAD_H_ |
6 #define CONTENT_CHILD_CHILD_THREAD_H_ | 6 #define CONTENT_CHILD_CHILD_THREAD_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 on_channel_error_called_ = on_channel_error_called; | 164 on_channel_error_called_ = on_channel_error_called; |
165 } | 165 } |
166 | 166 |
167 // IPC::Listener implementation: | 167 // IPC::Listener implementation: |
168 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; | 168 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; |
169 virtual void OnChannelConnected(int32 peer_pid) OVERRIDE; | 169 virtual void OnChannelConnected(int32 peer_pid) OVERRIDE; |
170 virtual void OnChannelError() OVERRIDE; | 170 virtual void OnChannelError() OVERRIDE; |
171 | 171 |
172 // mojo::ShellClient implementation: | 172 // mojo::ShellClient implementation: |
173 virtual void AcceptConnection( | 173 virtual void AcceptConnection( |
174 const mojo::String& service_name, | 174 mojo::String service_name, |
175 mojo::ScopedMessagePipeHandle message_pipe) OVERRIDE; | 175 mojo::ScopedMessagePipeHandle message_pipe) OVERRIDE; |
176 | 176 |
177 private: | 177 private: |
178 class ChildThreadMessageRouter : public MessageRouter { | 178 class ChildThreadMessageRouter : public MessageRouter { |
179 public: | 179 public: |
180 // |sender| must outlive this object. | 180 // |sender| must outlive this object. |
181 explicit ChildThreadMessageRouter(IPC::Sender* sender); | 181 explicit ChildThreadMessageRouter(IPC::Sender* sender); |
182 virtual bool Send(IPC::Message* msg) OVERRIDE; | 182 virtual bool Send(IPC::Message* msg) OVERRIDE; |
183 | 183 |
184 private: | 184 private: |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
253 scoped_ptr<base::PowerMonitor> power_monitor_; | 253 scoped_ptr<base::PowerMonitor> power_monitor_; |
254 | 254 |
255 bool in_browser_process_; | 255 bool in_browser_process_; |
256 | 256 |
257 DISALLOW_COPY_AND_ASSIGN(ChildThread); | 257 DISALLOW_COPY_AND_ASSIGN(ChildThread); |
258 }; | 258 }; |
259 | 259 |
260 } // namespace content | 260 } // namespace content |
261 | 261 |
262 #endif // CONTENT_CHILD_CHILD_THREAD_H_ | 262 #endif // CONTENT_CHILD_CHILD_THREAD_H_ |
OLD | NEW |