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

Side by Side Diff: components/safe_browsing_db/util.cc

Issue 1551433002: Switch to standard integer types in components/, part 3 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more Created 4 years, 12 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
« no previous file with comments | « components/safe_browsing_db/util.h ('k') | components/safe_browsing_db/util_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2015 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 "components/safe_browsing_db/util.h" 5 #include "components/safe_browsing_db/util.h"
6 6
7 #include <stddef.h>
8
9 #include "base/macros.h"
7 #include "base/strings/string_util.h" 10 #include "base/strings/string_util.h"
8 #include "crypto/sha2.h" 11 #include "crypto/sha2.h"
9 #include "net/base/escape.h" 12 #include "net/base/escape.h"
10 #include "url/gurl.h" 13 #include "url/gurl.h"
11 #include "url/url_util.h" 14 #include "url/url_util.h"
12 15
13 namespace safe_browsing { 16 namespace safe_browsing {
14 17
15 // Utility functions ----------------------------------------------------------- 18 // Utility functions -----------------------------------------------------------
16 19
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after
399 GenerateHostsToCheck(url, &hosts); 402 GenerateHostsToCheck(url, &hosts);
400 GeneratePathsToCheck(url, &paths); 403 GeneratePathsToCheck(url, &paths);
401 for (size_t h = 0; h < hosts.size(); ++h) { 404 for (size_t h = 0; h < hosts.size(); ++h) {
402 for (size_t p = 0; p < paths.size(); ++p) { 405 for (size_t p = 0; p < paths.size(); ++p) {
403 urls->push_back(hosts[h] + paths[p]); 406 urls->push_back(hosts[h] + paths[p]);
404 } 407 }
405 } 408 }
406 } 409 }
407 410
408 } // namespace safe_browsing 411 } // namespace safe_browsing
OLDNEW
« no previous file with comments | « components/safe_browsing_db/util.h ('k') | components/safe_browsing_db/util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698