DescriptionComponentize the bad clock blocking page
This breaks the former BadClockBlockingPage into three parts:
1. security_interstitials::BadClockUI handles strings and commands.
2. security_interstitials::ControllerClient abstracts the functionality
provided by the embedder to act on commands. ChromeControllerClient
implements this functionality for Chrome. BadClockUI has a
ControllerClient to ask to do its bidding.
3. BadClockBlockingPage implements InterstitialPageDelegate and has a
BadClockUI, which it asks to handle strings, commands, and everything
else not platform-specific.
(BadClockBlockingPage has a BadClockUI has a ControllerClient.)
Other embedders will:
- make their own analogs to the BadClockBlockingPage
- implement their own PlatformControllerClient that inherits from
ControllerClient
- share the BadClockUI class
I also added security_interstitials::common_string_utils to hold string-
manipulation methods that I expect to reuse in the future for other
classes that are componentized.
BUG=488673
Committed: https://crrev.com/146e920a4cf5fda4c30bc348e16f81bfea5e3990
Cr-Commit-Position: refs/heads/master@{#362897}
Patch Set 1 : Feed the hungry trybots #Patch Set 2 : Feed the trybots... or else #Patch Set 3 : Two villagers are missing. I hope the trybots accept this offering #Patch Set 4 : Temporary trybot truce gives town the time to fortify defenses #
Total comments: 12
Patch Set 5 : Changes for estark #
Total comments: 10
Patch Set 6 : Fixing includes FOR REALSIES #
Total comments: 8
Patch Set 7 : Change for pkasting #Messages
Total messages: 42 (16 generated)
|