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

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

Issue 17074009: Created multi-process-friendly PowerMonitor interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixing windows unit test errors Created 7 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
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/shared_memory.h" 10 #include "base/memory/shared_memory.h"
11 #include "base/memory/weak_ptr.h" 11 #include "base/memory/weak_ptr.h"
12 #include "base/power_monitor/power_monitor.h"
12 #include "base/tracked_objects.h" 13 #include "base/tracked_objects.h"
13 #include "content/common/content_export.h" 14 #include "content/common/content_export.h"
14 #include "content/common/message_router.h" 15 #include "content/common/message_router.h"
15 #include "ipc/ipc_message.h" // For IPC_MESSAGE_LOG_ENABLED. 16 #include "ipc/ipc_message.h" // For IPC_MESSAGE_LOG_ENABLED.
16 #include "webkit/child/resource_loader_bridge.h" 17 #include "webkit/child/resource_loader_bridge.h"
17 18
18 namespace base { 19 namespace base {
19 class MessageLoop; 20 class MessageLoop;
20 21
21 namespace debug { 22 namespace debug {
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 scoped_refptr<ChildResourceMessageFilter> resource_message_filter_; 195 scoped_refptr<ChildResourceMessageFilter> resource_message_filter_;
195 196
196 scoped_refptr<QuotaMessageFilter> quota_message_filter_; 197 scoped_refptr<QuotaMessageFilter> quota_message_filter_;
197 198
198 base::WeakPtrFactory<ChildThread> channel_connected_factory_; 199 base::WeakPtrFactory<ChildThread> channel_connected_factory_;
199 200
200 // Observes the trace event system. When tracing is enabled, optionally 201 // Observes the trace event system. When tracing is enabled, optionally
201 // starts profiling the tcmalloc heap. 202 // starts profiling the tcmalloc heap.
202 scoped_ptr<base::debug::TraceMemoryController> trace_memory_controller_; 203 scoped_ptr<base::debug::TraceMemoryController> trace_memory_controller_;
203 204
205 scoped_ptr<base::PowerMonitor> power_monitor_;
206
204 DISALLOW_COPY_AND_ASSIGN(ChildThread); 207 DISALLOW_COPY_AND_ASSIGN(ChildThread);
205 }; 208 };
206 209
207 } // namespace content 210 } // namespace content
208 211
209 #endif // CONTENT_CHILD_CHILD_THREAD_H_ 212 #endif // CONTENT_CHILD_CHILD_THREAD_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.cc ('k') | content/child/child_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698