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