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

Side by Side Diff: chrome/browser/interstitials/security_interstitial_page.h

Issue 1223233002: Common Name Mismatch Handler For WWW Subdomain Mismatch case (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Browsertests using MockCertVerifier Created 5 years, 4 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 2014 The Chromium Authors. All rights reserved. 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 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 #ifndef CHROME_BROWSER_INTERSTITIALS_SECURITY_INTERSTITIAL_PAGE_H_ 5 #ifndef CHROME_BROWSER_INTERSTITIALS_SECURITY_INTERSTITIAL_PAGE_H_
6 #define CHROME_BROWSER_INTERSTITIALS_SECURITY_INTERSTITIAL_PAGE_H_ 6 #define CHROME_BROWSER_INTERSTITIALS_SECURITY_INTERSTITIAL_PAGE_H_
7 7
8 #include "base/strings/string16.h" 8 #include "base/strings/string16.h"
9 #include "content/public/browser/interstitial_page_delegate.h" 9 #include "content/public/browser/interstitial_page_delegate.h"
10 #include "url/gurl.h" 10 #include "url/gurl.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 // Primary button actions 50 // Primary button actions
51 CMD_RELOAD = 5, 51 CMD_RELOAD = 5,
52 CMD_OPEN_DATE_SETTINGS = 6, 52 CMD_OPEN_DATE_SETTINGS = 6,
53 CMD_OPEN_LOGIN = 7, 53 CMD_OPEN_LOGIN = 7,
54 // Safe Browsing Extended Reporting 54 // Safe Browsing Extended Reporting
55 CMD_DO_REPORT = 8, 55 CMD_DO_REPORT = 8,
56 CMD_DONT_REPORT = 9, 56 CMD_DONT_REPORT = 9,
57 CMD_OPEN_REPORTING_PRIVACY = 10, 57 CMD_OPEN_REPORTING_PRIVACY = 10,
58 // Report a phishing error 58 // Report a phishing error
59 CMD_REPORT_PHISHING_ERROR = 11, 59 CMD_REPORT_PHISHING_ERROR = 11,
60 CMD_NAVIGATE_SUGGESTED_URL = 12,
60 }; 61 };
61 62
62 SecurityInterstitialPage(content::WebContents* web_contents, 63 SecurityInterstitialPage(content::WebContents* web_contents,
63 const GURL& url); 64 const GURL& url);
64 ~SecurityInterstitialPage() override; 65 ~SecurityInterstitialPage() override;
65 66
66 // Creates an interstitial and shows it. 67 // Creates an interstitial and shows it.
67 virtual void Show(); 68 virtual void Show();
68 69
69 // Prevents creating the actual interstitial view for testing. 70 // Prevents creating the actual interstitial view for testing.
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 // Once shown, |interstitial_page| takes ownership of this 112 // Once shown, |interstitial_page| takes ownership of this
112 // SecurityInterstitialPage instance. 113 // SecurityInterstitialPage instance.
113 content::InterstitialPage* interstitial_page_; 114 content::InterstitialPage* interstitial_page_;
114 // Whether the interstitial should create a view. 115 // Whether the interstitial should create a view.
115 bool create_view_; 116 bool create_view_;
116 117
117 DISALLOW_COPY_AND_ASSIGN(SecurityInterstitialPage); 118 DISALLOW_COPY_AND_ASSIGN(SecurityInterstitialPage);
118 }; 119 };
119 120
120 #endif // CHROME_BROWSER_INTERSTITIALS_SECURITY_INTERSTITIAL_PAGE_H_ 121 #endif // CHROME_BROWSER_INTERSTITIALS_SECURITY_INTERSTITIAL_PAGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698