| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 // When each service is created, we set a flag indicating this. At this point, | 5 // When each service is created, we set a flag indicating this. At this point, |
| 6 // the service initialization could fail or succeed. This allows us to remember | 6 // the service initialization could fail or succeed. This allows us to remember |
| 7 // if we tried to create a service, and not try creating it over and over if | 7 // if we tried to create a service, and not try creating it over and over if |
| 8 // the creation failed. | 8 // the creation failed. |
| 9 | 9 |
| 10 #ifndef CHROME_BROWSER_BROWSER_PROCESS_IMPL_H__ | 10 #ifndef CHROME_BROWSER_BROWSER_PROCESS_IMPL_H__ |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 return google_url_tracker_.get(); | 160 return google_url_tracker_.get(); |
| 161 } | 161 } |
| 162 | 162 |
| 163 virtual const std::wstring& GetApplicationLocale(); | 163 virtual const std::wstring& GetApplicationLocale(); |
| 164 | 164 |
| 165 virtual MemoryModel memory_model() { | 165 virtual MemoryModel memory_model() { |
| 166 DCHECK(CalledOnValidThread()); | 166 DCHECK(CalledOnValidThread()); |
| 167 return memory_model_; | 167 return memory_model_; |
| 168 } | 168 } |
| 169 | 169 |
| 170 virtual SuspendController* suspend_controller() { | |
| 171 DCHECK(CalledOnValidThread()); | |
| 172 return suspend_controller_.get(); | |
| 173 } | |
| 174 | |
| 175 virtual HANDLE shutdown_event() { return shutdown_event_; } | 170 virtual HANDLE shutdown_event() { return shutdown_event_; } |
| 176 | 171 |
| 177 private: | 172 private: |
| 178 void CreateResourceDispatcherHost(); | 173 void CreateResourceDispatcherHost(); |
| 179 void CreatePrefService(); | 174 void CreatePrefService(); |
| 180 void CreateMetricsService(); | 175 void CreateMetricsService(); |
| 181 void CreateIOThread(); | 176 void CreateIOThread(); |
| 182 void CreateFileThread(); | 177 void CreateFileThread(); |
| 183 void CreateDBThread(); | 178 void CreateDBThread(); |
| 184 void CreateSafeBrowsingThread(); | 179 void CreateSafeBrowsingThread(); |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 236 | 231 |
| 237 unsigned int module_ref_count_; | 232 unsigned int module_ref_count_; |
| 238 | 233 |
| 239 // Ensures that all the print jobs are finished before closing the browser. | 234 // Ensures that all the print jobs are finished before closing the browser. |
| 240 scoped_ptr<printing::PrintJobManager> print_job_manager_; | 235 scoped_ptr<printing::PrintJobManager> print_job_manager_; |
| 241 | 236 |
| 242 std::wstring locale_; | 237 std::wstring locale_; |
| 243 | 238 |
| 244 MemoryModel memory_model_; | 239 MemoryModel memory_model_; |
| 245 | 240 |
| 246 scoped_refptr<SuspendController> suspend_controller_; | |
| 247 | |
| 248 bool checked_for_new_frames_; | 241 bool checked_for_new_frames_; |
| 249 bool using_new_frames_; | 242 bool using_new_frames_; |
| 250 | 243 |
| 251 // An event that notifies when we are shutting-down. | 244 // An event that notifies when we are shutting-down. |
| 252 HANDLE shutdown_event_; | 245 HANDLE shutdown_event_; |
| 253 | 246 |
| 254 DISALLOW_EVIL_CONSTRUCTORS(BrowserProcessImpl); | 247 DISALLOW_EVIL_CONSTRUCTORS(BrowserProcessImpl); |
| 255 }; | 248 }; |
| 256 | 249 |
| 257 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H__ | 250 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H__ |
| 258 | 251 |
| OLD | NEW |