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

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: Fix alignment, add comment Created 7 years, 10 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 1916 matching lines...) Expand 10 before | Expand all | Expand 10 after
1927 NOTREACHED() << "Received script response for unknown request"; 1927 NOTREACHED() << "Received script response for unknown request";
1928 } 1928 }
1929 } 1929 }
1930 1930
1931 void RenderViewHostImpl::OnDidZoomURL(double zoom_level, 1931 void RenderViewHostImpl::OnDidZoomURL(double zoom_level,
1932 bool remember, 1932 bool remember,
1933 const GURL& url) { 1933 const GURL& url) {
1934 HostZoomMapImpl* host_zoom_map = static_cast<HostZoomMapImpl*>( 1934 HostZoomMapImpl* host_zoom_map = static_cast<HostZoomMapImpl*>(
1935 HostZoomMap::GetForBrowserContext(GetProcess()->GetBrowserContext())); 1935 HostZoomMap::GetForBrowserContext(GetProcess()->GetBrowserContext()));
1936 if (remember) { 1936 if (remember) {
1937 host_zoom_map->SetZoomLevel(net::GetHostOrSpecFromURL(url), zoom_level); 1937 host_zoom_map->
1938 SetZoomLevelForHost(net::GetHostOrSpecFromURL(url), zoom_level);
1938 } else { 1939 } else {
1939 host_zoom_map->SetTemporaryZoomLevel( 1940 host_zoom_map->SetTemporaryZoomLevel(
1940 GetProcess()->GetID(), GetRoutingID(), zoom_level); 1941 GetProcess()->GetID(), GetRoutingID(), zoom_level);
1941 } 1942 }
1942 } 1943 }
1943 1944
1944 void RenderViewHostImpl::OnMediaNotification(int64 player_cookie, 1945 void RenderViewHostImpl::OnMediaNotification(int64 player_cookie,
1945 bool has_video, 1946 bool has_video,
1946 bool has_audio, 1947 bool has_audio,
1947 bool is_playing) { 1948 bool is_playing) {
(...skipping 123 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

Powered by Google App Engine
This is Rietveld 408576698