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

Side by Side Diff: chrome/browser/safe_browsing/safe_browsing_blocking_page.h

Issue 629603002: replace OVERRIDE and FINAL with override and final in chrome/browser/[r-z]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master Created 6 years, 2 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // Classes for managing the SafeBrowsing interstitial pages. 5 // Classes for managing the SafeBrowsing interstitial pages.
6 // 6 //
7 // When a user is about to visit a page the SafeBrowsing system has deemed to 7 // When a user is about to visit a page the SafeBrowsing system has deemed to
8 // be malicious, either as malware or a phishing page, we show an interstitial 8 // be malicious, either as malware or a phishing page, we show an interstitial
9 // page with some options (go back, continue) to give the user a chance to avoid 9 // page with some options (go back, continue) to give the user a chance to avoid
10 // the harmful page. 10 // the harmful page.
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 static void ShowBlockingPage( 82 static void ShowBlockingPage(
83 SafeBrowsingUIManager* ui_manager, const UnsafeResource& resource); 83 SafeBrowsingUIManager* ui_manager, const UnsafeResource& resource);
84 84
85 // Makes the passed |factory| the factory used to instantiate 85 // Makes the passed |factory| the factory used to instantiate
86 // SafeBrowsingBlockingPage objects. Useful for tests. 86 // SafeBrowsingBlockingPage objects. Useful for tests.
87 static void RegisterFactory(SafeBrowsingBlockingPageFactory* factory) { 87 static void RegisterFactory(SafeBrowsingBlockingPageFactory* factory) {
88 factory_ = factory; 88 factory_ = factory;
89 } 89 }
90 90
91 // InterstitialPageDelegate method: 91 // InterstitialPageDelegate method:
92 virtual std::string GetHTMLContents() OVERRIDE; 92 virtual std::string GetHTMLContents() override;
93 virtual void OnProceed() OVERRIDE; 93 virtual void OnProceed() override;
94 virtual void OnDontProceed() OVERRIDE; 94 virtual void OnDontProceed() override;
95 virtual void CommandReceived(const std::string& command) OVERRIDE; 95 virtual void CommandReceived(const std::string& command) override;
96 virtual void OverrideRendererPrefs( 96 virtual void OverrideRendererPrefs(
97 content::RendererPreferences* prefs) OVERRIDE; 97 content::RendererPreferences* prefs) override;
98 98
99 protected: 99 protected:
100 friend class SafeBrowsingBlockingPageTest; 100 friend class SafeBrowsingBlockingPageTest;
101 FRIEND_TEST_ALL_PREFIXES(SafeBrowsingBlockingPageTest, 101 FRIEND_TEST_ALL_PREFIXES(SafeBrowsingBlockingPageTest,
102 ProceedThenDontProceed); 102 ProceedThenDontProceed);
103 103
104 void DontCreateViewForTesting(); 104 void DontCreateViewForTesting();
105 void Show(); 105 void Show();
106 void SetReportingPreference(bool report); 106 void SetReportingPreference(bool report);
107 void UpdateReportingPref(); // Used for the transition from old to new pref. 107 void UpdateReportingPref(); // Used for the transition from old to new pref.
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 public: 248 public:
249 virtual ~SafeBrowsingBlockingPageFactory() { } 249 virtual ~SafeBrowsingBlockingPageFactory() { }
250 250
251 virtual SafeBrowsingBlockingPage* CreateSafeBrowsingPage( 251 virtual SafeBrowsingBlockingPage* CreateSafeBrowsingPage(
252 SafeBrowsingUIManager* ui_manager, 252 SafeBrowsingUIManager* ui_manager,
253 content::WebContents* web_contents, 253 content::WebContents* web_contents,
254 const SafeBrowsingBlockingPage::UnsafeResourceList& unsafe_resources) = 0; 254 const SafeBrowsingBlockingPage::UnsafeResourceList& unsafe_resources) = 0;
255 }; 255 };
256 256
257 #endif // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_BLOCKING_PAGE_H_ 257 #endif // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_BLOCKING_PAGE_H_
OLDNEW
« no previous file with comments | « chrome/browser/safe_browsing/protocol_manager_unittest.cc ('k') | chrome/browser/safe_browsing/safe_browsing_blocking_page.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698