Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_COMMON_CHILD_THREAD_H_ | 5 #ifndef CONTENT_COMMON_CHILD_THREAD_H_ |
| 6 #define CONTENT_COMMON_CHILD_THREAD_H_ | 6 #define CONTENT_COMMON_CHILD_THREAD_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 11 #include "base/shared_memory.h" | 11 #include "base/shared_memory.h" |
| 12 #include "content/common/child_process_info.h" | |
|
jam
2011/11/28 15:17:34
not needed
ramant (doing other things)
2011/11/29 01:32:20
Done.
| |
| 12 #include "content/common/content_export.h" | 13 #include "content/common/content_export.h" |
| 13 #include "content/common/message_router.h" | 14 #include "content/common/message_router.h" |
| 14 #include "webkit/glue/resource_loader_bridge.h" | 15 #include "webkit/glue/resource_loader_bridge.h" |
| 15 | 16 |
| 16 class FileSystemDispatcher; | 17 class FileSystemDispatcher; |
| 17 class MessageLoop; | 18 class MessageLoop; |
| 18 class QuotaDispatcher; | 19 class QuotaDispatcher; |
| 19 class ResourceDispatcher; | 20 class ResourceDispatcher; |
| 20 class SocketStreamDispatcher; | 21 class SocketStreamDispatcher; |
| 21 | 22 |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 86 void OnProcessFinalRelease(); | 87 void OnProcessFinalRelease(); |
| 87 | 88 |
| 88 virtual bool OnControlMessageReceived(const IPC::Message& msg); | 89 virtual bool OnControlMessageReceived(const IPC::Message& msg); |
| 89 virtual void OnAskBeforeShutdown(); | 90 virtual void OnAskBeforeShutdown(); |
| 90 virtual void OnShutdown(); | 91 virtual void OnShutdown(); |
| 91 | 92 |
| 92 #ifdef IPC_MESSAGE_LOG_ENABLED | 93 #ifdef IPC_MESSAGE_LOG_ENABLED |
| 93 virtual void OnSetIPCLoggingEnabled(bool enable); | 94 virtual void OnSetIPCLoggingEnabled(bool enable); |
| 94 #endif | 95 #endif |
| 95 | 96 |
| 97 virtual void OnSetProfilerStatus(bool enable); | |
| 98 virtual void OnGetChildProfilerData(int sequence_number, | |
| 99 const std::string& process_type); | |
| 100 | |
| 96 virtual void OnDumpHandles(); | 101 virtual void OnDumpHandles(); |
| 97 | 102 |
| 98 void set_on_channel_error_called(bool on_channel_error_called) { | 103 void set_on_channel_error_called(bool on_channel_error_called) { |
| 99 on_channel_error_called_ = on_channel_error_called; | 104 on_channel_error_called_ = on_channel_error_called; |
| 100 } | 105 } |
| 101 | 106 |
| 102 private: | 107 private: |
| 103 void Init(); | 108 void Init(); |
| 104 | 109 |
| 105 // IPC::Channel::Listener implementation: | 110 // IPC::Channel::Listener implementation: |
| (...skipping 27 matching lines...) Expand all Loading... | |
| 133 MessageLoop* message_loop_; | 138 MessageLoop* message_loop_; |
| 134 | 139 |
| 135 scoped_ptr<FileSystemDispatcher> file_system_dispatcher_; | 140 scoped_ptr<FileSystemDispatcher> file_system_dispatcher_; |
| 136 | 141 |
| 137 scoped_ptr<QuotaDispatcher> quota_dispatcher_; | 142 scoped_ptr<QuotaDispatcher> quota_dispatcher_; |
| 138 | 143 |
| 139 DISALLOW_COPY_AND_ASSIGN(ChildThread); | 144 DISALLOW_COPY_AND_ASSIGN(ChildThread); |
| 140 }; | 145 }; |
| 141 | 146 |
| 142 #endif // CONTENT_COMMON_CHILD_THREAD_H_ | 147 #endif // CONTENT_COMMON_CHILD_THREAD_H_ |
| OLD | NEW |