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

Side by Side Diff: chrome/browser/interstitials/chrome_controller_client.h

Issue 2575623002: Componentizing SafeBrowsingBlockingPage Part 1 (Closed)
Patch Set: address comments from nparker@ Created 4 years 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 CHROME_BROWSER_INTERSTITIALS_CHROME_CONTROLLER_CLIENT_H_ 5 #ifndef CHROME_BROWSER_INTERSTITIALS_CHROME_CONTROLLER_CLIENT_H_
6 #define CHROME_BROWSER_INTERSTITIALS_CHROME_CONTROLLER_CLIENT_H_ 6 #define CHROME_BROWSER_INTERSTITIALS_CHROME_CONTROLLER_CLIENT_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "components/security_interstitials/core/controller_client.h" 9 #include "components/security_interstitials/core/controller_client.h"
10 10
11 namespace content { 11 namespace content {
12 class InterstitialPage; 12 class InterstitialPage;
13 class WebContents; 13 class WebContents;
14 } 14 }
15 15
16 // Provides embedder-specific logic for the security error page controller. 16 // Provides embedder-specific logic for the security error page controller.
17 class ChromeControllerClient : public security_interstitials::ControllerClient { 17 class ChromeControllerClient : public security_interstitials::ControllerClient {
18 public: 18 public:
19 ChromeControllerClient( 19 ChromeControllerClient(
20 content::WebContents* web_contents, 20 content::WebContents* web_contents,
21 std::unique_ptr<security_interstitials::MetricsHelper> metrics_helper); 21 std::unique_ptr<security_interstitials::MetricsHelper> metrics_helper);
22 ~ChromeControllerClient() override; 22 ~ChromeControllerClient() override;
23 23
24 void set_interstitial_page(content::InterstitialPage* interstitial_page); 24 void set_interstitial_page(content::InterstitialPage* interstitial_page);
25 25
26 // security_interstitials::ControllerClient overrides 26 // security_interstitials::ControllerClient overrides
27 bool CanLaunchDateAndTimeSettings() override; 27 bool CanLaunchDateAndTimeSettings() override;
28 void LaunchDateAndTimeSettings() override; 28 void LaunchDateAndTimeSettings() override;
29 void GoBack() override; 29 void GoBack() override;
30 void GoBackAfterNavigationCommitted() override;
30 void Proceed() override; 31 void Proceed() override;
31 void Reload() override; 32 void Reload() override;
32 void OpenUrlInCurrentTab(const GURL& url) override; 33 void OpenUrlInCurrentTab(const GURL& url) override;
33 34
34 PrefService* GetPrefService() override; 35 PrefService* GetPrefService() override;
35 36
36 protected: 37 protected:
37 // security_interstitials::ControllerClient overrides 38 // security_interstitials::ControllerClient overrides
38 const std::string& GetApplicationLocale() override; 39 const std::string& GetApplicationLocale() override;
39 const std::string GetExtendedReportingPrefName() override; 40 const std::string GetExtendedReportingPrefName() override;
40 41
41 private: 42 private:
42 content::WebContents* web_contents_; 43 content::WebContents* web_contents_;
43 content::InterstitialPage* interstitial_page_; 44 content::InterstitialPage* interstitial_page_;
44 45
45 DISALLOW_COPY_AND_ASSIGN(ChromeControllerClient); 46 DISALLOW_COPY_AND_ASSIGN(ChromeControllerClient);
46 }; 47 };
47 48
48 #endif // CHROME_BROWSER_INTERSTITIALS_CHROME_CONTROLLER_CLIENT_H_ 49 #endif // CHROME_BROWSER_INTERSTITIALS_CHROME_CONTROLLER_CLIENT_H_
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/interstitials/chrome_controller_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698