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

Side by Side Diff: chrome/browser/safe_browsing/browser_feature_extractor.cc

Issue 425653002: content: ResourceType cleanup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: REBASE Created 6 years, 4 months 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/safe_browsing/browser_feature_extractor.h" 5 #include "chrome/browser/safe_browsing/browser_feature_extractor.h"
6 6
7 #include <map> 7 #include <map>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 } else { 52 } else {
53 ++it; 53 ++it;
54 } 54 }
55 } 55 }
56 } 56 }
57 } // namespace 57 } // namespace
58 58
59 IPUrlInfo::IPUrlInfo(const std::string& url, 59 IPUrlInfo::IPUrlInfo(const std::string& url,
60 const std::string& method, 60 const std::string& method,
61 const std::string& referrer, 61 const std::string& referrer,
62 const ResourceType::Type& resource_type) 62 const ResourceType& resource_type)
63 : url(url), 63 : url(url),
64 method(method), 64 method(method),
65 referrer(referrer), 65 referrer(referrer),
66 resource_type(resource_type) { 66 resource_type(resource_type) {
67 } 67 }
68 68
69 IPUrlInfo::~IPUrlInfo() {} 69 IPUrlInfo::~IPUrlInfo() {}
70 70
71 BrowseInfo::BrowseInfo() : http_status_code(0) {} 71 BrowseInfo::BrowseInfo() : http_status_code(0) {}
72 72
(...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after
481 // Limit the number of matched bad IPs in one request to control 481 // Limit the number of matched bad IPs in one request to control
482 // the request's size 482 // the request's size
483 if (matched_bad_ips >= kMaxMalwareIPPerRequest) { 483 if (matched_bad_ips >= kMaxMalwareIPPerRequest) {
484 break; 484 break;
485 } 485 }
486 } 486 }
487 callback.Run(true, request.Pass()); 487 callback.Run(true, request.Pass());
488 } 488 }
489 489
490 } // namespace safe_browsing 490 } // namespace safe_browsing
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698