| 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 1475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1486 } | 1486 } |
| 1487 | 1487 |
| 1488 bool RenderProcessHostImpl::SuddenTerminationAllowed() const { | 1488 bool RenderProcessHostImpl::SuddenTerminationAllowed() const { |
| 1489 return sudden_termination_allowed_; | 1489 return sudden_termination_allowed_; |
| 1490 } | 1490 } |
| 1491 | 1491 |
| 1492 base::TimeDelta RenderProcessHostImpl::GetChildProcessIdleTime() const { | 1492 base::TimeDelta RenderProcessHostImpl::GetChildProcessIdleTime() const { |
| 1493 return base::TimeTicks::Now() - child_process_activity_time_; | 1493 return base::TimeTicks::Now() - child_process_activity_time_; |
| 1494 } | 1494 } |
| 1495 | 1495 |
| 1496 void RenderProcessHostImpl::SurfaceUpdated(int32 surface_id) { | |
| 1497 if (!gpu_message_filter_) | |
| 1498 return; | |
| 1499 BrowserThread::PostTask(BrowserThread::IO, FROM_HERE, base::Bind( | |
| 1500 &GpuMessageFilter::SurfaceUpdated, | |
| 1501 gpu_message_filter_, | |
| 1502 surface_id)); | |
| 1503 } | |
| 1504 | |
| 1505 void RenderProcessHostImpl::ResumeRequestsForView(int route_id) { | 1496 void RenderProcessHostImpl::ResumeRequestsForView(int route_id) { |
| 1506 widget_helper_->ResumeRequestsForView(route_id); | 1497 widget_helper_->ResumeRequestsForView(route_id); |
| 1507 } | 1498 } |
| 1508 | 1499 |
| 1509 void RenderProcessHostImpl::FilterURL(bool empty_allowed, GURL* url) { | 1500 void RenderProcessHostImpl::FilterURL(bool empty_allowed, GURL* url) { |
| 1510 FilterURL(this, empty_allowed, url); | 1501 FilterURL(this, empty_allowed, url); |
| 1511 } | 1502 } |
| 1512 | 1503 |
| 1513 #if defined(ENABLE_WEBRTC) | 1504 #if defined(ENABLE_WEBRTC) |
| 1514 void RenderProcessHostImpl::EnableAecDump(const base::FilePath& file) { | 1505 void RenderProcessHostImpl::EnableAecDump(const base::FilePath& file) { |
| (...skipping 517 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2032 return; | 2023 return; |
| 2033 Send(new MediaStreamMsg_EnableAecDump(file_for_transit)); | 2024 Send(new MediaStreamMsg_EnableAecDump(file_for_transit)); |
| 2034 } | 2025 } |
| 2035 | 2026 |
| 2036 void RenderProcessHostImpl::SendDisableAecDumpToRenderer() { | 2027 void RenderProcessHostImpl::SendDisableAecDumpToRenderer() { |
| 2037 Send(new MediaStreamMsg_DisableAecDump()); | 2028 Send(new MediaStreamMsg_DisableAecDump()); |
| 2038 } | 2029 } |
| 2039 #endif | 2030 #endif |
| 2040 | 2031 |
| 2041 } // namespace content | 2032 } // namespace content |
| OLD | NEW |