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

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

Issue 15418002: Record Chrome trace events in tcmalloc heap profiles (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cleanup forward declarations Created 7 years, 5 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
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_CHILD_CHILD_THREAD_H_ 5 #ifndef CONTENT_CHILD_CHILD_THREAD_H_
6 #define CONTENT_CHILD_CHILD_THREAD_H_ 6 #define CONTENT_CHILD_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/memory/weak_ptr.h" 10 #include "base/memory/weak_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 "ipc/ipc_message.h" // For IPC_MESSAGE_LOG_ENABLED. 15 #include "ipc/ipc_message.h" // For IPC_MESSAGE_LOG_ENABLED.
16 #include "webkit/glue/resource_loader_bridge.h" 16 #include "webkit/glue/resource_loader_bridge.h"
17 17
18 namespace base { 18 namespace base {
19 class MessageLoop; 19 class MessageLoop;
20 } 20
21 namespace debug {
22 class TraceMemoryController;
23 } // namespace debug
24 } // namespace base
21 25
22 namespace IPC { 26 namespace IPC {
23 class SyncChannel; 27 class SyncChannel;
24 class SyncMessageFilter; 28 class SyncMessageFilter;
25 } 29 } // namespace IPC
26 30
27 namespace WebKit { 31 namespace WebKit {
28 class WebFrame; 32 class WebFrame;
29 } 33 } // namespace WebKit
30 34
31 namespace content { 35 namespace content {
32 class ChildHistogramMessageFilter; 36 class ChildHistogramMessageFilter;
33 class ChildResourceMessageFilter; 37 class ChildResourceMessageFilter;
34 class FileSystemDispatcher; 38 class FileSystemDispatcher;
35 class QuotaDispatcher; 39 class QuotaDispatcher;
36 class ResourceDispatcher; 40 class ResourceDispatcher;
37 class SocketStreamDispatcher; 41 class SocketStreamDispatcher;
38 class ThreadSafeSender; 42 class ThreadSafeSender;
39 43
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 scoped_ptr<FileSystemDispatcher> file_system_dispatcher_; 183 scoped_ptr<FileSystemDispatcher> file_system_dispatcher_;
180 184
181 scoped_ptr<QuotaDispatcher> quota_dispatcher_; 185 scoped_ptr<QuotaDispatcher> quota_dispatcher_;
182 186
183 scoped_refptr<ChildHistogramMessageFilter> histogram_message_filter_; 187 scoped_refptr<ChildHistogramMessageFilter> histogram_message_filter_;
184 188
185 scoped_refptr<ChildResourceMessageFilter> resource_message_filter_; 189 scoped_refptr<ChildResourceMessageFilter> resource_message_filter_;
186 190
187 base::WeakPtrFactory<ChildThread> channel_connected_factory_; 191 base::WeakPtrFactory<ChildThread> channel_connected_factory_;
188 192
193 // Observes the trace event system. When tracing is enabled, optionally
194 // starts profiling the tcmalloc heap.
195 scoped_ptr<base::debug::TraceMemoryController> trace_memory_controller_;
196
189 DISALLOW_COPY_AND_ASSIGN(ChildThread); 197 DISALLOW_COPY_AND_ASSIGN(ChildThread);
190 }; 198 };
191 199
192 } // namespace content 200 } // namespace content
193 201
194 #endif // CONTENT_CHILD_CHILD_THREAD_H_ 202 #endif // CONTENT_CHILD_CHILD_THREAD_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698