OLD | NEW |
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" |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 scoped_ptr<ScreenOrientationDelegate> screen_orientation_delegate_; | 205 scoped_ptr<ScreenOrientationDelegate> screen_orientation_delegate_; |
206 #endif | 206 #endif |
207 | 207 |
208 scoped_ptr<MemoryObserver> memory_observer_; | 208 scoped_ptr<MemoryObserver> memory_observer_; |
209 scoped_ptr<base::trace_event::TraceMemoryController> trace_memory_controller_; | 209 scoped_ptr<base::trace_event::TraceMemoryController> trace_memory_controller_; |
210 | 210 |
211 // Members initialized in |InitStartupTracingForDuration()| ------------------ | 211 // Members initialized in |InitStartupTracingForDuration()| ------------------ |
212 base::FilePath startup_trace_file_; | 212 base::FilePath startup_trace_file_; |
213 | 213 |
214 // This timer initiates trace file saving. | 214 // This timer initiates trace file saving. |
215 base::OneShotTimer<BrowserMainLoop> startup_trace_timer_; | 215 base::OneShotTimer startup_trace_timer_; |
216 | 216 |
217 // Members initialized in |Init()| ------------------------------------------- | 217 // Members initialized in |Init()| ------------------------------------------- |
218 // Destroy |parts_| before |main_message_loop_| (required) and before other | 218 // Destroy |parts_| before |main_message_loop_| (required) and before other |
219 // classes constructed in content (but after |main_thread_|). | 219 // classes constructed in content (but after |main_thread_|). |
220 scoped_ptr<BrowserMainParts> parts_; | 220 scoped_ptr<BrowserMainParts> parts_; |
221 | 221 |
222 // Members initialized in |InitializeMainThread()| --------------------------- | 222 // Members initialized in |InitializeMainThread()| --------------------------- |
223 // This must get destroyed before other threads that are created in |parts_|. | 223 // This must get destroyed before other threads that are created in |parts_|. |
224 scoped_ptr<BrowserThreadImpl> main_thread_; | 224 scoped_ptr<BrowserThreadImpl> main_thread_; |
225 | 225 |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 scoped_ptr<TimeZoneMonitor> time_zone_monitor_; | 263 scoped_ptr<TimeZoneMonitor> time_zone_monitor_; |
264 | 264 |
265 // DO NOT add members here. Add them to the right categories above. | 265 // DO NOT add members here. Add them to the right categories above. |
266 | 266 |
267 DISALLOW_COPY_AND_ASSIGN(BrowserMainLoop); | 267 DISALLOW_COPY_AND_ASSIGN(BrowserMainLoop); |
268 }; | 268 }; |
269 | 269 |
270 } // namespace content | 270 } // namespace content |
271 | 271 |
272 #endif // CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_ | 272 #endif // CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_ |
OLD | NEW |