| 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" |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 void OnProcessFinalRelease(); | 86 void OnProcessFinalRelease(); |
| 87 | 87 |
| 88 virtual bool OnControlMessageReceived(const IPC::Message& msg); | 88 virtual bool OnControlMessageReceived(const IPC::Message& msg); |
| 89 virtual void OnAskBeforeShutdown(); | 89 virtual void OnAskBeforeShutdown(); |
| 90 virtual void OnShutdown(); | 90 virtual void OnShutdown(); |
| 91 | 91 |
| 92 #ifdef IPC_MESSAGE_LOG_ENABLED | 92 #ifdef IPC_MESSAGE_LOG_ENABLED |
| 93 virtual void OnSetIPCLoggingEnabled(bool enable); | 93 virtual void OnSetIPCLoggingEnabled(bool enable); |
| 94 #endif | 94 #endif |
| 95 | 95 |
| 96 virtual void OnSetProfilerStatus(bool enable); |
| 97 virtual void OnGetChildProfilerData(int sequence_number, |
| 98 const std::string& process_type); |
| 99 |
| 96 virtual void OnDumpHandles(); | 100 virtual void OnDumpHandles(); |
| 97 | 101 |
| 98 void set_on_channel_error_called(bool on_channel_error_called) { | 102 void set_on_channel_error_called(bool on_channel_error_called) { |
| 99 on_channel_error_called_ = on_channel_error_called; | 103 on_channel_error_called_ = on_channel_error_called; |
| 100 } | 104 } |
| 101 | 105 |
| 102 private: | 106 private: |
| 103 void Init(); | 107 void Init(); |
| 104 | 108 |
| 105 // IPC::Channel::Listener implementation: | 109 // IPC::Channel::Listener implementation: |
| (...skipping 27 matching lines...) Expand all Loading... |
| 133 MessageLoop* message_loop_; | 137 MessageLoop* message_loop_; |
| 134 | 138 |
| 135 scoped_ptr<FileSystemDispatcher> file_system_dispatcher_; | 139 scoped_ptr<FileSystemDispatcher> file_system_dispatcher_; |
| 136 | 140 |
| 137 scoped_ptr<QuotaDispatcher> quota_dispatcher_; | 141 scoped_ptr<QuotaDispatcher> quota_dispatcher_; |
| 138 | 142 |
| 139 DISALLOW_COPY_AND_ASSIGN(ChildThread); | 143 DISALLOW_COPY_AND_ASSIGN(ChildThread); |
| 140 }; | 144 }; |
| 141 | 145 |
| 142 #endif // CONTENT_COMMON_CHILD_THREAD_H_ | 146 #endif // CONTENT_COMMON_CHILD_THREAD_H_ |
| OLD | NEW |