| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // Represents the browser side of the browser <--> renderer communication | 5 // Represents the browser side of the browser <--> renderer communication |
| 6 // channel. There will be one RenderProcessHost per renderer process. | 6 // channel. There will be one RenderProcessHost per renderer process. |
| 7 | 7 |
| 8 #include "content/browser/renderer_host/render_process_host_impl.h" | 8 #include "content/browser/renderer_host/render_process_host_impl.h" |
| 9 | 9 |
| 10 #include <algorithm> | 10 #include <algorithm> |
| (...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 403 FROM_HERE, base::TimeDelta::FromSeconds(5), | 403 FROM_HERE, base::TimeDelta::FromSeconds(5), |
| 404 this, &RenderProcessHostImpl::ClearTransportDIBCache), | 404 this, &RenderProcessHostImpl::ClearTransportDIBCache), |
| 405 is_initialized_(false), | 405 is_initialized_(false), |
| 406 id_(ChildProcessHostImpl::GenerateChildProcessUniqueId()), | 406 id_(ChildProcessHostImpl::GenerateChildProcessUniqueId()), |
| 407 browser_context_(browser_context), | 407 browser_context_(browser_context), |
| 408 storage_partition_impl_(storage_partition_impl), | 408 storage_partition_impl_(storage_partition_impl), |
| 409 sudden_termination_allowed_(true), | 409 sudden_termination_allowed_(true), |
| 410 ignore_input_events_(false), | 410 ignore_input_events_(false), |
| 411 supports_browser_plugin_(supports_browser_plugin), | 411 supports_browser_plugin_(supports_browser_plugin), |
| 412 is_guest_(is_guest), | 412 is_guest_(is_guest), |
| 413 gpu_observer_registered_(false) { | 413 gpu_observer_registered_(false), |
| 414 power_monitor_broadcaster_(this) { |
| 414 widget_helper_ = new RenderWidgetHelper(); | 415 widget_helper_ = new RenderWidgetHelper(); |
| 415 | 416 |
| 416 ChildProcessSecurityPolicyImpl::GetInstance()->Add(GetID()); | 417 ChildProcessSecurityPolicyImpl::GetInstance()->Add(GetID()); |
| 417 | 418 |
| 418 CHECK(!g_exited_main_message_loop); | 419 CHECK(!g_exited_main_message_loop); |
| 419 RegisterHost(GetID(), this); | 420 RegisterHost(GetID(), this); |
| 420 g_all_hosts.Get().set_check_on_null_data(true); | 421 g_all_hosts.Get().set_check_on_null_data(true); |
| 421 // Initialize |child_process_activity_time_| to a reasonable value. | 422 // Initialize |child_process_activity_time_| to a reasonable value. |
| 422 mark_child_process_activity_time(); | 423 mark_child_process_activity_time(); |
| 423 | 424 |
| (...skipping 1373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1797 // Skip widgets in other processes. | 1798 // Skip widgets in other processes. |
| 1798 if (widgets[i]->GetProcess()->GetID() != GetID()) | 1799 if (widgets[i]->GetProcess()->GetID() != GetID()) |
| 1799 continue; | 1800 continue; |
| 1800 | 1801 |
| 1801 RenderViewHost* rvh = RenderViewHost::From(widgets[i]); | 1802 RenderViewHost* rvh = RenderViewHost::From(widgets[i]); |
| 1802 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); | 1803 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); |
| 1803 } | 1804 } |
| 1804 } | 1805 } |
| 1805 | 1806 |
| 1806 } // namespace content | 1807 } // namespace content |
| OLD | NEW |