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__ |
11 #define CHROME_BROWSER_BROWSER_PROCESS_IMPL_H__ | 11 #define CHROME_BROWSER_BROWSER_PROCESS_IMPL_H__ |
12 | 12 |
13 #include <string> | 13 #include <string> |
14 | 14 |
15 #include "base/basictypes.h" | 15 #include "base/basictypes.h" |
16 #include "base/message_loop.h" | 16 #include "base/message_loop.h" |
17 #include "base/non_thread_safe.h" | 17 #include "base/non_thread_safe.h" |
18 #include "base/scoped_ptr.h" | 18 #include "base/scoped_ptr.h" |
19 #include "chrome/browser/automation/automation_provider_list.h" | 19 #include "chrome/browser/automation/automation_provider_list.h" |
20 #include "chrome/browser/browser_process.h" | 20 #include "chrome/browser/browser_process.h" |
| 21 #include "chrome/browser/tab_contents/thumbnail_generator.h" |
21 | 22 |
22 #if defined(OS_WIN) | 23 #if defined(OS_WIN) |
23 #include "sandbox/src/sandbox.h" | 24 #include "sandbox/src/sandbox.h" |
24 #else | 25 #else |
25 #include "chrome/common/temp_scaffolding_stubs.h" | 26 #include "chrome/common/temp_scaffolding_stubs.h" |
26 #endif | 27 #endif |
27 | 28 |
28 class CommandLine; | 29 class CommandLine; |
29 class NotificationService; | 30 class NotificationService; |
30 | 31 |
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 // Ensures that all the print jobs are finished before closing the browser. | 264 // Ensures that all the print jobs are finished before closing the browser. |
264 scoped_ptr<printing::PrintJobManager> print_job_manager_; | 265 scoped_ptr<printing::PrintJobManager> print_job_manager_; |
265 | 266 |
266 std::wstring locale_; | 267 std::wstring locale_; |
267 | 268 |
268 MemoryModel memory_model_; | 269 MemoryModel memory_model_; |
269 | 270 |
270 bool checked_for_new_frames_; | 271 bool checked_for_new_frames_; |
271 bool using_new_frames_; | 272 bool using_new_frames_; |
272 | 273 |
| 274 #if defined(LINUX2) |
| 275 // TODO(brettw) enable this for all builds when we have a need for it. This |
| 276 // component has some overhead, so we don't want to have it running without |
| 277 // any consumers. Since it integrates by listening to notifications, it's |
| 278 // sufficient to just not instatiate it to make it disabled. |
| 279 |
| 280 // This service just sits around and makes thumanails for tabs. |
| 281 ThumbnailGenerator thumbnail_generator_; |
| 282 #endif |
| 283 |
273 // An event that notifies when we are shutting-down. | 284 // An event that notifies when we are shutting-down. |
274 scoped_ptr<base::WaitableEvent> shutdown_event_; | 285 scoped_ptr<base::WaitableEvent> shutdown_event_; |
275 | 286 |
276 DISALLOW_EVIL_CONSTRUCTORS(BrowserProcessImpl); | 287 DISALLOW_EVIL_CONSTRUCTORS(BrowserProcessImpl); |
277 }; | 288 }; |
278 | 289 |
279 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H__ | 290 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H__ |
OLD | NEW |