| Index: content/browser/loader/async_resource_handler.cc
|
| diff --git a/content/browser/loader/async_resource_handler.cc b/content/browser/loader/async_resource_handler.cc
|
| index 6be0addefb83b9e5391dfc437c93260fff8f6c14..19e0868ce8a2a4b333b232e4da3e759be27696b7 100644
|
| --- a/content/browser/loader/async_resource_handler.cc
|
| +++ b/content/browser/loader/async_resource_handler.cc
|
| @@ -17,6 +17,7 @@
|
| #include "base/metrics/histogram_macros.h"
|
| #include "base/strings/string_number_conversions.h"
|
| #include "base/time/time.h"
|
| +#include "content/browser/host_zoom_map_impl.h"
|
| #include "content/browser/loader/netlog_observer.h"
|
| #include "content/browser/loader/resource_buffer.h"
|
| #include "content/browser/loader/resource_dispatcher_host_impl.h"
|
| @@ -355,6 +356,21 @@
|
| }
|
|
|
| NetLogObserver::PopulateResponseInfo(request(), response);
|
| +
|
| + const HostZoomMapImpl* host_zoom_map =
|
| + static_cast<const HostZoomMapImpl*>(info->filter()->GetHostZoomMap());
|
| +
|
| + if (info->GetResourceType() == RESOURCE_TYPE_MAIN_FRAME && host_zoom_map) {
|
| + const GURL& request_url = request()->url();
|
| + int render_process_id = info->GetChildID();
|
| + int render_view_id = info->GetRouteID();
|
| +
|
| + double zoom_level = host_zoom_map->GetZoomLevelForView(
|
| + request_url, render_process_id, render_view_id);
|
| +
|
| + info->filter()->Send(new ViewMsg_SetZoomLevelForLoadingURL(
|
| + render_view_id, request_url, zoom_level));
|
| + }
|
|
|
| // If the parent handler downloaded the resource to a file, grant the child
|
| // read permissions on it.
|
|
|