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

Unified Diff: chrome/browser/safe_browsing/threat_details.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: Merging the latest changes from trunk. 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.h
diff --git a/chrome/browser/safe_browsing/threat_details.h b/chrome/browser/safe_browsing/threat_details.h
index 58f9451ea87ca66a91e4f6e5132f0f68c0b4705f..6aac4e9de7346ffae1d6d83d9d9d0b050d1c23f4 100644
--- a/chrome/browser/safe_browsing/threat_details.h
+++ b/chrome/browser/safe_browsing/threat_details.h
@@ -29,19 +29,19 @@ namespace net {
class URLRequestContextGetter;
}
-class ThreatDetailsCacheCollector;
-class ThreatDetailsRedirectsCollector;
-class ThreatDetailsFactory;
class Profile;
struct SafeBrowsingHostMsg_MalwareDOMDetails_Node;
namespace safe_browsing {
+
+class ThreatDetailsCacheCollector;
+class ThreatDetailsRedirectsCollector;
+class ThreatDetailsFactory;
+
// Maps a URL to its Resource.
typedef base::hash_map<
- std::string,
- linked_ptr<safe_browsing::ClientMalwareReportRequest::Resource>>
- ResourceMap;
-}
+ std::string,
+ linked_ptr<ClientMalwareReportRequest::Resource> > ResourceMap;
class ThreatDetails : public base::RefCountedThreadSafe<ThreatDetails>,
public content::WebContentsObserver {
@@ -90,7 +90,7 @@ class ThreatDetails : public base::RefCountedThreadSafe<ThreatDetails>,
Profile* profile_;
// The report protocol buffer.
- scoped_ptr<safe_browsing::ClientMalwareReportRequest> report_;
+ scoped_ptr<ClientMalwareReportRequest> report_;
// Used to get a pointer to the HTTP cache.
scoped_refptr<net::URLRequestContextGetter> request_context_getter_;
@@ -107,8 +107,7 @@ class ThreatDetails : public base::RefCountedThreadSafe<ThreatDetails>,
// Finds an existing Resource for the given url, or creates a new
// one if not found, and adds it to |resources_|. Returns the
// found/created resource.
- safe_browsing::ClientMalwareReportRequest::Resource* FindOrCreateResource(
- const GURL& url);
+ ClientMalwareReportRequest::Resource* FindOrCreateResource(const GURL& url);
// Adds a Resource to resources_ with the given parent-child
// relationship. |parent| and |tagname| can be empty, |children| can be NULL.
@@ -129,7 +128,7 @@ class ThreatDetails : public base::RefCountedThreadSafe<ThreatDetails>,
// For every Url we collect we create a Resource message. We keep
// them in a map so we can avoid duplicates.
- safe_browsing::ResourceMap resources_;
+ ResourceMap resources_;
// Result from the cache extractor.
bool cache_result_;
@@ -171,4 +170,6 @@ class ThreatDetailsFactory {
const SafeBrowsingUIManager::UnsafeResource& unsafe_resource) = 0;
};
+} // namespace safe_browsing
+
#endif // CHROME_BROWSER_SAFE_BROWSING_THREAT_DETAILS_H_

Powered by Google App Engine
This is Rietveld 408576698