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

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

Issue 2836103002: Componentize safe_browsing: move threat_details* to component. (Closed)
Patch Set: fix spelling and typos Created 3 years, 8 months 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: components/safe_browsing/browser/threat_details_cache.h
diff --git a/chrome/browser/safe_browsing/threat_details_cache.h b/components/safe_browsing/browser/threat_details_cache.h
similarity index 84%
rename from chrome/browser/safe_browsing/threat_details_cache.h
rename to components/safe_browsing/browser/threat_details_cache.h
index fa9fd4cab9897ca5cc76bed4707742edd40eeafe..8c0667e5df316dda9ee26ef6fabdf8777c8d5265 100644
--- a/chrome/browser/safe_browsing/threat_details_cache.h
+++ b/components/safe_browsing/browser/threat_details_cache.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_SAFE_BROWSING_THREAT_DETAILS_CACHE_H_
-#define CHROME_BROWSER_SAFE_BROWSING_THREAT_DETAILS_CACHE_H_
+#ifndef COMPONENTS_SAFE_BROWSING_BROWSER_THREAT_DETAILS_CACHE_H_
+#define COMPONENTS_SAFE_BROWSING_BROWSER_THREAT_DETAILS_CACHE_H_
// A class that gets threat details from the HTTP Cache.
// An instance of this class is generated by ThreatDetails.
@@ -82,21 +82,18 @@ class ThreatDetailsCacheCollector
std::unique_ptr<net::URLFetcher> current_fetch_;
// Returns the resource from resources_ that corresponds to |url|
- ClientSafeBrowsingReportRequest::Resource* GetResource(
- const GURL& url);
+ ClientSafeBrowsingReportRequest::Resource* GetResource(const GURL& url);
// Creates a new URLFetcher and starts it.
void OpenEntry();
// Read the HTTP response from |source| and add it to |pb_resource|.
- void ReadResponse(
- ClientSafeBrowsingReportRequest::Resource* pb_resource,
- const net::URLFetcher* source);
+ void ReadResponse(ClientSafeBrowsingReportRequest::Resource* pb_resource,
+ const net::URLFetcher* source);
// Read the body |data| and add it to |pb_resource|.
- void ReadData(
- ClientSafeBrowsingReportRequest::Resource* pb_resource,
- const std::string& data);
+ void ReadData(ClientSafeBrowsingReportRequest::Resource* pb_resource,
+ const std::string& data);
// Called when we are done.
void AllDone(bool success);
@@ -107,4 +104,4 @@ class ThreatDetailsCacheCollector
} // namespace safe_browsing
-#endif // CHROME_BROWSER_SAFE_BROWSING_THREAT_DETAILS_CACHE_H_
+#endif // COMPONENTS_SAFE_BROWSING_BROWSER_THREAT_DETAILS_CACHE_H_
« no previous file with comments | « components/safe_browsing/browser/threat_details.cc ('k') | components/safe_browsing/browser/threat_details_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698