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

Unified Diff: chrome/browser/safe_browsing/threat_details_cache.h

Issue 1414343007: Collect threat details for phishing and UwS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit Created 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/safe_browsing/threat_details_cache.h
diff --git a/chrome/browser/safe_browsing/threat_details_cache.h b/chrome/browser/safe_browsing/threat_details_cache.h
index 417626430dc7436cbfbc77459f6847512ef08a6a..e6a2817f6b22c575a9c62932faf732681779e4fd 100644
--- a/chrome/browser/safe_browsing/threat_details_cache.h
+++ b/chrome/browser/safe_browsing/threat_details_cache.h
@@ -15,7 +15,7 @@
#include "base/containers/hash_tables.h"
#include "base/memory/linked_ptr.h"
#include "base/memory/ref_counted.h"
-#include "chrome/browser/safe_browsing/report.pb.h"
+#include "chrome/common/safe_browsing/csd.pb.h"
#include "net/base/completion_callback.h"
#include "net/url_request/url_fetcher_delegate.h"
@@ -29,7 +29,7 @@ namespace safe_browsing {
// Maps a URL to its Resource.
typedef base::hash_map<
std::string,
- linked_ptr<safe_browsing::ClientMalwareReportRequest::Resource>>
+ linked_ptr<safe_browsing::ClientSafeBrowsingReportRequest::Resource>>
ResourceMap;
}
@@ -85,7 +85,7 @@ class ThreatDetailsCacheCollector
scoped_ptr<net::URLFetcher> current_fetch_;
// Returns the resource from resources_ that corresponds to |url|
- safe_browsing::ClientMalwareReportRequest::Resource* GetResource(
+ safe_browsing::ClientSafeBrowsingReportRequest::Resource* GetResource(
const GURL& url);
// Creates a new URLFetcher and starts it.
@@ -93,12 +93,12 @@ class ThreatDetailsCacheCollector
// Read the HTTP response from |source| and add it to |pb_resource|.
void ReadResponse(
- safe_browsing::ClientMalwareReportRequest::Resource* pb_resource,
+ safe_browsing::ClientSafeBrowsingReportRequest::Resource* pb_resource,
const net::URLFetcher* source);
// Read the body |data| and add it to |pb_resource|.
void ReadData(
- safe_browsing::ClientMalwareReportRequest::Resource* pb_resource,
+ safe_browsing::ClientSafeBrowsingReportRequest::Resource* pb_resource,
const std::string& data);
// Called when we are done.

Powered by Google App Engine
This is Rietveld 408576698