| 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 |
| 170 virtual HANDLE shutdown_event() { return shutdown_event_; } | 175 virtual HANDLE shutdown_event() { return shutdown_event_; } |
| 171 | 176 |
| 172 private: | 177 private: |
| 173 void CreateResourceDispatcherHost(); | 178 void CreateResourceDispatcherHost(); |
| 174 void CreatePrefService(); | 179 void CreatePrefService(); |
| 175 void CreateMetricsService(); | 180 void CreateMetricsService(); |
| 176 void CreateIOThread(); | 181 void CreateIOThread(); |
| 177 void CreateFileThread(); | 182 void CreateFileThread(); |
| 178 void CreateDBThread(); | 183 void CreateDBThread(); |
| 179 void CreateSafeBrowsingThread(); | 184 void CreateSafeBrowsingThread(); |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 | 236 |
| 232 unsigned int module_ref_count_; | 237 unsigned int module_ref_count_; |
| 233 | 238 |
| 234 // Ensures that all the print jobs are finished before closing the browser. | 239 // Ensures that all the print jobs are finished before closing the browser. |
| 235 scoped_ptr<printing::PrintJobManager> print_job_manager_; | 240 scoped_ptr<printing::PrintJobManager> print_job_manager_; |
| 236 | 241 |
| 237 std::wstring locale_; | 242 std::wstring locale_; |
| 238 | 243 |
| 239 MemoryModel memory_model_; | 244 MemoryModel memory_model_; |
| 240 | 245 |
| 246 scoped_refptr<SuspendController> suspend_controller_; |
| 247 |
| 241 bool checked_for_new_frames_; | 248 bool checked_for_new_frames_; |
| 242 bool using_new_frames_; | 249 bool using_new_frames_; |
| 243 | 250 |
| 244 // An event that notifies when we are shutting-down. | 251 // An event that notifies when we are shutting-down. |
| 245 HANDLE shutdown_event_; | 252 HANDLE shutdown_event_; |
| 246 | 253 |
| 247 DISALLOW_EVIL_CONSTRUCTORS(BrowserProcessImpl); | 254 DISALLOW_EVIL_CONSTRUCTORS(BrowserProcessImpl); |
| 248 }; | 255 }; |
| 249 | 256 |
| 250 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H__ | 257 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H__ |
| 251 | 258 |
| OLD | NEW |