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

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

Issue 11866004: Add scheme to HostZoomMap (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Add namespace Created 7 years, 9 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
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 #include "content/browser/renderer_host/render_view_host_impl.h" 5 #include "content/browser/renderer_host/render_view_host_impl.h"
6 6
7 #include <set> 7 #include <set>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 1925 matching lines...) Expand 10 before | Expand all | Expand 10 after
1936 NOTREACHED() << "Received script response for unknown request"; 1936 NOTREACHED() << "Received script response for unknown request";
1937 } 1937 }
1938 } 1938 }
1939 1939
1940 void RenderViewHostImpl::OnDidZoomURL(double zoom_level, 1940 void RenderViewHostImpl::OnDidZoomURL(double zoom_level,
1941 bool remember, 1941 bool remember,
1942 const GURL& url) { 1942 const GURL& url) {
1943 HostZoomMapImpl* host_zoom_map = static_cast<HostZoomMapImpl*>( 1943 HostZoomMapImpl* host_zoom_map = static_cast<HostZoomMapImpl*>(
1944 HostZoomMap::GetForBrowserContext(GetProcess()->GetBrowserContext())); 1944 HostZoomMap::GetForBrowserContext(GetProcess()->GetBrowserContext()));
1945 if (remember) { 1945 if (remember) {
1946 host_zoom_map->SetZoomLevel(net::GetHostOrSpecFromURL(url), zoom_level); 1946 host_zoom_map->
1947 SetZoomLevelForHost(net::GetHostOrSpecFromURL(url), zoom_level);
1947 } else { 1948 } else {
1948 host_zoom_map->SetTemporaryZoomLevel( 1949 host_zoom_map->SetTemporaryZoomLevel(
1949 GetProcess()->GetID(), GetRoutingID(), zoom_level); 1950 GetProcess()->GetID(), GetRoutingID(), zoom_level);
1950 } 1951 }
1951 } 1952 }
1952 1953
1953 void RenderViewHostImpl::OnMediaNotification(int64 player_cookie, 1954 void RenderViewHostImpl::OnMediaNotification(int64 player_cookie,
1954 bool has_video, 1955 bool has_video,
1955 bool has_audio, 1956 bool has_audio,
1956 bool is_playing) { 1957 bool is_playing) {
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
2071 GetRoutingID(), snapshot_id, snapshot_size, png)); 2072 GetRoutingID(), snapshot_id, snapshot_size, png));
2072 return; 2073 return;
2073 } 2074 }
2074 } 2075 }
2075 2076
2076 Send(new ViewMsg_WindowSnapshotCompleted( 2077 Send(new ViewMsg_WindowSnapshotCompleted(
2077 GetRoutingID(), snapshot_id, gfx::Size(), png)); 2078 GetRoutingID(), snapshot_id, gfx::Size(), png));
2078 } 2079 }
2079 2080
2080 } // namespace content 2081 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/loader/async_resource_handler.cc ('k') | content/browser/web_contents/web_contents_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698