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

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

Issue 28238: Fix painting issue after a renderer crash (Closed)
Patch Set: Created 11 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
« no previous file with comments | « no previous file | 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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 // Represents the browser side of the browser <--> renderer communication 5 // Represents the browser side of the browser <--> renderer communication
6 // channel. There will be one RenderProcessHost per renderer process. 6 // channel. There will be one RenderProcessHost per renderer process.
7 7
8 #include "chrome/browser/renderer_host/browser_render_process_host.h" 8 #include "chrome/browser/renderer_host/browser_render_process_host.h"
9 9
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 777 matching lines...) Expand 10 before | Expand all | Expand 10 after
788 } 788 }
789 789
790 // This process should detach all the listeners, causing the object to be 790 // This process should detach all the listeners, causing the object to be
791 // deleted. We therefore need a stack copy of the web view list to avoid 791 // deleted. We therefore need a stack copy of the web view list to avoid
792 // crashing when checking for the termination condition the last time. 792 // crashing when checking for the termination condition the last time.
793 IDMap<IPC::Channel::Listener> local_listeners(listeners_); 793 IDMap<IPC::Channel::Listener> local_listeners(listeners_);
794 for (listeners_iterator i = local_listeners.begin(); 794 for (listeners_iterator i = local_listeners.begin();
795 i != local_listeners.end(); ++i) { 795 i != local_listeners.end(); ++i) {
796 i->second->OnMessageReceived(ViewHostMsg_RenderViewGone(i->first)); 796 i->second->OnMessageReceived(ViewHostMsg_RenderViewGone(i->first));
797 } 797 }
798
799 ClearTransportDIBCache();
800
798 // at this point, this object should be deleted 801 // at this point, this object should be deleted
799 } 802 }
800 803
801 void BrowserRenderProcessHost::Unregister() { 804 void BrowserRenderProcessHost::Unregister() {
802 // RenderProcessHost::Unregister will clean up the host_id_, so we must 805 // RenderProcessHost::Unregister will clean up the host_id_, so we must
803 // do our cleanup that uses that variable before we call it. 806 // do our cleanup that uses that variable before we call it.
804 if (host_id() >= 0) { 807 if (host_id() >= 0) {
805 CacheManagerHost::GetInstance()->Remove(host_id()); 808 CacheManagerHost::GetInstance()->Remove(host_id());
806 RendererSecurityPolicy::GetInstance()->Remove(host_id()); 809 RendererSecurityPolicy::GetInstance()->Remove(host_id());
807 } 810 }
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
879 SendUserScriptsUpdate(shared_memory); 882 SendUserScriptsUpdate(shared_memory);
880 } 883 }
881 break; 884 break;
882 } 885 }
883 default: { 886 default: {
884 NOTREACHED(); 887 NOTREACHED();
885 break; 888 break;
886 } 889 }
887 } 890 }
888 } 891 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698