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 "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/memory/shared_memory.h" | 10 #include "base/memory/shared_memory.h" |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 #if defined(OS_ANDROID) | 126 #if defined(OS_ANDROID) |
127 // Called on Android's service thread to shutdown the main thread of this | 127 // Called on Android's service thread to shutdown the main thread of this |
128 // process. | 128 // process. |
129 static void ShutdownThread(); | 129 static void ShutdownThread(); |
130 #endif | 130 #endif |
131 | 131 |
132 protected: | 132 protected: |
133 friend class ChildProcess; | 133 friend class ChildProcess; |
134 | 134 |
135 // Called when the process refcount is 0. | 135 // Called when the process refcount is 0. |
136 void OnProcessFinalRelease(); | 136 virtual void OnProcessFinalRelease(); |
137 | 137 |
138 virtual bool OnControlMessageReceived(const IPC::Message& msg); | 138 virtual bool OnControlMessageReceived(const IPC::Message& msg); |
139 | 139 |
140 void set_on_channel_error_called(bool on_channel_error_called) { | 140 void set_on_channel_error_called(bool on_channel_error_called) { |
141 on_channel_error_called_ = on_channel_error_called; | 141 on_channel_error_called_ = on_channel_error_called; |
142 } | 142 } |
143 | 143 |
144 // IPC::Listener implementation: | 144 // IPC::Listener implementation: |
145 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; | 145 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; |
146 virtual void OnChannelConnected(int32 peer_pid) OVERRIDE; | 146 virtual void OnChannelConnected(int32 peer_pid) OVERRIDE; |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 scoped_ptr<base::debug::TraceMemoryController> trace_memory_controller_; | 203 scoped_ptr<base::debug::TraceMemoryController> trace_memory_controller_; |
204 | 204 |
205 scoped_ptr<base::PowerMonitor> power_monitor_; | 205 scoped_ptr<base::PowerMonitor> power_monitor_; |
206 | 206 |
207 DISALLOW_COPY_AND_ASSIGN(ChildThread); | 207 DISALLOW_COPY_AND_ASSIGN(ChildThread); |
208 }; | 208 }; |
209 | 209 |
210 } // namespace content | 210 } // namespace content |
211 | 211 |
212 #endif // CONTENT_CHILD_CHILD_THREAD_H_ | 212 #endif // CONTENT_CHILD_CHILD_THREAD_H_ |
OLD | NEW |