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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 #include "chrome/common/url_constants.h" | 51 #include "chrome/common/url_constants.h" |
52 #include "chrome/installer/util/google_update_constants.h" | 52 #include "chrome/installer/util/google_update_constants.h" |
53 #include "ipc/ipc_logging.h" | 53 #include "ipc/ipc_logging.h" |
54 #include "webkit/database/database_tracker.h" | 54 #include "webkit/database/database_tracker.h" |
55 | 55 |
56 #if defined(OS_WIN) | 56 #if defined(OS_WIN) |
57 #include "views/focus/view_storage.h" | 57 #include "views/focus/view_storage.h" |
58 #endif | 58 #endif |
59 | 59 |
60 #if defined(IPC_MESSAGE_LOG_ENABLED) | 60 #if defined(IPC_MESSAGE_LOG_ENABLED) |
61 #include "chrome/common/plugin_messages.h" | 61 #include "base/mp/mp_messages.h" |
62 #include "chrome/common/render_messages.h" | 62 #include "chrome/common/render_messages.h" |
63 #endif | 63 #endif |
64 | 64 |
65 BrowserProcessImpl::BrowserProcessImpl(const CommandLine& command_line) | 65 BrowserProcessImpl::BrowserProcessImpl(const CommandLine& command_line) |
66 : created_resource_dispatcher_host_(false), | 66 : created_resource_dispatcher_host_(false), |
67 created_metrics_service_(false), | 67 created_metrics_service_(false), |
68 created_io_thread_(false), | 68 created_io_thread_(false), |
69 created_file_thread_(false), | 69 created_file_thread_(false), |
70 created_db_thread_(false), | 70 created_db_thread_(false), |
71 created_process_launcher_thread_(false), | 71 created_process_launcher_thread_(false), |
(...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
480 !i.IsAtEnd(); i.Advance()) | 480 !i.IsAtEnd(); i.Advance()) |
481 i.GetCurrentValue()->Send(new ViewMsg_SetIPCLoggingEnabled(enable)); | 481 i.GetCurrentValue()->Send(new ViewMsg_SetIPCLoggingEnabled(enable)); |
482 } | 482 } |
483 | 483 |
484 // Helper for SetIPCLoggingEnabled. | 484 // Helper for SetIPCLoggingEnabled. |
485 void BrowserProcessImpl::SetIPCLoggingEnabledForChildProcesses(bool enabled) { | 485 void BrowserProcessImpl::SetIPCLoggingEnabledForChildProcesses(bool enabled) { |
486 DCHECK(ChromeThread::CurrentlyOn(ChromeThread::IO)); | 486 DCHECK(ChromeThread::CurrentlyOn(ChromeThread::IO)); |
487 | 487 |
488 ChildProcessHost::Iterator i; // default constr references a singleton | 488 ChildProcessHost::Iterator i; // default constr references a singleton |
489 while (!i.Done()) { | 489 while (!i.Done()) { |
490 i->Send(new PluginProcessMsg_SetIPCLoggingEnabled(enabled)); | 490 i->Send(new MultiProcessMsg_SetIPCLoggingEnabled(enabled)); |
491 ++i; | 491 ++i; |
492 } | 492 } |
493 } | 493 } |
494 | 494 |
495 #endif // IPC_MESSAGE_LOG_ENABLED | 495 #endif // IPC_MESSAGE_LOG_ENABLED |
496 | 496 |
497 void BrowserProcessImpl::DoInspectorFilesCheck() { | 497 void BrowserProcessImpl::DoInspectorFilesCheck() { |
498 // Runs on FILE thread. | 498 // Runs on FILE thread. |
499 DCHECK(file_thread_->message_loop() == MessageLoop::current()); | 499 DCHECK(file_thread_->message_loop() == MessageLoop::current()); |
500 bool result = false; | 500 bool result = false; |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
564 } | 564 } |
565 } | 565 } |
566 | 566 |
567 void BrowserProcessImpl::OnAutoupdateTimer() { | 567 void BrowserProcessImpl::OnAutoupdateTimer() { |
568 if (CanAutorestartForUpdate()) { | 568 if (CanAutorestartForUpdate()) { |
569 RestartPersistentInstance(); | 569 RestartPersistentInstance(); |
570 } | 570 } |
571 } | 571 } |
572 | 572 |
573 #endif | 573 #endif |
OLD | NEW |