| OLD | NEW |
| 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 virtual 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 virtual ~MalwareDetailsRedirectsCollector(); |
| 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); |
| (...skipping 20 matching lines...) Expand all Loading... |
| 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_ |
| OLD | NEW |