| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 void OnProcessFinalRelease(); | 206 void OnProcessFinalRelease(); |
| 207 | 207 |
| 208 // Called by subclasses to manually start the MojoShellConnection. Must only | 208 // Called by subclasses to manually start the MojoShellConnection. Must only |
| 209 // be called if ChildThreadImpl::Options::auto_start_mojo_shell_connection | 209 // be called if ChildThreadImpl::Options::auto_start_mojo_shell_connection |
| 210 // was set to |false| on ChildThreadImpl construction. | 210 // was set to |false| on ChildThreadImpl construction. |
| 211 void StartMojoShellConnection(); | 211 void StartMojoShellConnection(); |
| 212 | 212 |
| 213 virtual bool OnControlMessageReceived(const IPC::Message& msg); | 213 virtual bool OnControlMessageReceived(const IPC::Message& msg); |
| 214 virtual void OnProcessBackgrounded(bool backgrounded); | 214 virtual void OnProcessBackgrounded(bool backgrounded); |
| 215 virtual void OnProcessPurgeAndSuspend(); | 215 virtual void OnProcessPurgeAndSuspend(); |
| 216 virtual void OnProcessResume(); |
| 216 | 217 |
| 217 // IPC::Listener implementation: | 218 // IPC::Listener implementation: |
| 218 bool OnMessageReceived(const IPC::Message& msg) override; | 219 bool OnMessageReceived(const IPC::Message& msg) override; |
| 219 void OnChannelConnected(int32_t peer_pid) override; | 220 void OnChannelConnected(int32_t peer_pid) override; |
| 220 void OnChannelError() override; | 221 void OnChannelError() override; |
| 221 | 222 |
| 222 bool IsInBrowserProcess() const; | 223 bool IsInBrowserProcess() const; |
| 223 scoped_refptr<base::SequencedTaskRunner> GetIOTaskRunner(); | 224 scoped_refptr<base::SequencedTaskRunner> GetIOTaskRunner(); |
| 224 | 225 |
| 225 private: | 226 private: |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 358 | 359 |
| 359 private: | 360 private: |
| 360 struct Options options_; | 361 struct Options options_; |
| 361 | 362 |
| 362 DISALLOW_COPY_AND_ASSIGN(Builder); | 363 DISALLOW_COPY_AND_ASSIGN(Builder); |
| 363 }; | 364 }; |
| 364 | 365 |
| 365 } // namespace content | 366 } // namespace content |
| 366 | 367 |
| 367 #endif // CONTENT_CHILD_CHILD_THREAD_IMPL_H_ | 368 #endif // CONTENT_CHILD_CHILD_THREAD_IMPL_H_ |
| OLD | NEW |