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

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

Issue 483703004: Use a qualified path for grit/net_resources.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: gnnnnn 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
« no previous file with comments | « net/BUILD.gn ('k') | net/net.gyp » ('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) 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 "net/base/net_util.h" 5 #include "net/base/net_util.h"
6 6
7 #include <errno.h> 7 #include <errno.h>
8 #include <string.h> 8 #include <string.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 26 matching lines...) Expand all
37 #include "base/lazy_instance.h" 37 #include "base/lazy_instance.h"
38 #include "base/logging.h" 38 #include "base/logging.h"
39 #include "base/strings/string_number_conversions.h" 39 #include "base/strings/string_number_conversions.h"
40 #include "base/strings/string_piece.h" 40 #include "base/strings/string_piece.h"
41 #include "base/strings/string_split.h" 41 #include "base/strings/string_split.h"
42 #include "base/strings/string_util.h" 42 #include "base/strings/string_util.h"
43 #include "base/strings/stringprintf.h" 43 #include "base/strings/stringprintf.h"
44 #include "base/strings/utf_string_conversions.h" 44 #include "base/strings/utf_string_conversions.h"
45 #include "base/sys_byteorder.h" 45 #include "base/sys_byteorder.h"
46 #include "base/values.h" 46 #include "base/values.h"
47 #include "grit/net_resources.h"
48 #include "url/gurl.h" 47 #include "url/gurl.h"
49 #include "url/url_canon.h" 48 #include "url/url_canon.h"
50 #include "url/url_canon_ip.h" 49 #include "url/url_canon_ip.h"
51 #include "url/url_parse.h" 50 #include "url/url_parse.h"
52 #include "net/base/dns_util.h" 51 #include "net/base/dns_util.h"
53 #include "net/base/net_module.h" 52 #include "net/base/net_module.h"
54 #include "net/base/registry_controlled_domains/registry_controlled_domain.h" 53 #include "net/base/registry_controlled_domains/registry_controlled_domain.h"
54 #include "net/grit/net_resources.h"
55 #include "net/http/http_content_disposition.h" 55 #include "net/http/http_content_disposition.h"
56 56
57 #if defined(OS_ANDROID) 57 #if defined(OS_ANDROID)
58 #include "net/android/network_library.h" 58 #include "net/android/network_library.h"
59 #endif 59 #endif
60 #if defined(OS_WIN) 60 #if defined(OS_WIN)
61 #include "net/base/winsock_init.h" 61 #include "net/base/winsock_init.h"
62 #endif 62 #endif
63 63
64 namespace net { 64 namespace net {
(...skipping 967 matching lines...) Expand 10 before | Expand all | Expand 10 after
1032 } 1032 }
1033 return a1.size() * CHAR_BIT; 1033 return a1.size() * CHAR_BIT;
1034 } 1034 }
1035 1035
1036 unsigned MaskPrefixLength(const IPAddressNumber& mask) { 1036 unsigned MaskPrefixLength(const IPAddressNumber& mask) {
1037 IPAddressNumber all_ones(mask.size(), 0xFF); 1037 IPAddressNumber all_ones(mask.size(), 0xFF);
1038 return CommonPrefixLength(mask, all_ones); 1038 return CommonPrefixLength(mask, all_ones);
1039 } 1039 }
1040 1040
1041 } // namespace net 1041 } // namespace net
OLDNEW
« no previous file with comments | « net/BUILD.gn ('k') | net/net.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698