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

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: Minor Changes: Removing test code 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 // Primary button actions 48 // Primary button actions
49 CMD_RELOAD = 5, 49 CMD_RELOAD = 5,
50 CMD_OPEN_DATE_SETTINGS = 6, 50 CMD_OPEN_DATE_SETTINGS = 6,
51 CMD_OPEN_LOGIN = 7, 51 CMD_OPEN_LOGIN = 7,
52 // Safe Browsing Extended Reporting 52 // Safe Browsing Extended Reporting
53 CMD_DO_REPORT = 8, 53 CMD_DO_REPORT = 8,
54 CMD_DONT_REPORT = 9, 54 CMD_DONT_REPORT = 9,
55 CMD_OPEN_REPORTING_PRIVACY = 10, 55 CMD_OPEN_REPORTING_PRIVACY = 10,
56 // Report a phishing error 56 // Report a phishing error
57 CMD_REPORT_PHISHING_ERROR = 11, 57 CMD_REPORT_PHISHING_ERROR = 11,
58 CMD_NAVIGATE_SUGGESTED_URL = 12,
58 }; 59 };
59 60
60 SecurityInterstitialPage(content::WebContents* web_contents, 61 SecurityInterstitialPage(content::WebContents* web_contents,
61 const GURL& url); 62 const GURL& url);
62 ~SecurityInterstitialPage() override; 63 ~SecurityInterstitialPage() override;
63 64
64 // Creates an interstitial and shows it. 65 // Creates an interstitial and shows it.
65 virtual void Show(); 66 virtual void Show();
66 67
67 // Prevents creating the actual interstitial view for testing. 68 // Prevents creating the actual interstitial view for testing.
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 // Once shown, |interstitial_page| takes ownership of this 109 // Once shown, |interstitial_page| takes ownership of this
109 // SecurityInterstitialPage instance. 110 // SecurityInterstitialPage instance.
110 content::InterstitialPage* interstitial_page_; 111 content::InterstitialPage* interstitial_page_;
111 // Whether the interstitial should create a view. 112 // Whether the interstitial should create a view.
112 bool create_view_; 113 bool create_view_;
113 114
114 DISALLOW_COPY_AND_ASSIGN(SecurityInterstitialPage); 115 DISALLOW_COPY_AND_ASSIGN(SecurityInterstitialPage);
115 }; 116 };
116 117
117 #endif // CHROME_BROWSER_INTERSTITIALS_SECURITY_INTERSTITIAL_PAGE_H_ 118 #endif // CHROME_BROWSER_INTERSTITIALS_SECURITY_INTERSTITIAL_PAGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698