| OLD | NEW |
| 1 // Copyright (c) 2011 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_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 "base/tracked_objects.h" |
| 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 // Called when the process refcount is 0. | 86 // Called when the process refcount is 0. |
| 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 OnShutdown(); | 90 virtual void OnShutdown(); |
| 90 | 91 |
| 91 #ifdef IPC_MESSAGE_LOG_ENABLED | 92 #ifdef IPC_MESSAGE_LOG_ENABLED |
| 92 virtual void OnSetIPCLoggingEnabled(bool enable); | 93 virtual void OnSetIPCLoggingEnabled(bool enable); |
| 93 #endif | 94 #endif |
| 94 | 95 |
| 95 virtual void OnSetProfilerStatus(bool enable); | 96 virtual void OnSetProfilerStatus(tracked_objects::ThreadData::Status status); |
| 96 virtual void OnGetChildProfilerData(int sequence_number, | 97 virtual void OnGetChildProfilerData(int sequence_number, |
| 97 const std::string& process_type); | 98 const std::string& process_type); |
| 98 | 99 |
| 99 virtual void OnDumpHandles(); | 100 virtual void OnDumpHandles(); |
| 100 | 101 |
| 101 void set_on_channel_error_called(bool on_channel_error_called) { | 102 void set_on_channel_error_called(bool on_channel_error_called) { |
| 102 on_channel_error_called_ = on_channel_error_called; | 103 on_channel_error_called_ = on_channel_error_called; |
| 103 } | 104 } |
| 104 | 105 |
| 105 private: | 106 private: |
| (...skipping 25 matching lines...) Expand all Loading... |
| 131 MessageLoop* message_loop_; | 132 MessageLoop* message_loop_; |
| 132 | 133 |
| 133 scoped_ptr<FileSystemDispatcher> file_system_dispatcher_; | 134 scoped_ptr<FileSystemDispatcher> file_system_dispatcher_; |
| 134 | 135 |
| 135 scoped_ptr<QuotaDispatcher> quota_dispatcher_; | 136 scoped_ptr<QuotaDispatcher> quota_dispatcher_; |
| 136 | 137 |
| 137 DISALLOW_COPY_AND_ASSIGN(ChildThread); | 138 DISALLOW_COPY_AND_ASSIGN(ChildThread); |
| 138 }; | 139 }; |
| 139 | 140 |
| 140 #endif // CONTENT_COMMON_CHILD_THREAD_H_ | 141 #endif // CONTENT_COMMON_CHILD_THREAD_H_ |
| OLD | NEW |