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

Side by Side Diff: chrome/browser/renderer_host/resource_message_filter.cc

Issue 2079010: Forget zoom levels set/changed in incognito mode when exiting incognito. Thi... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/profile.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "chrome/browser/renderer_host/resource_message_filter.h" 5 #include "chrome/browser/renderer_host/resource_message_filter.h"
6 6
7 #include "app/clipboard/clipboard.h" 7 #include "app/clipboard/clipboard.h"
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #if defined(OS_POSIX) 10 #if defined(OS_POSIX)
(...skipping 1059 matching lines...) Expand 10 before | Expand all | Expand 10 after
1070 &ResourceMessageFilter::UpdateHostZoomLevelsOnUIThread, 1070 &ResourceMessageFilter::UpdateHostZoomLevelsOnUIThread,
1071 url, zoom_level)); 1071 url, zoom_level));
1072 } 1072 }
1073 1073
1074 void ResourceMessageFilter::UpdateHostZoomLevelsOnUIThread( 1074 void ResourceMessageFilter::UpdateHostZoomLevelsOnUIThread(
1075 const GURL& url, 1075 const GURL& url,
1076 int zoom_level) { 1076 int zoom_level) {
1077 DCHECK(ChromeThread::CurrentlyOn(ChromeThread::UI)); 1077 DCHECK(ChromeThread::CurrentlyOn(ChromeThread::UI));
1078 host_zoom_map_->SetZoomLevel(url, zoom_level); 1078 host_zoom_map_->SetZoomLevel(url, zoom_level);
1079 1079
1080 // Notify renderers. 1080 // Notify renderers from this profile.
1081 for (RenderProcessHost::iterator i(RenderProcessHost::AllHostsIterator()); 1081 for (RenderProcessHost::iterator i(RenderProcessHost::AllHostsIterator());
1082 !i.IsAtEnd(); i.Advance()) { 1082 !i.IsAtEnd(); i.Advance()) {
1083 RenderProcessHost* render_process_host = i.GetCurrentValue(); 1083 RenderProcessHost* render_process_host = i.GetCurrentValue();
1084 render_process_host->Send( 1084 if (render_process_host->profile() == profile_) {
1085 new ViewMsg_SetZoomLevelForCurrentURL(url, zoom_level)); 1085 render_process_host->Send(
1086 new ViewMsg_SetZoomLevelForCurrentURL(url, zoom_level));
1087 }
1086 } 1088 }
1087 } 1089 }
1088 1090
1089 void ResourceMessageFilter::OnResolveProxy(const GURL& url, 1091 void ResourceMessageFilter::OnResolveProxy(const GURL& url,
1090 IPC::Message* reply_msg) { 1092 IPC::Message* reply_msg) {
1091 resolve_proxy_msg_helper_.Start(url, reply_msg); 1093 resolve_proxy_msg_helper_.Start(url, reply_msg);
1092 } 1094 }
1093 1095
1094 void ResourceMessageFilter::OnResolveProxyCompleted( 1096 void ResourceMessageFilter::OnResolveProxyCompleted(
1095 IPC::Message* reply_msg, 1097 IPC::Message* reply_msg,
(...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after
1571 dictionary_map.insert( 1573 dictionary_map.insert(
1572 std::make_pair(ExtensionMessageBundle::kExtensionIdKey, extension_id)); 1574 std::make_pair(ExtensionMessageBundle::kExtensionIdKey, extension_id));
1573 1575
1574 ViewHostMsg_GetExtensionMessageBundle::WriteReplyParams( 1576 ViewHostMsg_GetExtensionMessageBundle::WriteReplyParams(
1575 reply_msg, dictionary_map); 1577 reply_msg, dictionary_map);
1576 1578
1577 ChromeThread::PostTask( 1579 ChromeThread::PostTask(
1578 ChromeThread::IO, FROM_HERE, 1580 ChromeThread::IO, FROM_HERE,
1579 NewRunnableMethod(this, &ResourceMessageFilter::Send, reply_msg)); 1581 NewRunnableMethod(this, &ResourceMessageFilter::Send, reply_msg));
1580 } 1582 }
OLDNEW
« no previous file with comments | « chrome/browser/profile.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698