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

Side by Side Diff: chrome/browser/tab_contents/tab_contents.cc

Issue 2775003: Added plumbing to transport the frame name between RenderViewHost and the Webkit layer. (Closed)
Patch Set: Final version for the record Created 10 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 unified diff | Download patch
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/tab_contents/tab_contents.h" 5 #include "chrome/browser/tab_contents/tab_contents.h"
6 6
7 #if defined(OS_CHROMEOS) 7 #if defined(OS_CHROMEOS)
8 // For GdkScreen 8 // For GdkScreen
9 #include <gdk/gdk.h> 9 #include <gdk/gdk.h>
10 #endif // defined(OS_CHROMEOS) 10 #endif // defined(OS_CHROMEOS)
(...skipping 2893 matching lines...) Expand 10 before | Expand all | Expand 10 after
2904 } 2904 }
2905 2905
2906 bool TabContents::CreateRenderViewForRenderManager( 2906 bool TabContents::CreateRenderViewForRenderManager(
2907 RenderViewHost* render_view_host) { 2907 RenderViewHost* render_view_host) {
2908 RenderWidgetHostView* rwh_view = view_->CreateViewForWidget(render_view_host); 2908 RenderWidgetHostView* rwh_view = view_->CreateViewForWidget(render_view_host);
2909 2909
2910 scoped_refptr<URLRequestContextGetter> request_context = request_context_; 2910 scoped_refptr<URLRequestContextGetter> request_context = request_context_;
2911 if (!request_context.get()) 2911 if (!request_context.get())
2912 request_context = profile()->GetRequestContext(); 2912 request_context = profile()->GetRequestContext();
2913 2913
2914 if (!render_view_host->CreateRenderView(request_context)) 2914 if (!render_view_host->CreateRenderView(request_context, string16()))
2915 return false; 2915 return false;
2916 2916
2917 // Now that the RenderView has been created, we need to tell it its size. 2917 // Now that the RenderView has been created, we need to tell it its size.
2918 rwh_view->SetSize(view_->GetContainerSize()); 2918 rwh_view->SetSize(view_->GetContainerSize());
2919 2919
2920 UpdateMaxPageIDIfNecessary(render_view_host->site_instance(), 2920 UpdateMaxPageIDIfNecessary(render_view_host->site_instance(),
2921 render_view_host); 2921 render_view_host);
2922 return true; 2922 return true;
2923 } 2923 }
2924 2924
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
3202 AddInfoBar(new SavePasswordInfoBarDelegate(this, form_to_save)); 3202 AddInfoBar(new SavePasswordInfoBarDelegate(this, form_to_save));
3203 } 3203 }
3204 3204
3205 Profile* TabContents::GetProfileForPasswordManager() { 3205 Profile* TabContents::GetProfileForPasswordManager() {
3206 return profile(); 3206 return profile();
3207 } 3207 }
3208 3208
3209 bool TabContents::DidLastPageLoadEncounterSSLErrors() { 3209 bool TabContents::DidLastPageLoadEncounterSSLErrors() {
3210 return controller().ssl_manager()->ProcessedSSLErrorFromRequest(); 3210 return controller().ssl_manager()->ProcessedSSLErrorFromRequest();
3211 } 3211 }
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/render_view_host_delegate_helper.cc ('k') | chrome/browser/tab_contents/tab_contents_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698