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

Side by Side Diff: components/security_interstitials/core/controller_client.h

Issue 2858043004: Support interstitials with no primary button (Closed)
Patch Set: Fix iOS CanGoBack implementation Created 3 years, 7 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_CORE_CONTROLLER_CLIENT_H_ 5 #ifndef COMPONENTS_SECURITY_INTERSTITIALS_CORE_CONTROLLER_CLIENT_H_
6 #define COMPONENTS_SECURITY_INTERSTITIALS_CORE_CONTROLLER_CLIENT_H_ 6 #define COMPONENTS_SECURITY_INTERSTITIALS_CORE_CONTROLLER_CLIENT_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 void OpenExtendedReportingPrivacyPolicy(); 64 void OpenExtendedReportingPrivacyPolicy();
65 void OpenExtendedReportingWhitepaper(); 65 void OpenExtendedReportingWhitepaper();
66 66
67 // If available, open the operating system's date/time settings. 67 // If available, open the operating system's date/time settings.
68 virtual bool CanLaunchDateAndTimeSettings() = 0; 68 virtual bool CanLaunchDateAndTimeSettings() = 0;
69 virtual void LaunchDateAndTimeSettings() = 0; 69 virtual void LaunchDateAndTimeSettings() = 0;
70 70
71 // Close the error and go back to the previous page. This applies to 71 // Close the error and go back to the previous page. This applies to
72 // situations where navigation is blocked before committing. 72 // situations where navigation is blocked before committing.
73 virtual void GoBack() = 0; 73 virtual void GoBack() = 0;
74 // Whether it is possible to go 'Back to safety'.
75 virtual bool CanGoBack() = 0;
74 76
75 // If the offending entry has committed, go back or to a safe page without 77 // If the offending entry has committed, go back or to a safe page without
76 // closing the error page. This error page will be closed when the new page 78 // closing the error page. This error page will be closed when the new page
77 // commits. 79 // commits.
78 virtual void GoBackAfterNavigationCommitted() = 0; 80 virtual void GoBackAfterNavigationCommitted() = 0;
79 81
80 // Close the error and proceed to the blocked page. 82 // Close the error and proceed to the blocked page.
81 virtual void Proceed() = 0; 83 virtual void Proceed() = 0;
82 84
83 // Reload the blocked page to see if it succeeds now. 85 // Reload the blocked page to see if it succeeds now.
(...skipping 12 matching lines...) Expand all
96 98
97 private: 99 private:
98 std::unique_ptr<MetricsHelper> metrics_helper_; 100 std::unique_ptr<MetricsHelper> metrics_helper_;
99 101
100 DISALLOW_COPY_AND_ASSIGN(ControllerClient); 102 DISALLOW_COPY_AND_ASSIGN(ControllerClient);
101 }; 103 };
102 104
103 } // namespace security_interstitials 105 } // namespace security_interstitials
104 106
105 #endif // COMPONENTS_SECURITY_INTERSTITIALS_CORE_CONTROLLER_CLIENT_H_ 107 #endif // COMPONENTS_SECURITY_INTERSTITIALS_CORE_CONTROLLER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698