Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(263)

Side by Side Diff: content/common/child_thread.h

Issue 10829199: Add more logging to ChildThread. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | content/common/child_thread.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/shared_memory.h" 10 #include "base/shared_memory.h"
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 108
109 virtual void OnSetProfilerStatus(tracked_objects::ThreadData::Status status); 109 virtual void OnSetProfilerStatus(tracked_objects::ThreadData::Status status);
110 virtual void OnGetChildProfilerData(int sequence_number); 110 virtual void OnGetChildProfilerData(int sequence_number);
111 111
112 virtual void OnDumpHandles(); 112 virtual void OnDumpHandles();
113 113
114 void set_on_channel_error_called(bool on_channel_error_called) { 114 void set_on_channel_error_called(bool on_channel_error_called) {
115 on_channel_error_called_ = on_channel_error_called; 115 on_channel_error_called_ = on_channel_error_called;
116 } 116 }
117 117
118 // IPC::Listener implementation:
119 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE;
120 virtual void OnChannelConnected(int32 peer_pid) OVERRIDE;
121 virtual void OnChannelError() OVERRIDE;
122
118 private: 123 private:
119 void Init(); 124 void Init();
120 125
121 // IPC::Listener implementation:
122 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE;
123 virtual void OnChannelError() OVERRIDE;
124
125 #if defined(USE_TCMALLOC) 126 #if defined(USE_TCMALLOC)
126 void OnGetTcmallocStats(); 127 void OnGetTcmallocStats();
127 #endif 128 #endif
128 129
129 std::string channel_name_; 130 std::string channel_name_;
130 scoped_ptr<IPC::SyncChannel> channel_; 131 scoped_ptr<IPC::SyncChannel> channel_;
131 132
132 // Allows threads other than the main thread to send sync messages. 133 // Allows threads other than the main thread to send sync messages.
133 scoped_refptr<IPC::SyncMessageFilter> sync_message_filter_; 134 scoped_refptr<IPC::SyncMessageFilter> sync_message_filter_;
134 135
(...skipping 15 matching lines...) Expand all
150 scoped_ptr<FileSystemDispatcher> file_system_dispatcher_; 151 scoped_ptr<FileSystemDispatcher> file_system_dispatcher_;
151 152
152 scoped_ptr<QuotaDispatcher> quota_dispatcher_; 153 scoped_ptr<QuotaDispatcher> quota_dispatcher_;
153 154
154 scoped_refptr<content::ChildHistogramMessageFilter> histogram_message_filter_; 155 scoped_refptr<content::ChildHistogramMessageFilter> histogram_message_filter_;
155 156
156 DISALLOW_COPY_AND_ASSIGN(ChildThread); 157 DISALLOW_COPY_AND_ASSIGN(ChildThread);
157 }; 158 };
158 159
159 #endif // CONTENT_COMMON_CHILD_THREAD_H_ 160 #endif // CONTENT_COMMON_CHILD_THREAD_H_
OLDNEW
« no previous file with comments | « no previous file | content/common/child_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698