Lines Matching refs:url
96 bool MalwareDetails::IsPublicUrl(const GURL& url) const {
97 return url.SchemeIs("http"); // TODO(panayiotis): also skip internal urls.
100 // Looks for a Resource for the given url in resources_. If found, it
104 const GURL& url) {
105 safe_browsing::ResourceMap::iterator it = resources_.find(url.spec());
110 // Create the resource for |url|.
114 new_resource->set_url(url.spec());
116 resources_[url.spec()] = new_resource;
120 void MalwareDetails::AddUrl(const GURL& url,
124 if (!IsPublicUrl(url))
127 // Find (or create) the resource for the url.
129 FindOrCreateResource(url);
154 if (IsPublicUrl(resource_.url)) {
155 report_->set_malware_url(resource_.url.spec());
172 // Add the nodes, starting from the page url.
175 // Add the resource_url and its original url, if non-empty and different.
177 resource_.url != resource_.original_url) {
180 AddUrl(resource_.url, resource_.original_url, "", NULL);
182 AddUrl(resource_.url, GURL(), "", NULL);
186 // original url, but include the unsafe url which is the last one of the
189 // Set the original url as the parent of the first redirect url if it's not
194 // Set the previous redirect url as the parent of the next one
200 // Add the referrer url.
235 DVLOG(1) << node.url << ", " << node.tag_name << ", " << node.parent;
236 AddUrl(node.url, node.parent, node.tag_name, &(node.children));