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

Side by Side Diff: chrome/browser/sessions/restore_tab_helper.cc

Issue 9473001: Extract minimal RenderViewHost interface for embedders, leaving (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to LKGR. Created 8 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 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 "chrome/browser/sessions/restore_tab_helper.h" 5 #include "chrome/browser/sessions/restore_tab_helper.h"
6 6
7 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" 7 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
8 #include "chrome/common/extensions/extension_messages.h" 8 #include "chrome/common/extensions/extension_messages.h"
9 #include "content/browser/renderer_host/render_view_host.h" 9 #include "content/browser/renderer_host/render_view_host.h"
10 #include "content/public/browser/notification_service.h" 10 #include "content/public/browser/notification_service.h"
11 #include "content/public/browser/notification_types.h" 11 #include "content/public/browser/notification_types.h"
(...skipping 18 matching lines...) Expand all
30 content::NotificationService::current()->Notify( 30 content::NotificationService::current()->Notify(
31 content::NOTIFICATION_TAB_PARENTED, 31 content::NOTIFICATION_TAB_PARENTED,
32 content::Source<TabContentsWrapper>(tab), 32 content::Source<TabContentsWrapper>(tab),
33 content::NotificationService::NoDetails()); 33 content::NotificationService::NoDetails());
34 } 34 }
35 35
36 // Extension code in the renderer holds the ID of the window that hosts it. 36 // Extension code in the renderer holds the ID of the window that hosts it.
37 // Notify it that the window ID changed. 37 // Notify it that the window ID changed.
38 web_contents()->GetRenderViewHost()->Send( 38 web_contents()->GetRenderViewHost()->Send(
39 new ExtensionMsg_UpdateBrowserWindowId( 39 new ExtensionMsg_UpdateBrowserWindowId(
40 web_contents()->GetRenderViewHost()->routing_id(), id.id())); 40 web_contents()->GetRenderViewHost()->GetRoutingID(), id.id()));
41 } 41 }
42 42
43 void RestoreTabHelper::RenderViewCreated(RenderViewHost* render_view_host) { 43 void RestoreTabHelper::RenderViewCreated(RenderViewHost* render_view_host) {
44 render_view_host->Send( 44 render_view_host->Send(
45 new ExtensionMsg_UpdateBrowserWindowId(render_view_host->routing_id(), 45 new ExtensionMsg_UpdateBrowserWindowId(render_view_host->GetRoutingID(),
46 window_id_.id())); 46 window_id_.id()));
47 } 47 }
OLDNEW
« no previous file with comments | « chrome/browser/safe_browsing/safe_browsing_tab_observer.cc ('k') | chrome/browser/ssl/ssl_browser_tests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698