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

Side by Side Diff: chrome/browser/ssl/captive_portal_blocking_page.h

Issue 318213002: Add custom interstitial for captive portals. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Stop the timer at the right place Created 6 years, 1 month 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
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_SSL_CAPTIVE_PORTAL_BLOCKING_PAGE_H_
6 #define CHROME_BROWSER_SSL_CAPTIVE_PORTAL_BLOCKING_PAGE_H_
7
8 #include <string>
9
10 #include "base/macros.h"
11 #include "chrome/browser/interstitials/security_interstitial_page.h"
12
13 class GURL;
14
15 // This class is responsible for showing/hiding the interstitial page that is
16 // shown when a captive portal and an SSL error is detected.
17 // It deletes itself when the interstitial page is closed.
18 //
19 // This class should only be used on the UI thread because its implementation
20 // uses captive_portal::CaptivePortalService, which can only be accessed on the
21 // UI thread.
22 class CaptivePortalBlockingPage : public SecurityInterstitialPage {
23 public:
24 CaptivePortalBlockingPage(content::WebContents* web_contents,
25 const GURL& request_url);
26 ~CaptivePortalBlockingPage() override;
27
28 // SecurityInterstitialPage method:
29 SecurityInterstitialPage::Type GetTypeForTesting() const override;
30
31 protected:
32 // SecurityInterstitialPage implementation:
33 void PopulateLoadTimeData(
34 base::DictionaryValue* load_time_data) override;
35 bool ShouldCreateNewNavigation() const override;
36
37 // InterstitialPageDelegate implementation.
38 void CommandReceived(const std::string& command) override;
39
40 private:
41 DISALLOW_COPY_AND_ASSIGN(CaptivePortalBlockingPage);
42 };
43
44 #endif // CHROME_BROWSER_SSL_CAPTIVE_PORTAL_BLOCKING_PAGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698