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

Unified Diff: chrome/browser/captive_portal/captive_portal_tab_helper.h

Issue 318213002: Add custom interstitial for captive portals. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Android builds Created 5 years, 11 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/captive_portal/captive_portal_tab_helper.h
diff --git a/chrome/browser/captive_portal/captive_portal_tab_helper.h b/chrome/browser/captive_portal/captive_portal_tab_helper.h
index 99508a6114bfd3aa72c8df95ab10ddc1a50ae068..99384322c6763f69d49febe48af11ded3c407f98 100644
--- a/chrome/browser/captive_portal/captive_portal_tab_helper.h
+++ b/chrome/browser/captive_portal/captive_portal_tab_helper.h
@@ -20,7 +20,7 @@ class GURL;
class Profile;
namespace content {
- class WebContents;
+class WebContents;
}
namespace net {
@@ -95,6 +95,10 @@ class CaptivePortalTabHelper
// page. This is set to false when a captive portal is no longer detected.
bool IsLoginTab() const;
+ // Opens a login tab if the profile's active window doesn't have one already.
+ static void OpenLoginTabForWebContents(content::WebContents* web_contents,
+ bool focus);
+
private:
friend class CaptivePortalBrowserTest;
friend class CaptivePortalTabHelperTest;
@@ -127,9 +131,6 @@ class CaptivePortalTabHelper
CaptivePortalTabReloader* GetTabReloaderForTest();
- // Opens a login tab if the profile's active window doesn't have one already.
- void OpenLoginTab();
-
Profile* profile_;
// Neither of these will ever be NULL.
« no previous file with comments | « chrome/browser/captive_portal/captive_portal_service.cc ('k') | chrome/browser/captive_portal/captive_portal_tab_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698