Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(183)

Side by Side Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 17074009: Created multi-process-friendly PowerMonitor interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixing windows unit test errors Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.h ('k') | content/child/child_thread.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 393 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 FROM_HERE, base::TimeDelta::FromSeconds(5), 404 FROM_HERE, base::TimeDelta::FromSeconds(5),
405 this, &RenderProcessHostImpl::ClearTransportDIBCache), 405 this, &RenderProcessHostImpl::ClearTransportDIBCache),
406 is_initialized_(false), 406 is_initialized_(false),
407 id_(ChildProcessHostImpl::GenerateChildProcessUniqueId()), 407 id_(ChildProcessHostImpl::GenerateChildProcessUniqueId()),
408 browser_context_(browser_context), 408 browser_context_(browser_context),
409 storage_partition_impl_(storage_partition_impl), 409 storage_partition_impl_(storage_partition_impl),
410 sudden_termination_allowed_(true), 410 sudden_termination_allowed_(true),
411 ignore_input_events_(false), 411 ignore_input_events_(false),
412 supports_browser_plugin_(supports_browser_plugin), 412 supports_browser_plugin_(supports_browser_plugin),
413 is_guest_(is_guest), 413 is_guest_(is_guest),
414 gpu_observer_registered_(false) { 414 gpu_observer_registered_(false),
415 power_monitor_broadcaster_(this) {
415 widget_helper_ = new RenderWidgetHelper(); 416 widget_helper_ = new RenderWidgetHelper();
416 417
417 ChildProcessSecurityPolicyImpl::GetInstance()->Add(GetID()); 418 ChildProcessSecurityPolicyImpl::GetInstance()->Add(GetID());
418 419
419 CHECK(!g_exited_main_message_loop); 420 CHECK(!g_exited_main_message_loop);
420 RegisterHost(GetID(), this); 421 RegisterHost(GetID(), this);
421 g_all_hosts.Get().set_check_on_null_data(true); 422 g_all_hosts.Get().set_check_on_null_data(true);
422 // Initialize |child_process_activity_time_| to a reasonable value. 423 // Initialize |child_process_activity_time_| to a reasonable value.
423 mark_child_process_activity_time(); 424 mark_child_process_activity_time();
424 425
(...skipping 1375 matching lines...) Expand 10 before | Expand all | Expand 10 after
1800 // Skip widgets in other processes. 1801 // Skip widgets in other processes.
1801 if (widgets[i]->GetProcess()->GetID() != GetID()) 1802 if (widgets[i]->GetProcess()->GetID() != GetID())
1802 continue; 1803 continue;
1803 1804
1804 RenderViewHost* rvh = RenderViewHost::From(widgets[i]); 1805 RenderViewHost* rvh = RenderViewHost::From(widgets[i]);
1805 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); 1806 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences());
1806 } 1807 }
1807 } 1808 }
1808 1809
1809 } // namespace content 1810 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.h ('k') | content/child/child_thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698