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 #pragma once | 7 #pragma once |
8 | 8 |
9 // This class gets redirect chain for urls from the history service. | 9 // This class gets redirect chain for urls from the history service. |
10 | 10 |
11 #include <string> | 11 #include <string> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "base/callback.h" | 14 #include "base/callback.h" |
15 #include "base/hash_tables.h" | 15 #include "base/hash_tables.h" |
16 #include "base/memory/linked_ptr.h" | 16 #include "base/memory/linked_ptr.h" |
17 #include "base/memory/ref_counted.h" | 17 #include "base/memory/ref_counted.h" |
18 #include "base/message_loop_helpers.h" | 18 #include "base/sequenced_task_runner_helpers.h" |
19 #include "chrome/browser/history/history.h" | 19 #include "chrome/browser/history/history.h" |
20 #include "content/public/browser/browser_thread.h" | 20 #include "content/public/browser/browser_thread.h" |
21 #include "content/public/browser/notification_observer.h" | 21 #include "content/public/browser/notification_observer.h" |
22 #include "content/public/browser/notification_registrar.h" | 22 #include "content/public/browser/notification_registrar.h" |
23 #include "net/base/completion_callback.h" | 23 #include "net/base/completion_callback.h" |
24 | 24 |
25 namespace safe_browsing { | 25 namespace safe_browsing { |
26 typedef std::vector<GURL> RedirectChain; | 26 typedef std::vector<GURL> RedirectChain; |
27 } | 27 } |
28 | 28 |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 std::vector<GURL>::iterator urls_it_; | 85 std::vector<GURL>::iterator urls_it_; |
86 // The collected directs from history service | 86 // The collected directs from history service |
87 std::vector<safe_browsing::RedirectChain> redirects_urls_; | 87 std::vector<safe_browsing::RedirectChain> redirects_urls_; |
88 | 88 |
89 content::NotificationRegistrar registrar_; | 89 content::NotificationRegistrar registrar_; |
90 | 90 |
91 DISALLOW_COPY_AND_ASSIGN(MalwareDetailsRedirectsCollector); | 91 DISALLOW_COPY_AND_ASSIGN(MalwareDetailsRedirectsCollector); |
92 }; | 92 }; |
93 | 93 |
94 #endif // CHROME_BROWSER_SAFE_BROWSING_MALWARE_DETAILS_HISTORY_H_ | 94 #endif // CHROME_BROWSER_SAFE_BROWSING_MALWARE_DETAILS_HISTORY_H_ |
OLD | NEW |