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

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

Issue 657373004: Standardize usage of virtual/override/final in chrome/browser/safe_browsing/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 #ifndef CHROME_BROWSER_SAFE_BROWSING_MALWARE_DETAILS_HISTORY_H_ 5 #ifndef CHROME_BROWSER_SAFE_BROWSING_MALWARE_DETAILS_HISTORY_H_
6 #define CHROME_BROWSER_SAFE_BROWSING_MALWARE_DETAILS_HISTORY_H_ 6 #define CHROME_BROWSER_SAFE_BROWSING_MALWARE_DETAILS_HISTORY_H_
7 7
8 // This class gets redirect chain for urls from the history service. 8 // This class gets redirect chain for urls from the history service.
9 9
10 #include <string> 10 #include <string>
(...skipping 29 matching lines...) Expand all
40 void StartHistoryCollection(const std::vector<GURL>& urls, 40 void StartHistoryCollection(const std::vector<GURL>& urls,
41 const base::Closure& callback); 41 const base::Closure& callback);
42 42
43 // Returns whether or not StartCacheCollection has been called. 43 // Returns whether or not StartCacheCollection has been called.
44 bool HasStarted() const; 44 bool HasStarted() const;
45 45
46 // Returns the redirect urls we get from history service 46 // Returns the redirect urls we get from history service
47 const std::vector<safe_browsing::RedirectChain>& GetCollectedUrls() const; 47 const std::vector<safe_browsing::RedirectChain>& GetCollectedUrls() const;
48 48
49 // content::NotificationObserver 49 // content::NotificationObserver
50 virtual void Observe(int type, 50 void Observe(int type,
51 const content::NotificationSource& source, 51 const content::NotificationSource& source,
52 const content::NotificationDetails& details) override; 52 const content::NotificationDetails& details) override;
53 53
54 private: 54 private:
55 friend struct content::BrowserThread::DeleteOnThread< 55 friend struct content::BrowserThread::DeleteOnThread<
56 content::BrowserThread::UI>; 56 content::BrowserThread::UI>;
57 friend class base::DeleteHelper<MalwareDetailsRedirectsCollector>; 57 friend class base::DeleteHelper<MalwareDetailsRedirectsCollector>;
58 58
59 virtual ~MalwareDetailsRedirectsCollector(); 59 ~MalwareDetailsRedirectsCollector() override;
60 60
61 void StartGetRedirects(const std::vector<GURL>& urls); 61 void StartGetRedirects(const std::vector<GURL>& urls);
62 void GetRedirects(const GURL& url); 62 void GetRedirects(const GURL& url);
63 void OnGotQueryRedirectsTo(const GURL& url, 63 void OnGotQueryRedirectsTo(const GURL& url,
64 const history::RedirectList* redirect_list); 64 const history::RedirectList* redirect_list);
65 65
66 // Posts the callback method back to IO thread when redirects collecting 66 // Posts the callback method back to IO thread when redirects collecting
67 // is all done. 67 // is all done.
68 void AllDone(); 68 void AllDone();
69 69
(...skipping 13 matching lines...) Expand all
83 std::vector<GURL>::iterator urls_it_; 83 std::vector<GURL>::iterator urls_it_;
84 // The collected directs from history service 84 // The collected directs from history service
85 std::vector<safe_browsing::RedirectChain> redirects_urls_; 85 std::vector<safe_browsing::RedirectChain> redirects_urls_;
86 86
87 content::NotificationRegistrar registrar_; 87 content::NotificationRegistrar registrar_;
88 88
89 DISALLOW_COPY_AND_ASSIGN(MalwareDetailsRedirectsCollector); 89 DISALLOW_COPY_AND_ASSIGN(MalwareDetailsRedirectsCollector);
90 }; 90 };
91 91
92 #endif // CHROME_BROWSER_SAFE_BROWSING_MALWARE_DETAILS_HISTORY_H_ 92 #endif // CHROME_BROWSER_SAFE_BROWSING_MALWARE_DETAILS_HISTORY_H_
OLDNEW
« no previous file with comments | « chrome/browser/safe_browsing/malware_details_cache.h ('k') | chrome/browser/safe_browsing/malware_details_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698