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

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

Issue 8588023: Collect profiler stats from browser child processes. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years 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 | « content/common/child_process_messages.h ('k') | 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) 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 void OnProcessFinalRelease(); 86 void OnProcessFinalRelease();
87 87
88 virtual bool OnControlMessageReceived(const IPC::Message& msg); 88 virtual bool OnControlMessageReceived(const IPC::Message& msg);
89 virtual void OnAskBeforeShutdown(); 89 virtual void OnAskBeforeShutdown();
90 virtual void OnShutdown(); 90 virtual void OnShutdown();
91 91
92 #ifdef IPC_MESSAGE_LOG_ENABLED 92 #ifdef IPC_MESSAGE_LOG_ENABLED
93 virtual void OnSetIPCLoggingEnabled(bool enable); 93 virtual void OnSetIPCLoggingEnabled(bool enable);
94 #endif 94 #endif
95 95
96 virtual void OnSetProfilerStatus(bool enable);
97 virtual void OnGetChildProfilerData(int sequence_number,
98 const std::string& process_type);
99
96 virtual void OnDumpHandles(); 100 virtual void OnDumpHandles();
97 101
98 void set_on_channel_error_called(bool on_channel_error_called) { 102 void set_on_channel_error_called(bool on_channel_error_called) {
99 on_channel_error_called_ = on_channel_error_called; 103 on_channel_error_called_ = on_channel_error_called;
100 } 104 }
101 105
102 private: 106 private:
103 void Init(); 107 void Init();
104 108
105 // IPC::Channel::Listener implementation: 109 // IPC::Channel::Listener implementation:
(...skipping 27 matching lines...) Expand all
133 MessageLoop* message_loop_; 137 MessageLoop* message_loop_;
134 138
135 scoped_ptr<FileSystemDispatcher> file_system_dispatcher_; 139 scoped_ptr<FileSystemDispatcher> file_system_dispatcher_;
136 140
137 scoped_ptr<QuotaDispatcher> quota_dispatcher_; 141 scoped_ptr<QuotaDispatcher> quota_dispatcher_;
138 142
139 DISALLOW_COPY_AND_ASSIGN(ChildThread); 143 DISALLOW_COPY_AND_ASSIGN(ChildThread);
140 }; 144 };
141 145
142 #endif // CONTENT_COMMON_CHILD_THREAD_H_ 146 #endif // CONTENT_COMMON_CHILD_THREAD_H_
OLDNEW
« no previous file with comments | « content/common/child_process_messages.h ('k') | content/common/child_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698