| 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 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 } | 187 } |
| 188 | 188 |
| 189 protected: | 189 protected: |
| 190 friend class ChildProcess; | 190 friend class ChildProcess; |
| 191 | 191 |
| 192 // Called when the process refcount is 0. | 192 // Called when the process refcount is 0. |
| 193 void OnProcessFinalRelease(); | 193 void OnProcessFinalRelease(); |
| 194 | 194 |
| 195 virtual bool OnControlMessageReceived(const IPC::Message& msg); | 195 virtual bool OnControlMessageReceived(const IPC::Message& msg); |
| 196 virtual void OnProcessBackgrounded(bool backgrounded); | 196 virtual void OnProcessBackgrounded(bool backgrounded); |
| 197 virtual void OnProcessPurgeAndSuspend(); |
| 197 | 198 |
| 198 // IPC::Listener implementation: | 199 // IPC::Listener implementation: |
| 199 bool OnMessageReceived(const IPC::Message& msg) override; | 200 bool OnMessageReceived(const IPC::Message& msg) override; |
| 200 void OnChannelConnected(int32_t peer_pid) override; | 201 void OnChannelConnected(int32_t peer_pid) override; |
| 201 void OnChannelError() override; | 202 void OnChannelError() override; |
| 202 | 203 |
| 203 bool IsInBrowserProcess() const; | 204 bool IsInBrowserProcess() const; |
| 204 scoped_refptr<base::SequencedTaskRunner> GetIOTaskRunner(); | 205 scoped_refptr<base::SequencedTaskRunner> GetIOTaskRunner(); |
| 205 | 206 |
| 206 private: | 207 private: |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 324 | 325 |
| 325 private: | 326 private: |
| 326 struct Options options_; | 327 struct Options options_; |
| 327 | 328 |
| 328 DISALLOW_COPY_AND_ASSIGN(Builder); | 329 DISALLOW_COPY_AND_ASSIGN(Builder); |
| 329 }; | 330 }; |
| 330 | 331 |
| 331 } // namespace content | 332 } // namespace content |
| 332 | 333 |
| 333 #endif // CONTENT_CHILD_CHILD_THREAD_IMPL_H_ | 334 #endif // CONTENT_CHILD_CHILD_THREAD_IMPL_H_ |
| OLD | NEW |