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

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

Issue 1420053005: Move code in components/safe_browsing_db and chrome/browser/s_b/ under the safe_browsing namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@02_components_move
Patch Set: CR feedback. Remove using from *.h 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 e6a2817f6b22c575a9c62932faf732681779e4fd..112eb3c81b54181ba56edac639de22439da99fa6 100644
--- a/chrome/browser/safe_browsing/threat_details_cache.h
+++ b/chrome/browser/safe_browsing/threat_details_cache.h
@@ -29,9 +29,8 @@ namespace safe_browsing {
// Maps a URL to its Resource.
typedef base::hash_map<
std::string,
- linked_ptr<safe_browsing::ClientSafeBrowsingReportRequest::Resource>>
+ linked_ptr<ClientSafeBrowsingReportRequest::Resource>>
ResourceMap;
-}
class ThreatDetailsCacheCollector
: public base::RefCountedThreadSafe<ThreatDetailsCacheCollector>,
@@ -44,7 +43,7 @@ class ThreatDetailsCacheCollector
// for the lifetime of this object.
void StartCacheCollection(
net::URLRequestContextGetter* request_context_getter,
- safe_browsing::ResourceMap* resources,
+ ResourceMap* resources,
bool* result,
const base::Closure& callback);
@@ -63,10 +62,10 @@ class ThreatDetailsCacheCollector
// Points to the url for which we are fetching the HTTP cache entry or
// redirect chain.
- safe_browsing::ResourceMap::iterator resources_it_;
+ ResourceMap::iterator resources_it_;
// Points to the resources_ map in the ThreatDetails.
- safe_browsing::ResourceMap* resources_;
+ ResourceMap* resources_;
// Points to the cache_result_ in the ThreatDetails.
bool* result_;
@@ -108,4 +107,6 @@ class ThreatDetailsCacheCollector
void AdvanceEntry();
};
+} // namespace safe_browsing
+
#endif // CHROME_BROWSER_SAFE_BROWSING_THREAT_DETAILS_CACHE_H_

Powered by Google App Engine
This is Rietveld 408576698