Chromium Code Reviews| 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 <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 186 } | 186 } |
| 187 | 187 |
| 188 protected: | 188 protected: |
| 189 friend class ChildProcess; | 189 friend class ChildProcess; |
| 190 | 190 |
| 191 // Called when the process refcount is 0. | 191 // Called when the process refcount is 0. |
| 192 void OnProcessFinalRelease(); | 192 void OnProcessFinalRelease(); |
| 193 | 193 |
| 194 virtual bool OnControlMessageReceived(const IPC::Message& msg); | 194 virtual bool OnControlMessageReceived(const IPC::Message& msg); |
| 195 virtual void OnProcessBackgrounded(bool backgrounded); | 195 virtual void OnProcessBackgrounded(bool backgrounded); |
| 196 #if defined(MOJO_SHELL_CLIENT) | |
|
Ben Goodger (Google)
2015/11/25 04:07:28
this is absolutely going to cause you pain, get ri
Fady Samuel
2015/11/25 17:45:52
Done.
| |
| 197 virtual void OnMojoReady() {} | |
| 198 #endif | |
| 196 | 199 |
| 197 void set_on_channel_error_called(bool on_channel_error_called) { | 200 void set_on_channel_error_called(bool on_channel_error_called) { |
| 198 on_channel_error_called_ = on_channel_error_called; | 201 on_channel_error_called_ = on_channel_error_called; |
| 199 } | 202 } |
| 200 | 203 |
| 201 // IPC::Listener implementation: | 204 // IPC::Listener implementation: |
| 202 bool OnMessageReceived(const IPC::Message& msg) override; | 205 bool OnMessageReceived(const IPC::Message& msg) override; |
| 203 void OnChannelConnected(int32 peer_pid) override; | 206 void OnChannelConnected(int32 peer_pid) override; |
| 204 void OnChannelError() override; | 207 void OnChannelError() override; |
| 205 | 208 |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 334 | 337 |
| 335 private: | 338 private: |
| 336 struct Options options_; | 339 struct Options options_; |
| 337 | 340 |
| 338 DISALLOW_COPY_AND_ASSIGN(Builder); | 341 DISALLOW_COPY_AND_ASSIGN(Builder); |
| 339 }; | 342 }; |
| 340 | 343 |
| 341 } // namespace content | 344 } // namespace content |
| 342 | 345 |
| 343 #endif // CONTENT_CHILD_CHILD_THREAD_IMPL_H_ | 346 #endif // CONTENT_CHILD_CHILD_THREAD_IMPL_H_ |
| OLD | NEW |