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

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: Remove '// namespace safe_browsing' for a small fwd decl block. 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..41496c87eeaf29383ebfc2075ae7a666180dab09 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_;
@@ -85,7 +84,7 @@ class ThreatDetailsCacheCollector
scoped_ptr<net::URLFetcher> current_fetch_;
// Returns the resource from resources_ that corresponds to |url|
- safe_browsing::ClientSafeBrowsingReportRequest::Resource* GetResource(
+ ClientSafeBrowsingReportRequest::Resource* GetResource(
const GURL& url);
// Creates a new URLFetcher and starts it.
@@ -93,12 +92,12 @@ class ThreatDetailsCacheCollector
// Read the HTTP response from |source| and add it to |pb_resource|.
void ReadResponse(
- safe_browsing::ClientSafeBrowsingReportRequest::Resource* pb_resource,
+ ClientSafeBrowsingReportRequest::Resource* pb_resource,
const net::URLFetcher* source);
// Read the body |data| and add it to |pb_resource|.
void ReadData(
- safe_browsing::ClientSafeBrowsingReportRequest::Resource* pb_resource,
+ ClientSafeBrowsingReportRequest::Resource* pb_resource,
const std::string& data);
// Called when we are done.
@@ -108,4 +107,6 @@ class ThreatDetailsCacheCollector
void AdvanceEntry();
};
+} // namespace safe_browsing
+
#endif // CHROME_BROWSER_SAFE_BROWSING_THREAT_DETAILS_CACHE_H_
« no previous file with comments | « chrome/browser/safe_browsing/threat_details.cc ('k') | chrome/browser/safe_browsing/threat_details_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698