| Index: content/browser/loader/resource_dispatcher_host_impl.cc
|
| diff --git a/content/browser/loader/resource_dispatcher_host_impl.cc b/content/browser/loader/resource_dispatcher_host_impl.cc
|
| index f63b7cf8679baee8b0b0d3bf6dab0496f1c12860..20438ad278694dddc32f467326aa8e56e97456f9 100644
|
| --- a/content/browser/loader/resource_dispatcher_host_impl.cc
|
| +++ b/content/browser/loader/resource_dispatcher_host_impl.cc
|
| @@ -1323,8 +1323,9 @@ ResourceRequestInfoImpl* ResourceDispatcherHostImpl::CreateRequestInfo(
|
|
|
| void ResourceDispatcherHostImpl::OnRenderViewHostCreated(
|
| int child_id,
|
| - int route_id) {
|
| - scheduler_->OnClientCreated(child_id, route_id);
|
| + int route_id,
|
| + bool is_visible) {
|
| + scheduler_->OnClientCreated(child_id, route_id, is_visible);
|
| }
|
|
|
| void ResourceDispatcherHostImpl::OnRenderViewHostDeleted(
|
| @@ -1334,6 +1335,18 @@ void ResourceDispatcherHostImpl::OnRenderViewHostDeleted(
|
| CancelRequestsForRoute(child_id, route_id);
|
| }
|
|
|
| +void ResourceDispatcherHostImpl::OnRenderViewHostWasHidden(
|
| + int child_id,
|
| + int route_id) {
|
| + scheduler_->OnVisibilityChanged(child_id, route_id, false);
|
| +}
|
| +
|
| +void ResourceDispatcherHostImpl::OnRenderViewHostWasShown(
|
| + int child_id,
|
| + int route_id) {
|
| + scheduler_->OnVisibilityChanged(child_id, route_id, true);
|
| +}
|
| +
|
| // This function is only used for saving feature.
|
| void ResourceDispatcherHostImpl::BeginSaveFile(
|
| const GURL& url,
|
|
|