| 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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 | 143 |
| 144 int PreMainMessageLoopRun(); | 144 int PreMainMessageLoopRun(); |
| 145 | 145 |
| 146 void MainMessageLoopRun(); | 146 void MainMessageLoopRun(); |
| 147 | 147 |
| 148 base::FilePath GetStartupTraceFileName( | 148 base::FilePath GetStartupTraceFileName( |
| 149 const base::CommandLine& command_line) const; | 149 const base::CommandLine& command_line) const; |
| 150 void InitStartupTracing(const base::CommandLine& command_line); | 150 void InitStartupTracing(const base::CommandLine& command_line); |
| 151 void EndStartupTracing(); | 151 void EndStartupTracing(); |
| 152 | 152 |
| 153 bool UsingInProcessGpu() const; |
| 154 void InitializeGpuDataManager(); |
| 155 |
| 153 // Members initialized on construction --------------------------------------- | 156 // Members initialized on construction --------------------------------------- |
| 154 const MainFunctionParams& parameters_; | 157 const MainFunctionParams& parameters_; |
| 155 const base::CommandLine& parsed_command_line_; | 158 const base::CommandLine& parsed_command_line_; |
| 156 int result_code_; | 159 int result_code_; |
| 157 // True if the non-UI threads were created. | 160 // True if the non-UI threads were created. |
| 158 bool created_threads_; | 161 bool created_threads_; |
| 159 | 162 |
| 160 // Members initialized in |MainMessageLoopStart()| --------------------------- | 163 // Members initialized in |MainMessageLoopStart()| --------------------------- |
| 161 scoped_ptr<base::MessageLoop> main_message_loop_; | 164 scoped_ptr<base::MessageLoop> main_message_loop_; |
| 162 scoped_ptr<base::SystemMonitor> system_monitor_; | 165 scoped_ptr<base::SystemMonitor> system_monitor_; |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 | 220 |
| 218 // This timer initiates trace file saving. | 221 // This timer initiates trace file saving. |
| 219 base::OneShotTimer<BrowserMainLoop> startup_trace_timer_; | 222 base::OneShotTimer<BrowserMainLoop> startup_trace_timer_; |
| 220 | 223 |
| 221 DISALLOW_COPY_AND_ASSIGN(BrowserMainLoop); | 224 DISALLOW_COPY_AND_ASSIGN(BrowserMainLoop); |
| 222 }; | 225 }; |
| 223 | 226 |
| 224 } // namespace content | 227 } // namespace content |
| 225 | 228 |
| 226 #endif // CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_ | 229 #endif // CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_ |
| OLD | NEW |