| Index: chrome/browser/safe_browsing/threat_details.cc
|
| diff --git a/chrome/browser/safe_browsing/threat_details.cc b/chrome/browser/safe_browsing/threat_details.cc
|
| index 50d956d93ebb5392b07ea616c6d2b29c56ae7b2d..4dce08815df3725fd1279d7385acef016017ed80 100644
|
| --- a/chrome/browser/safe_browsing/threat_details.cc
|
| +++ b/chrome/browser/safe_browsing/threat_details.cc
|
| @@ -23,7 +23,8 @@
|
| using content::BrowserThread;
|
| using content::NavigationEntry;
|
| using content::WebContents;
|
| -using safe_browsing::ClientMalwareReportRequest;
|
| +
|
| +namespace safe_browsing {
|
|
|
| // Keep in sync with KMaxNodes in renderer/safe_browsing/malware_dom_details
|
| static const uint32 kMaxDomNodes = 500;
|
| @@ -104,7 +105,7 @@ bool ThreatDetails::IsReportableUrl(const GURL& url) const {
|
| //
|
| ClientMalwareReportRequest::Resource* ThreatDetails::FindOrCreateResource(
|
| const GURL& url) {
|
| - safe_browsing::ResourceMap::iterator it = resources_.find(url.spec());
|
| + ResourceMap::iterator it = resources_.find(url.spec());
|
| if (it != resources_.end())
|
| return it->second.get();
|
|
|
| @@ -250,7 +251,7 @@ void ThreatDetails::FinishCollection(bool did_proceed, int num_visit) {
|
| did_proceed_ = did_proceed;
|
| num_visits_ = num_visit;
|
| std::vector<GURL> urls;
|
| - for (safe_browsing::ResourceMap::const_iterator it = resources_.begin();
|
| + for (ResourceMap::const_iterator it = resources_.begin();
|
| it != resources_.end(); ++it) {
|
| urls.push_back(GURL(it->first));
|
| }
|
| @@ -260,7 +261,7 @@ void ThreatDetails::FinishCollection(bool did_proceed, int num_visit) {
|
|
|
| void ThreatDetails::OnRedirectionCollectionReady() {
|
| DCHECK_CURRENTLY_ON(BrowserThread::IO);
|
| - const std::vector<safe_browsing::RedirectChain>& redirects =
|
| + const std::vector<RedirectChain>& redirects =
|
| redirects_collector_->GetCollectedUrls();
|
|
|
| for (size_t i = 0; i < redirects.size(); ++i)
|
| @@ -282,7 +283,7 @@ void ThreatDetails::AddRedirectUrlList(const std::vector<GURL>& urls) {
|
| void ThreatDetails::OnCacheCollectionReady() {
|
| DVLOG(1) << "OnCacheCollectionReady.";
|
| // Add all the urls in our |resources_| maps to the |report_| protocol buffer.
|
| - for (safe_browsing::ResourceMap::const_iterator it = resources_.begin();
|
| + for (ResourceMap::const_iterator it = resources_.begin();
|
| it != resources_.end(); ++it) {
|
| ClientMalwareReportRequest::Resource* pb_resource =
|
| report_->add_resources();
|
| @@ -313,3 +314,5 @@ void ThreatDetails::OnCacheCollectionReady() {
|
|
|
| ui_manager_->SendSerializedThreatDetails(serialized);
|
| }
|
| +
|
| +} // namespace safe_browsing
|
|
|