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

Side by Side Diff: content/browser/browser_main_loop.h

Issue 1340013002: Add thread-local allocation context for tracing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix typo Created 5 years, 3 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
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_BROWSER_BROWSER_MAIN_LOOP_H_ 5 #ifndef CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_
6 #define CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_ 6 #define CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "base/timer/timer.h" 12 #include "base/timer/timer.h"
13 #include "content/browser/browser_process_sub_thread.h" 13 #include "content/browser/browser_process_sub_thread.h"
14 #include "content/public/browser/browser_main_runner.h" 14 #include "content/public/browser/browser_main_runner.h"
15 15
16 namespace base { 16 namespace base {
17 class CommandLine; 17 class CommandLine;
18 class FilePath; 18 class FilePath;
19 class HighResolutionTimerManager; 19 class HighResolutionTimerManager;
20 class MessageLoop; 20 class MessageLoop;
21 class PowerMonitor; 21 class PowerMonitor;
22 class SystemMonitor; 22 class SystemMonitor;
23 class MemoryPressureMonitor; 23 class MemoryPressureMonitor;
24 namespace trace_event { 24 namespace trace_event {
25 class PseudoStackController;
25 class TraceMemoryController; 26 class TraceMemoryController;
26 class TraceEventSystemStatsMonitor; 27 class TraceEventSystemStatsMonitor;
27 } // namespace trace_event 28 } // namespace trace_event
28 } // namespace base 29 } // namespace base
29 30
30 namespace media { 31 namespace media {
31 class AudioManager; 32 class AudioManager;
32 class UserInputMonitor; 33 class UserInputMonitor;
33 namespace midi { 34 namespace midi {
34 class MidiManager; 35 class MidiManager;
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 #if defined(OS_WIN) 200 #if defined(OS_WIN)
200 scoped_ptr<SystemMessageWindowWin> system_message_window_; 201 scoped_ptr<SystemMessageWindowWin> system_message_window_;
201 #endif 202 #endif
202 203
203 #if defined(OS_ANDROID) 204 #if defined(OS_ANDROID)
204 // Android implementation of ScreenOrientationDelegate 205 // Android implementation of ScreenOrientationDelegate
205 scoped_ptr<ScreenOrientationDelegate> screen_orientation_delegate_; 206 scoped_ptr<ScreenOrientationDelegate> screen_orientation_delegate_;
206 #endif 207 #endif
207 208
208 scoped_ptr<MemoryObserver> memory_observer_; 209 scoped_ptr<MemoryObserver> memory_observer_;
210 scoped_ptr<base::trace_event::PseudoStackController> pseudo_stack_controller_;
209 scoped_ptr<base::trace_event::TraceMemoryController> trace_memory_controller_; 211 scoped_ptr<base::trace_event::TraceMemoryController> trace_memory_controller_;
210 212
211 // Members initialized in |InitStartupTracingForDuration()| ------------------ 213 // Members initialized in |InitStartupTracingForDuration()| ------------------
212 base::FilePath startup_trace_file_; 214 base::FilePath startup_trace_file_;
213 215
214 // This timer initiates trace file saving. 216 // This timer initiates trace file saving.
215 base::OneShotTimer<BrowserMainLoop> startup_trace_timer_; 217 base::OneShotTimer<BrowserMainLoop> startup_trace_timer_;
216 218
217 // Members initialized in |Init()| ------------------------------------------- 219 // Members initialized in |Init()| -------------------------------------------
218 // Destroy |parts_| before |main_message_loop_| (required) and before other 220 // Destroy |parts_| before |main_message_loop_| (required) and before other
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 scoped_ptr<TimeZoneMonitor> time_zone_monitor_; 265 scoped_ptr<TimeZoneMonitor> time_zone_monitor_;
264 266
265 // DO NOT add members here. Add them to the right categories above. 267 // DO NOT add members here. Add them to the right categories above.
266 268
267 DISALLOW_COPY_AND_ASSIGN(BrowserMainLoop); 269 DISALLOW_COPY_AND_ASSIGN(BrowserMainLoop);
268 }; 270 };
269 271
270 } // namespace content 272 } // namespace content
271 273
272 #endif // CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_ 274 #endif // CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698