| OLD | NEW |
| 1 // Copyright (c) 2012 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 "base/tracked_objects.h" |
| 13 #include "content/common/content_export.h" | 13 #include "content/common/content_export.h" |
| 14 #include "content/common/message_router.h" | 14 #include "content/common/message_router.h" |
| 15 #include "content/public/common/process_type.h" |
| 15 #include "webkit/glue/resource_loader_bridge.h" | 16 #include "webkit/glue/resource_loader_bridge.h" |
| 16 | 17 |
| 17 class FileSystemDispatcher; | 18 class FileSystemDispatcher; |
| 18 class MessageLoop; | 19 class MessageLoop; |
| 19 class QuotaDispatcher; | 20 class QuotaDispatcher; |
| 20 class ResourceDispatcher; | 21 class ResourceDispatcher; |
| 21 class SocketStreamDispatcher; | 22 class SocketStreamDispatcher; |
| 22 | 23 |
| 23 namespace IPC { | 24 namespace IPC { |
| 24 class SyncChannel; | 25 class SyncChannel; |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 | 95 |
| 95 virtual bool OnControlMessageReceived(const IPC::Message& msg); | 96 virtual bool OnControlMessageReceived(const IPC::Message& msg); |
| 96 virtual void OnShutdown(); | 97 virtual void OnShutdown(); |
| 97 | 98 |
| 98 #ifdef IPC_MESSAGE_LOG_ENABLED | 99 #ifdef IPC_MESSAGE_LOG_ENABLED |
| 99 virtual void OnSetIPCLoggingEnabled(bool enable); | 100 virtual void OnSetIPCLoggingEnabled(bool enable); |
| 100 #endif | 101 #endif |
| 101 | 102 |
| 102 virtual void OnSetProfilerStatus(tracked_objects::ThreadData::Status status); | 103 virtual void OnSetProfilerStatus(tracked_objects::ThreadData::Status status); |
| 103 virtual void OnGetChildProfilerData(int sequence_number, | 104 virtual void OnGetChildProfilerData(int sequence_number, |
| 104 const std::string& process_type); | 105 content::ProcessType process_type); |
| 105 | 106 |
| 106 virtual void OnDumpHandles(); | 107 virtual void OnDumpHandles(); |
| 107 | 108 |
| 108 void set_on_channel_error_called(bool on_channel_error_called) { | 109 void set_on_channel_error_called(bool on_channel_error_called) { |
| 109 on_channel_error_called_ = on_channel_error_called; | 110 on_channel_error_called_ = on_channel_error_called; |
| 110 } | 111 } |
| 111 | 112 |
| 112 private: | 113 private: |
| 113 void Init(); | 114 void Init(); |
| 114 | 115 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 138 MessageLoop* message_loop_; | 139 MessageLoop* message_loop_; |
| 139 | 140 |
| 140 scoped_ptr<FileSystemDispatcher> file_system_dispatcher_; | 141 scoped_ptr<FileSystemDispatcher> file_system_dispatcher_; |
| 141 | 142 |
| 142 scoped_ptr<QuotaDispatcher> quota_dispatcher_; | 143 scoped_ptr<QuotaDispatcher> quota_dispatcher_; |
| 143 | 144 |
| 144 DISALLOW_COPY_AND_ASSIGN(ChildThread); | 145 DISALLOW_COPY_AND_ASSIGN(ChildThread); |
| 145 }; | 146 }; |
| 146 | 147 |
| 147 #endif // CONTENT_COMMON_CHILD_THREAD_H_ | 148 #endif // CONTENT_COMMON_CHILD_THREAD_H_ |
| OLD | NEW |