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

Side by Side Diff: net/base/ip_pattern.cc

Issue 1535363003: Switch to standard integer types in net/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: stddef Created 5 years 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 | « net/base/ip_pattern.h ('k') | net/base/keygen_handler_win.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "net/base/ip_pattern.h" 5 #include "net/base/ip_pattern.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/macros.h"
10 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
11 #include "base/stl_util.h" 12 #include "base/stl_util.h"
12 #include "base/strings/string_number_conversions.h" 13 #include "base/strings/string_number_conversions.h"
13 #include "base/strings/string_split.h" 14 #include "base/strings/string_split.h"
14 #include "base/strings/string_tokenizer.h" 15 #include "base/strings/string_tokenizer.h"
15 16
16 namespace net { 17 namespace net {
17 18
18 class IPPattern::ComponentPattern { 19 class IPPattern::ComponentPattern {
19 public: 20 public:
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 return false; 179 return false;
179 } 180 }
180 if (!is_ipv4_ && *output > 0xFFFFu) { 181 if (!is_ipv4_ && *output > 0xFFFFu) {
181 DVLOG(1) << "IPv6 component greater than 0xFFFF"; 182 DVLOG(1) << "IPv6 component greater than 0xFFFF";
182 return false; 183 return false;
183 } 184 }
184 return ok; 185 return ok;
185 } 186 }
186 187
187 } // namespace net 188 } // namespace net
OLDNEW
« no previous file with comments | « net/base/ip_pattern.h ('k') | net/base/keygen_handler_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698