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

Unified Diff: chrome/browser/tab_contents/render_view_host_manager.cc

Issue 118420: Adds kind-of-live thumbnail generation for a potential tab switcher. This... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/tab_contents/render_view_host_manager.cc
===================================================================
--- chrome/browser/tab_contents/render_view_host_manager.cc (revision 17971)
+++ chrome/browser/tab_contents/render_view_host_manager.cc (working copy)
@@ -57,6 +57,10 @@
site_instance = SiteInstance::CreateSiteInstance(profile);
render_view_host_ = RenderViewHostFactory::Create(
site_instance, render_view_delegate_, routing_id, modal_dialog_event);
+ NotificationService::current()->Notify(
+ NotificationType::RENDER_VIEW_HOST_CREATED_FOR_TAB,
+ Source<RenderViewHostManager>(this),
+ Details<RenderViewHost>(render_view_host_));
}
RenderViewHost* RenderViewHostManager::Navigate(const NavigationEntry& entry) {
@@ -406,6 +410,10 @@
pending_render_view_host_ = RenderViewHostFactory::Create(
instance, render_view_delegate_, MSG_ROUTING_NONE, NULL);
+ NotificationService::current()->Notify(
+ NotificationType::RENDER_VIEW_HOST_CREATED_FOR_TAB,
+ Source<RenderViewHostManager>(this),
+ Details<RenderViewHost>(pending_render_view_host_));
bool success = delegate_->CreateRenderViewForRenderManager(
pending_render_view_host_);
« no previous file with comments | « chrome/browser/renderer_host/test_render_view_host.cc ('k') | chrome/browser/tab_contents/thumbnail_generator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698