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_CACHE_H_ | 5 #ifndef CHROME_BROWSER_SAFE_BROWSING_MALWARE_DETAILS_CACHE_H_ |
6 #define CHROME_BROWSER_SAFE_BROWSING_MALWARE_DETAILS_CACHE_H_ | 6 #define CHROME_BROWSER_SAFE_BROWSING_MALWARE_DETAILS_CACHE_H_ |
7 | 7 |
8 // A class that gets malware details from the HTTP Cache. | 8 // A class that gets malware details from the HTTP Cache. |
9 // An instance of this class is generated by MalwareDetails. | 9 // An instance of this class is generated by MalwareDetails. |
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/containers/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 "chrome/browser/safe_browsing/report.pb.h" | 18 #include "chrome/browser/safe_browsing/report.pb.h" |
19 #include "net/base/completion_callback.h" | 19 #include "net/base/completion_callback.h" |
20 #include "net/url_request/url_fetcher_delegate.h" | 20 #include "net/url_request/url_fetcher_delegate.h" |
21 | 21 |
22 namespace net { | 22 namespace net { |
23 class URLFetcher; | 23 class URLFetcher; |
24 class URLRequestContext; | 24 class URLRequestContext; |
25 } | 25 } |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 const std::string& data); | 102 const std::string& data); |
103 | 103 |
104 // Called when we are done. | 104 // Called when we are done. |
105 void AllDone(bool success); | 105 void AllDone(bool success); |
106 | 106 |
107 // Advances to the next entry in resources_it_. | 107 // Advances to the next entry in resources_it_. |
108 void AdvanceEntry(); | 108 void AdvanceEntry(); |
109 }; | 109 }; |
110 | 110 |
111 #endif // CHROME_BROWSER_SAFE_BROWSING_MALWARE_DETAILS_CACHE_H_ | 111 #endif // CHROME_BROWSER_SAFE_BROWSING_MALWARE_DETAILS_CACHE_H_ |
OLD | NEW |