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

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

Issue 861953002: Add login url to captive portal interstitial. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mmenke comments 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_service.h
diff --git a/chrome/browser/captive_portal/captive_portal_service.h b/chrome/browser/captive_portal/captive_portal_service.h
index 2e24e4395bd9697144993c191bb3459a63765cb4..c48ca5d37c1bf40459f6e60051f1a9d88621dfc8 100644
--- a/chrome/browser/captive_portal/captive_portal_service.h
+++ b/chrome/browser/captive_portal/captive_portal_service.h
@@ -42,6 +42,9 @@ class CaptivePortalService : public KeyedService, public base::NonThreadSafe {
captive_portal::CaptivePortalResult previous_result;
// The result of the most recent captive portal check.
captive_portal::CaptivePortalResult result;
+ // Landing url of the captive portal check ping. If behind a captive portal,
+ // this points to the login page.
+ GURL landing_url;
};
explicit CaptivePortalService(Profile* profile);
@@ -120,7 +123,8 @@ class CaptivePortalService : public KeyedService, public base::NonThreadSafe {
// Called when a captive portal check completes. Passes the result to all
// observers.
- void OnResult(captive_portal::CaptivePortalResult result);
+ void OnResult(captive_portal::CaptivePortalResult result,
+ const GURL& landing_url);
// Updates BackoffEntry::Policy and creates a new BackoffEntry, which
// resets the count used for throttling.

Powered by Google App Engine
This is Rietveld 408576698