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

Side by Side Diff: components/security_interstitials/content/security_interstitial_page.h

Issue 2955503002: Make interstitial links open in a new tab (Closed)
Patch Set: Fix compilation error Created 3 years, 5 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 COMPONENTS_SECURITY_INTERSTITIALS_CONTENT_SECURITY_INTERSTITIAL_PAGE_H_ 5 #ifndef COMPONENTS_SECURITY_INTERSTITIALS_CONTENT_SECURITY_INTERSTITIAL_PAGE_H_
6 #define COMPONENTS_SECURITY_INTERSTITIALS_CONTENT_SECURITY_INTERSTITIAL_PAGE_H_ 6 #define COMPONENTS_SECURITY_INTERSTITIALS_CONTENT_SECURITY_INTERSTITIAL_PAGE_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 // InterstitialPageDelegate method: 58 // InterstitialPageDelegate method:
59 std::string GetHTMLContents() override; 59 std::string GetHTMLContents() override;
60 60
61 // Returns the formatted host name for the request url. 61 // Returns the formatted host name for the request url.
62 base::string16 GetFormattedHostName() const; 62 base::string16 GetFormattedHostName() const;
63 63
64 content::InterstitialPage* interstitial_page() const; 64 content::InterstitialPage* interstitial_page() const;
65 content::WebContents* web_contents() const; 65 content::WebContents* web_contents() const;
66 GURL request_url() const; 66 GURL request_url() const;
67 67
68 SecurityInterstitialControllerClient* controller(); 68 SecurityInterstitialControllerClient* controller() const;
69 69
70 // Update metrics when the interstitial is closed. 70 // Update metrics when the interstitial is closed.
71 void UpdateMetricsAfterSecurityInterstitial(); 71 void UpdateMetricsAfterSecurityInterstitial();
72 72
73 private: 73 private:
74 // The WebContents with which this interstitial page is 74 // The WebContents with which this interstitial page is
75 // associated. Not available in ~SecurityInterstitialPage, since it 75 // associated. Not available in ~SecurityInterstitialPage, since it
76 // can be destroyed before this class is destroyed. 76 // can be destroyed before this class is destroyed.
77 content::WebContents* web_contents_; 77 content::WebContents* web_contents_;
78 const GURL request_url_; 78 const GURL request_url_;
79 // Once shown, |interstitial_page| takes ownership of this 79 // Once shown, |interstitial_page| takes ownership of this
80 // SecurityInterstitialPage instance. 80 // SecurityInterstitialPage instance.
81 content::InterstitialPage* interstitial_page_; 81 content::InterstitialPage* interstitial_page_;
82 // Whether the interstitial should create a view. 82 // Whether the interstitial should create a view.
83 bool create_view_; 83 bool create_view_;
84 84
85 // Store some data about the initial state of extended reporting opt-in. 85 // Store some data about the initial state of extended reporting opt-in.
86 bool on_show_extended_reporting_pref_exists_; 86 bool on_show_extended_reporting_pref_exists_;
87 bool on_show_extended_reporting_pref_value_; 87 bool on_show_extended_reporting_pref_value_;
88 88
89 // For subclasses that don't have their own ControllerClients yet. 89 // For subclasses that don't have their own ControllerClients yet.
90 std::unique_ptr<SecurityInterstitialControllerClient> controller_; 90 std::unique_ptr<SecurityInterstitialControllerClient> controller_;
91 91
92 DISALLOW_COPY_AND_ASSIGN(SecurityInterstitialPage); 92 DISALLOW_COPY_AND_ASSIGN(SecurityInterstitialPage);
93 }; 93 };
94 94
95 } // security_interstitials 95 } // security_interstitials
96 96
97 #endif // COMPONENTS_SECURITY_INTERSTITIALS_CONTENT_SECURITY_INTERSTITIAL_PAGE_ H_ 97 #endif // COMPONENTS_SECURITY_INTERSTITIALS_CONTENT_SECURITY_INTERSTITIAL_PAGE_ H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698