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 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 | 182 |
183 virtual MemoryModel memory_model() { | 183 virtual MemoryModel memory_model() { |
184 DCHECK(CalledOnValidThread()); | 184 DCHECK(CalledOnValidThread()); |
185 return memory_model_; | 185 return memory_model_; |
186 } | 186 } |
187 | 187 |
188 virtual base::WaitableEvent* shutdown_event() { | 188 virtual base::WaitableEvent* shutdown_event() { |
189 return shutdown_event_.get(); | 189 return shutdown_event_.get(); |
190 } | 190 } |
191 | 191 |
| 192 virtual void CheckForInspectorFiles(); |
| 193 |
| 194 virtual bool have_inspector_files() const { |
| 195 return have_inspector_files_; |
| 196 } |
| 197 |
192 private: | 198 private: |
193 void CreateResourceDispatcherHost(); | 199 void CreateResourceDispatcherHost(); |
194 void CreatePrefService(); | 200 void CreatePrefService(); |
195 void CreateMetricsService(); | 201 void CreateMetricsService(); |
196 | 202 |
197 void CreateIOThread(); | 203 void CreateIOThread(); |
198 void ResetIOThread(); | 204 void ResetIOThread(); |
199 static void CleanupOnIOThread(); | 205 static void CleanupOnIOThread(); |
200 | 206 |
201 void CreateFileThread(); | 207 void CreateFileThread(); |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
269 bool checked_for_new_frames_; | 275 bool checked_for_new_frames_; |
270 bool using_new_frames_; | 276 bool using_new_frames_; |
271 | 277 |
272 // This service just sits around and makes thumanails for tabs. It does | 278 // This service just sits around and makes thumanails for tabs. It does |
273 // nothing in the cosntructor so we don't have to worry about lazy init. | 279 // nothing in the cosntructor so we don't have to worry about lazy init. |
274 ThumbnailGenerator thumbnail_generator_; | 280 ThumbnailGenerator thumbnail_generator_; |
275 | 281 |
276 // An event that notifies when we are shutting-down. | 282 // An event that notifies when we are shutting-down. |
277 scoped_ptr<base::WaitableEvent> shutdown_event_; | 283 scoped_ptr<base::WaitableEvent> shutdown_event_; |
278 | 284 |
| 285 // Runs on the file thread and stats the inspector's directory, filling in |
| 286 // have_inspector_files_ with the result. |
| 287 void DoInspectorFilesCheck(); |
| 288 // Our best estimate about the existence of the inspector directory. |
| 289 bool have_inspector_files_; |
| 290 |
279 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl); | 291 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl); |
280 }; | 292 }; |
281 | 293 |
282 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ | 294 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ |
OLD | NEW |