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

Side by Side Diff: chrome/browser/captive_portal/captive_portal_tab_helper.cc

Issue 11090068: When starting a provisional load include the parent frame ID in the IPC and pass it down the th WCO… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updatess Created 8 years, 2 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) 2012 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/captive_portal/captive_portal_tab_helper.h" 5 #include "chrome/browser/captive_portal/captive_portal_tab_helper.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "chrome/browser/captive_portal/captive_portal_login_detector.h" 8 #include "chrome/browser/captive_portal/captive_portal_login_detector.h"
9 #include "chrome/browser/captive_portal/captive_portal_tab_reloader.h" 9 #include "chrome/browser/captive_portal/captive_portal_tab_reloader.h"
10 #include "chrome/browser/captive_portal/captive_portal_service_factory.h" 10 #include "chrome/browser/captive_portal/captive_portal_service_factory.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 registrar_.Add(this, 55 registrar_.Add(this,
56 content::NOTIFICATION_RENDER_VIEW_HOST_DELETED, 56 content::NOTIFICATION_RENDER_VIEW_HOST_DELETED,
57 content::NotificationService::AllSources()); 57 content::NotificationService::AllSources());
58 } 58 }
59 59
60 CaptivePortalTabHelper::~CaptivePortalTabHelper() { 60 CaptivePortalTabHelper::~CaptivePortalTabHelper() {
61 } 61 }
62 62
63 void CaptivePortalTabHelper::DidStartProvisionalLoadForFrame( 63 void CaptivePortalTabHelper::DidStartProvisionalLoadForFrame(
64 int64 frame_id, 64 int64 frame_id,
65 int64 parent_frame_id,
65 bool is_main_frame, 66 bool is_main_frame,
66 const GURL& validated_url, 67 const GURL& validated_url,
67 bool is_error_page, 68 bool is_error_page,
68 content::RenderViewHost* render_view_host) { 69 content::RenderViewHost* render_view_host) {
69 DCHECK(CalledOnValidThread()); 70 DCHECK(CalledOnValidThread());
70 71
71 // Ignore subframes. 72 // Ignore subframes.
72 if (!is_main_frame) 73 if (!is_main_frame)
73 return; 74 return;
74 75
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 browser, 264 browser,
264 CaptivePortalServiceFactory::GetForProfile(profile_)->test_url(), 265 CaptivePortalServiceFactory::GetForProfile(profile_)->test_url(),
265 content::PAGE_TRANSITION_TYPED); 266 content::PAGE_TRANSITION_TYPED);
266 captive_portal::CaptivePortalTabHelper* captive_portal_tab_helper = 267 captive_portal::CaptivePortalTabHelper* captive_portal_tab_helper =
267 captive_portal::CaptivePortalTabHelper::FromWebContents( 268 captive_portal::CaptivePortalTabHelper::FromWebContents(
268 tab_contents->web_contents()); 269 tab_contents->web_contents());
269 captive_portal_tab_helper->SetIsLoginTab(); 270 captive_portal_tab_helper->SetIsLoginTab();
270 } 271 }
271 272
272 } // namespace captive_portal 273 } // namespace captive_portal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698