| 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 635 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 646         this)); | 646         this)); | 
| 647 | 647 | 
| 648     fast_shutdown_started_ = false; | 648     fast_shutdown_started_ = false; | 
| 649   } | 649   } | 
| 650 | 650 | 
| 651   if (!gpu_observer_registered_) { | 651   if (!gpu_observer_registered_) { | 
| 652     gpu_observer_registered_ = true; | 652     gpu_observer_registered_ = true; | 
| 653     GpuDataManagerImpl::GetInstance()->AddObserver(this); | 653     GpuDataManagerImpl::GetInstance()->AddObserver(this); | 
| 654   } | 654   } | 
| 655 | 655 | 
|  | 656   power_monitor_broadcaster_.Init(); | 
|  | 657 | 
| 656   is_initialized_ = true; | 658   is_initialized_ = true; | 
| 657   return true; | 659   return true; | 
| 658 } | 660 } | 
| 659 | 661 | 
| 660 void RenderProcessHostImpl::MaybeActivateMojo() { | 662 void RenderProcessHostImpl::MaybeActivateMojo() { | 
| 661   // TODO(darin): Following security review, we can unconditionally initialize | 663   // TODO(darin): Following security review, we can unconditionally initialize | 
| 662   // Mojo in all renderers. We will then be able to directly call Activate() | 664   // Mojo in all renderers. We will then be able to directly call Activate() | 
| 663   // from OnProcessLaunched. | 665   // from OnProcessLaunched. | 
| 664   if (!mojo_activation_required_) | 666   if (!mojo_activation_required_) | 
| 665     return;  // Waiting on someone to require Mojo. | 667     return;  // Waiting on someone to require Mojo. | 
| (...skipping 1696 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 2362 void RenderProcessHostImpl::GpuMemoryBufferAllocated( | 2364 void RenderProcessHostImpl::GpuMemoryBufferAllocated( | 
| 2363     IPC::Message* reply, | 2365     IPC::Message* reply, | 
| 2364     const gfx::GpuMemoryBufferHandle& handle) { | 2366     const gfx::GpuMemoryBufferHandle& handle) { | 
| 2365   DCHECK_CURRENTLY_ON(BrowserThread::UI); | 2367   DCHECK_CURRENTLY_ON(BrowserThread::UI); | 
| 2366   ChildProcessHostMsg_SyncAllocateGpuMemoryBuffer::WriteReplyParams(reply, | 2368   ChildProcessHostMsg_SyncAllocateGpuMemoryBuffer::WriteReplyParams(reply, | 
| 2367                                                                     handle); | 2369                                                                     handle); | 
| 2368   Send(reply); | 2370   Send(reply); | 
| 2369 } | 2371 } | 
| 2370 | 2372 | 
| 2371 }  // namespace content | 2373 }  // namespace content | 
| OLD | NEW | 
|---|