OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_INTERSTITIALS_CHROME_CONTROLLER_CLIENT_H_ |
| 6 #define CHROME_BROWSER_INTERSTITIALS_CHROME_CONTROLLER_CLIENT_H_ |
| 7 |
| 8 #include "base/macros.h" |
| 9 #include "components/security_interstitials/core/controller_client.h" |
| 10 |
| 11 namespace content { |
| 12 class WebContents; |
| 13 } |
| 14 |
| 15 // Provides embedder-specific logic for the security error page controller. |
| 16 class ChromeControllerClient : public security_interstitials::ControllerClient { |
| 17 public: |
| 18 explicit ChromeControllerClient(content::WebContents* web_contents); |
| 19 ~ChromeControllerClient() override; |
| 20 |
| 21 protected: |
| 22 // security_interstitials::ControllerClient overrides |
| 23 void OpenUrlInCurrentTab(const GURL& url) override; |
| 24 const std::string& GetApplicationLocale() override; |
| 25 PrefService* GetPrefService() override; |
| 26 const std::string GetExtendedReportingPrefName() override; |
| 27 |
| 28 private: |
| 29 content::WebContents* web_contents_; |
| 30 |
| 31 DISALLOW_COPY_AND_ASSIGN(ChromeControllerClient); |
| 32 }; |
| 33 |
| 34 #endif // CHROME_BROWSER_INTERSTITIALS_CHROME_CONTROLLER_CLIENT_H_ |
OLD | NEW |