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

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

Issue 8539006: Cleanup: Remove unneeded forward declarations from various chrome/browser subdirectories. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: rebase Created 9 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #pragma once 7 #pragma once
8 8
9 // A class that gets malware details from the HTTP Cache. 9 // A class that gets malware details from the HTTP Cache.
10 // An instance of this class is generated by MalwareDetails. 10 // An instance of this class is generated by MalwareDetails.
11 11
12 #include <string> 12 #include <string>
13 #include <vector> 13 #include <vector>
14 14
15 #include "base/callback.h" 15 #include "base/callback.h"
16 #include "base/hash_tables.h" 16 #include "base/hash_tables.h"
17 #include "base/memory/linked_ptr.h" 17 #include "base/memory/linked_ptr.h"
18 #include "base/memory/ref_counted.h" 18 #include "base/memory/ref_counted.h"
19 #include "chrome/browser/safe_browsing/report.pb.h" 19 #include "chrome/browser/safe_browsing/report.pb.h"
20 #include "content/public/common/url_fetcher_delegate.h" 20 #include "content/public/common/url_fetcher_delegate.h"
21 #include "net/base/completion_callback.h" 21 #include "net/base/completion_callback.h"
22 22
23 namespace net { 23 namespace net {
24 class URLRequestContext; 24 class URLRequestContext;
25 } 25 }
26 26
27 class MalwareDetailsFactory;
28
29 namespace safe_browsing { 27 namespace safe_browsing {
30 28
31 // Maps a URL to its Resource. 29 // Maps a URL to its Resource.
32 typedef base::hash_map< 30 typedef base::hash_map<
33 std::string, 31 std::string,
34 linked_ptr<safe_browsing::ClientMalwareReportRequest::Resource> > ResourceMap; 32 linked_ptr<safe_browsing::ClientMalwareReportRequest::Resource> > ResourceMap;
35 } 33 }
36 34
37 class MalwareDetailsCacheCollector 35 class MalwareDetailsCacheCollector
38 : public base::RefCountedThreadSafe<MalwareDetailsCacheCollector>, 36 : public base::RefCountedThreadSafe<MalwareDetailsCacheCollector>,
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 const std::string& data); 99 const std::string& data);
102 100
103 // Called when we are done. 101 // Called when we are done.
104 void AllDone(bool success); 102 void AllDone(bool success);
105 103
106 // Advances to the next entry in resources_it_. 104 // Advances to the next entry in resources_it_.
107 void AdvanceEntry(); 105 void AdvanceEntry();
108 }; 106 };
109 107
110 #endif // CHROME_BROWSER_SAFE_BROWSING_MALWARE_DETAILS_CACHE_H_ 108 #endif // CHROME_BROWSER_SAFE_BROWSING_MALWARE_DETAILS_CACHE_H_
OLDNEW
« no previous file with comments | « chrome/browser/safe_browsing/download_protection_service.h ('k') | chrome/browser/safe_browsing/malware_details_history.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698