| 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" |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 void OnProcessFinalRelease(); | 93 void OnProcessFinalRelease(); |
| 94 | 94 |
| 95 virtual bool OnControlMessageReceived(const IPC::Message& msg); | 95 virtual bool OnControlMessageReceived(const IPC::Message& msg); |
| 96 virtual void OnShutdown(); | 96 virtual void OnShutdown(); |
| 97 | 97 |
| 98 #ifdef IPC_MESSAGE_LOG_ENABLED | 98 #ifdef IPC_MESSAGE_LOG_ENABLED |
| 99 virtual void OnSetIPCLoggingEnabled(bool enable); | 99 virtual void OnSetIPCLoggingEnabled(bool enable); |
| 100 #endif | 100 #endif |
| 101 | 101 |
| 102 virtual void OnSetProfilerStatus(tracked_objects::ThreadData::Status status); | 102 virtual void OnSetProfilerStatus(tracked_objects::ThreadData::Status status); |
| 103 virtual void OnGetChildProfilerData(int sequence_number, | 103 virtual void OnGetChildProfilerData(int sequence_number); |
| 104 const std::string& process_type); | |
| 105 | 104 |
| 106 virtual void OnDumpHandles(); | 105 virtual void OnDumpHandles(); |
| 107 | 106 |
| 108 void set_on_channel_error_called(bool on_channel_error_called) { | 107 void set_on_channel_error_called(bool on_channel_error_called) { |
| 109 on_channel_error_called_ = on_channel_error_called; | 108 on_channel_error_called_ = on_channel_error_called; |
| 110 } | 109 } |
| 111 | 110 |
| 112 private: | 111 private: |
| 113 void Init(); | 112 void Init(); |
| 114 | 113 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 138 MessageLoop* message_loop_; | 137 MessageLoop* message_loop_; |
| 139 | 138 |
| 140 scoped_ptr<FileSystemDispatcher> file_system_dispatcher_; | 139 scoped_ptr<FileSystemDispatcher> file_system_dispatcher_; |
| 141 | 140 |
| 142 scoped_ptr<QuotaDispatcher> quota_dispatcher_; | 141 scoped_ptr<QuotaDispatcher> quota_dispatcher_; |
| 143 | 142 |
| 144 DISALLOW_COPY_AND_ASSIGN(ChildThread); | 143 DISALLOW_COPY_AND_ASSIGN(ChildThread); |
| 145 }; | 144 }; |
| 146 | 145 |
| 147 #endif // CONTENT_COMMON_CHILD_THREAD_H_ | 146 #endif // CONTENT_COMMON_CHILD_THREAD_H_ |
| OLD | NEW |