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

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

Issue 2405013002: Move some global feature defines to buildflags (Closed)
Patch Set: Comment Created 4 years, 2 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
« no previous file with comments | « chrome/browser/resources/BUILD.gn ('k') | chrome/browser/ssl/ssl_error_handler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_SSL_CAPTIVE_PORTAL_BLOCKING_PAGE_H_ 5 #ifndef CHROME_BROWSER_SSL_CAPTIVE_PORTAL_BLOCKING_PAGE_H_
6 #define CHROME_BROWSER_SSL_CAPTIVE_PORTAL_BLOCKING_PAGE_H_ 6 #define CHROME_BROWSER_SSL_CAPTIVE_PORTAL_BLOCKING_PAGE_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
11 #include "base/callback.h" 11 #include "base/callback.h"
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "chrome/browser/interstitials/security_interstitial_page.h" 13 #include "chrome/browser/interstitials/security_interstitial_page.h"
14 #include "chrome/common/features.h"
14 #include "content/public/browser/certificate_request_result_type.h" 15 #include "content/public/browser/certificate_request_result_type.h"
15 #include "url/gurl.h" 16 #include "url/gurl.h"
16 17
17 #if !defined(ENABLE_CAPTIVE_PORTAL_DETECTION) 18 #if !BUILDFLAG(ENABLE_CAPTIVE_PORTAL_DETECTION)
18 #error This file must be built with ENABLE_CAPTIVE_PORTAL_DETECTION flag. 19 #error This file must be built with ENABLE_CAPTIVE_PORTAL_DETECTION flag.
19 #endif 20 #endif
20 21
21 namespace content { 22 namespace content {
22 class WebContents; 23 class WebContents;
23 } 24 }
24 25
25 namespace net { 26 namespace net {
26 class SSLInfo; 27 class SSLInfo;
27 } 28 }
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 private: 74 private:
74 // URL of the login page, opened when the user clicks the "Connect" button. 75 // URL of the login page, opened when the user clicks the "Connect" button.
75 const GURL login_url_; 76 const GURL login_url_;
76 std::unique_ptr<CertReportHelper> cert_report_helper_; 77 std::unique_ptr<CertReportHelper> cert_report_helper_;
77 base::Callback<void(content::CertificateRequestResultType)> callback_; 78 base::Callback<void(content::CertificateRequestResultType)> callback_;
78 79
79 DISALLOW_COPY_AND_ASSIGN(CaptivePortalBlockingPage); 80 DISALLOW_COPY_AND_ASSIGN(CaptivePortalBlockingPage);
80 }; 81 };
81 82
82 #endif // CHROME_BROWSER_SSL_CAPTIVE_PORTAL_BLOCKING_PAGE_H_ 83 #endif // CHROME_BROWSER_SSL_CAPTIVE_PORTAL_BLOCKING_PAGE_H_
OLDNEW
« no previous file with comments | « chrome/browser/resources/BUILD.gn ('k') | chrome/browser/ssl/ssl_error_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698