| 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 #include "chrome/browser/browser_process_impl.h" | 5 #include "chrome/browser/browser_process_impl.h" |
| 6 | 6 |
| 7 #include "app/clipboard/clipboard.h" | 7 #include "app/clipboard/clipboard.h" |
| 8 #include "app/l10n_util.h" | 8 #include "app/l10n_util.h" |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 #include "chrome/browser/icon_manager.h" | 23 #include "chrome/browser/icon_manager.h" |
| 24 #include "chrome/browser/in_process_webkit/dom_storage_context.h" | 24 #include "chrome/browser/in_process_webkit/dom_storage_context.h" |
| 25 #include "chrome/browser/intranet_redirect_detector.h" | 25 #include "chrome/browser/intranet_redirect_detector.h" |
| 26 #include "chrome/browser/io_thread.h" | 26 #include "chrome/browser/io_thread.h" |
| 27 #include "chrome/browser/metrics/metrics_service.h" | 27 #include "chrome/browser/metrics/metrics_service.h" |
| 28 #include "chrome/browser/net/dns_global.h" | 28 #include "chrome/browser/net/dns_global.h" |
| 29 #include "chrome/browser/net/sdch_dictionary_fetcher.h" | 29 #include "chrome/browser/net/sdch_dictionary_fetcher.h" |
| 30 #include "chrome/browser/net/sqlite_persistent_cookie_store.h" | 30 #include "chrome/browser/net/sqlite_persistent_cookie_store.h" |
| 31 #include "chrome/browser/notifications/notification_ui_manager.h" | 31 #include "chrome/browser/notifications/notification_ui_manager.h" |
| 32 #include "chrome/browser/plugin_service.h" | 32 #include "chrome/browser/plugin_service.h" |
| 33 #include "chrome/browser/printing/print_job_manager.h" |
| 33 #include "chrome/browser/profile_manager.h" | 34 #include "chrome/browser/profile_manager.h" |
| 34 #include "chrome/browser/renderer_host/render_process_host.h" | 35 #include "chrome/browser/renderer_host/render_process_host.h" |
| 35 #include "chrome/browser/renderer_host/resource_dispatcher_host.h" | 36 #include "chrome/browser/renderer_host/resource_dispatcher_host.h" |
| 36 #include "chrome/browser/safe_browsing/safe_browsing_service.h" | 37 #include "chrome/browser/safe_browsing/safe_browsing_service.h" |
| 37 #include "chrome/common/appcache/chrome_appcache_service.h" | 38 #include "chrome/common/appcache/chrome_appcache_service.h" |
| 38 #include "chrome/common/child_process_host.h" | 39 #include "chrome/common/child_process_host.h" |
| 39 #include "chrome/common/chrome_constants.h" | 40 #include "chrome/common/chrome_constants.h" |
| 40 #include "chrome/common/chrome_paths.h" | 41 #include "chrome/common/chrome_paths.h" |
| 41 #include "chrome/common/chrome_switches.h" | 42 #include "chrome/common/chrome_switches.h" |
| 42 #include "chrome/common/notification_service.h" | 43 #include "chrome/common/notification_service.h" |
| 43 #include "chrome/common/pref_names.h" | 44 #include "chrome/common/pref_names.h" |
| 44 #include "chrome/common/pref_service.h" | 45 #include "chrome/common/pref_service.h" |
| 45 #include "chrome/common/url_constants.h" | 46 #include "chrome/common/url_constants.h" |
| 46 #include "ipc/ipc_logging.h" | 47 #include "ipc/ipc_logging.h" |
| 47 #include "webkit/database/database_tracker.h" | 48 #include "webkit/database/database_tracker.h" |
| 48 | 49 |
| 49 #if defined(OS_WIN) | 50 #if defined(OS_WIN) |
| 50 #include "views/focus/view_storage.h" | 51 #include "views/focus/view_storage.h" |
| 51 #endif | 52 #endif |
| 52 | 53 |
| 53 #if defined(OS_LINUX) | |
| 54 // TODO(port): get rid of this. | |
| 55 #include "chrome/common/temp_scaffolding_stubs.h" | |
| 56 #else | |
| 57 #include "chrome/browser/printing/print_job_manager.h" | |
| 58 #endif | |
| 59 | |
| 60 #if defined(IPC_MESSAGE_LOG_ENABLED) | 54 #if defined(IPC_MESSAGE_LOG_ENABLED) |
| 61 #include "chrome/common/plugin_messages.h" | 55 #include "chrome/common/plugin_messages.h" |
| 62 #include "chrome/common/render_messages.h" | 56 #include "chrome/common/render_messages.h" |
| 63 #endif | 57 #endif |
| 64 | 58 |
| 65 BrowserProcessImpl::BrowserProcessImpl(const CommandLine& command_line) | 59 BrowserProcessImpl::BrowserProcessImpl(const CommandLine& command_line) |
| 66 : created_resource_dispatcher_host_(false), | 60 : created_resource_dispatcher_host_(false), |
| 67 created_metrics_service_(false), | 61 created_metrics_service_(false), |
| 68 created_io_thread_(false), | 62 created_io_thread_(false), |
| 69 created_file_thread_(false), | 63 created_file_thread_(false), |
| (...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 486 DCHECK(file_thread_->message_loop() == MessageLoop::current()); | 480 DCHECK(file_thread_->message_loop() == MessageLoop::current()); |
| 487 bool result = false; | 481 bool result = false; |
| 488 | 482 |
| 489 FilePath inspector_dir; | 483 FilePath inspector_dir; |
| 490 if (PathService::Get(chrome::DIR_INSPECTOR, &inspector_dir)) { | 484 if (PathService::Get(chrome::DIR_INSPECTOR, &inspector_dir)) { |
| 491 result = file_util::PathExists(inspector_dir); | 485 result = file_util::PathExists(inspector_dir); |
| 492 } | 486 } |
| 493 | 487 |
| 494 have_inspector_files_ = result; | 488 have_inspector_files_ = result; |
| 495 } | 489 } |
| OLD | NEW |