| 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 void OnProcessFinalRelease(); | 80 void OnProcessFinalRelease(); |
| 81 | 81 |
| 82 virtual bool OnControlMessageReceived(const IPC::Message& msg); | 82 virtual bool OnControlMessageReceived(const IPC::Message& msg); |
| 83 virtual void OnAskBeforeShutdown(); | 83 virtual void OnAskBeforeShutdown(); |
| 84 virtual void OnShutdown(); | 84 virtual void OnShutdown(); |
| 85 | 85 |
| 86 #ifdef IPC_MESSAGE_LOG_ENABLED | 86 #ifdef IPC_MESSAGE_LOG_ENABLED |
| 87 virtual void OnSetIPCLoggingEnabled(bool enable); | 87 virtual void OnSetIPCLoggingEnabled(bool enable); |
| 88 #endif | 88 #endif |
| 89 | 89 |
| 90 virtual void OnDumpHandles(); |
| 91 |
| 90 void set_on_channel_error_called(bool on_channel_error_called) { | 92 void set_on_channel_error_called(bool on_channel_error_called) { |
| 91 on_channel_error_called_ = on_channel_error_called; | 93 on_channel_error_called_ = on_channel_error_called; |
| 92 } | 94 } |
| 93 | 95 |
| 94 private: | 96 private: |
| 95 void Init(); | 97 void Init(); |
| 96 | 98 |
| 97 // IPC::Channel::Listener implementation: | 99 // IPC::Channel::Listener implementation: |
| 98 virtual bool OnMessageReceived(const IPC::Message& msg); | 100 virtual bool OnMessageReceived(const IPC::Message& msg); |
| 99 virtual void OnChannelError(); | 101 virtual void OnChannelError(); |
| (...skipping 27 matching lines...) Expand all Loading... |
| 127 scoped_ptr<NotificationService> notification_service_; | 129 scoped_ptr<NotificationService> notification_service_; |
| 128 | 130 |
| 129 scoped_ptr<FileSystemDispatcher> file_system_dispatcher_; | 131 scoped_ptr<FileSystemDispatcher> file_system_dispatcher_; |
| 130 | 132 |
| 131 scoped_ptr<QuotaDispatcher> quota_dispatcher_; | 133 scoped_ptr<QuotaDispatcher> quota_dispatcher_; |
| 132 | 134 |
| 133 DISALLOW_COPY_AND_ASSIGN(ChildThread); | 135 DISALLOW_COPY_AND_ASSIGN(ChildThread); |
| 134 }; | 136 }; |
| 135 | 137 |
| 136 #endif // CONTENT_COMMON_CHILD_THREAD_H_ | 138 #endif // CONTENT_COMMON_CHILD_THREAD_H_ |
| OLD | NEW |