| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 bool did_start_; | 175 bool did_start_; |
| 176 | 176 |
| 177 // Ensures that all the print jobs are finished before closing the browser. | 177 // Ensures that all the print jobs are finished before closing the browser. |
| 178 scoped_ptr<printing::PrintJobManager> print_job_manager_; | 178 scoped_ptr<printing::PrintJobManager> print_job_manager_; |
| 179 | 179 |
| 180 std::string locale_; | 180 std::string locale_; |
| 181 | 181 |
| 182 bool checked_for_new_frames_; | 182 bool checked_for_new_frames_; |
| 183 bool using_new_frames_; | 183 bool using_new_frames_; |
| 184 | 184 |
| 185 // This service just sits around and makes thumanails for tabs. It does | 185 // This service just sits around and makes thumbnails for tabs. It does |
| 186 // nothing in the cosntructor so we don't have to worry about lazy init. | 186 // nothing in the constructor so we don't have to worry about lazy init. |
| 187 ThumbnailGenerator thumbnail_generator_; | 187 ThumbnailGenerator thumbnail_generator_; |
| 188 | 188 |
| 189 // An event that notifies when we are shutting-down. | 189 // An event that notifies when we are shutting-down. |
| 190 scoped_ptr<base::WaitableEvent> shutdown_event_; | 190 scoped_ptr<base::WaitableEvent> shutdown_event_; |
| 191 | 191 |
| 192 // Runs on the file thread and stats the inspector's directory, filling in | 192 // Runs on the file thread and stats the inspector's directory, filling in |
| 193 // have_inspector_files_ with the result. | 193 // have_inspector_files_ with the result. |
| 194 void DoInspectorFilesCheck(); | 194 void DoInspectorFilesCheck(); |
| 195 // Our best estimate about the existence of the inspector directory. | 195 // Our best estimate about the existence of the inspector directory. |
| 196 bool have_inspector_files_; | 196 bool have_inspector_files_; |
| 197 | 197 |
| 198 // Ensures that the observer of plugin disable/enable state | 198 // Ensures that the observer of plugin disable/enable state |
| 199 // notifications are properly added and removed. | 199 // notifications are properly added and removed. |
| 200 PrefChangeRegistrar plugin_state_change_registrar_; | 200 PrefChangeRegistrar plugin_state_change_registrar_; |
| 201 | 201 |
| 202 #if (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) | 202 #if (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) |
| 203 base::RepeatingTimer<BrowserProcessImpl> autoupdate_timer_; | 203 base::RepeatingTimer<BrowserProcessImpl> autoupdate_timer_; |
| 204 | 204 |
| 205 // Gets called by autoupdate timer to see if browser needs restart and can be | 205 // Gets called by autoupdate timer to see if browser needs restart and can be |
| 206 // restarted, and if that's the case, restarts the browser. | 206 // restarted, and if that's the case, restarts the browser. |
| 207 void OnAutoupdateTimer(); | 207 void OnAutoupdateTimer(); |
| 208 bool CanAutorestartForUpdate() const; | 208 bool CanAutorestartForUpdate() const; |
| 209 void RestartPersistentInstance(); | 209 void RestartPersistentInstance(); |
| 210 #endif // defined(OS_WIN) || defined(OS_LINUX) | 210 #endif // defined(OS_WIN) || defined(OS_LINUX) |
| 211 | 211 |
| 212 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl); | 212 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl); |
| 213 }; | 213 }; |
| 214 | 214 |
| 215 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ | 215 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ |
| OLD | NEW |