summaryrefslogtreecommitdiffstats
path: root/net/base/net_util.cc
Commit message (Collapse)AuthorAgeFilesLines
* Cleanup of GetNetworkList code.vitalybuka@chromium.org2013-09-291-1/+1
| | | | | | | | | Use size_t for network prefix for consistency with other code. Use ParseCIDRBlock to split address and network. Review URL: https://codereview.chromium.org/24674003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@225882 0039d316-1c4b-4281-b951-d872f2087c98
* Support IDNA 2008 with UTS46.jshin@chromium.org2013-09-291-23/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | UTS 46 provides a migration path from IDNA 2003 to IDNA 2008. 1. Use the up-to-date Unicode data; new characters were added and some case-folding/mapping have changed since Unicode 3.2 on which IDNA 2003 is based. 2. Define a case folding/mapping as is the case with IDNA 2003. 3. Use transitional mechanism for 4 deviant characters : German sharp-S, Greek final-sigma, ZWJ and ZWNJ. That is, the former two are mapped to 'ss' and regular sigma and the latter two are dropped. All the major browsers do this at the moment so allowing them does not do any good. We'll review this later as the consensus builds among browser vendors and registrars. We can also consider handling them separately. For instance, ZWJ/ZWNJ can be allowed with ContextJ rules, which requires a minor change in ICU's UTS 46 implementation. 4. Symbol and punctuations continue to be allowed. We also do the following: 1. Continue to "violate" STD3 rules about non-LDH (Letter, digits and hyphens) by allowing non-LDH's. That is no change from the current implementation. 2. Do not allow unassigned code points any more. With an up-to-date Unicode data, this does not make much difference. And the chance of new characters not yet reflected in our Unicode data popping up in a domain name is extremely low. 3. Continue to use CHECK_BIDI. The Bidi rule in IDNA 2008 is more permissive than in IDNA 2003. References: 1. http://unicode.org/reports/tr46/ and references therein to IDNA 2003 and 2008 RFCs. 2. What IE 10 does : http://goo.gl/3XBhqw 3. Mozilla bug : https://bugzilla.mozilla.org/show_bug.cgi?id=479520 BUG=61328 TEST=url_unittests (URLCanonTest.Host), net_unittests (NetUtilTest.IDNToU*), unittests (X509CertificateModelTest.*) R=brettw@chromium.org, pkasting@chromium.org, rsleevi@chromium.org, thakis@chromium.org Review URL: https://codereview.chromium.org/23642003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@225878 0039d316-1c4b-4281-b951-d872f2087c98
* Added NetworkInterface::network_prefix.vitalybuka@chromium.org2013-09-261-3/+26
| | | | | | | | | | | | | BUG=295997 NOTRY=true Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=225303 R=szym@chromium.org Review URL: https://codereview.chromium.org/23726043 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@225353 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 225303 "Added NetworkInterface::network_prefix."vitalybuka@chromium.org2013-09-261-26/+3
| | | | | | | | | | | | | | | > Added NetworkInterface::network_prefix. > > BUG=295997 > NOTRY=true > > Review URL: https://codereview.chromium.org/23726043 TBR=vitalybuka@chromium.org Review URL: https://codereview.chromium.org/24530007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@225326 0039d316-1c4b-4281-b951-d872f2087c98
* Added NetworkInterface::network_prefix.vitalybuka@chromium.org2013-09-261-3/+26
| | | | | | | | | BUG=295997 NOTRY=true Review URL: https://codereview.chromium.org/23726043 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@225303 0039d316-1c4b-4281-b951-d872f2087c98
* Switch the offset conversion routines from an "offsets point at characters"pkasting@chromium.org2013-09-111-129/+114
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | worldview to an "offsets point between characters" worldview. This more closely aligns with how the omnibox autocomplete code (which is what this was originally written for) expects things to behave. Direct fallout from this change: * An input offset of 0 will always map to an output offset of 0. * An input offset of (length of string) will always map to the length of the output string, instead of npos. * It's possible for multiple unique input offsets to map to a single non-npos output offset, if they e.g. point to the start and end of a collapsed sequence. * Input offsets pointing into the middle of a completely-removed sequence may not be set to npos if they fall on the boundaries of a subsequence processed by the transformer. For example, when running FormatUrlWithOffsets() on "http://user:pass@domain.com/" and directing it to omit both the scheme and username/password, an input offset of "7" that points in between the scheme and the username/password will be transformed to an output offset of 0 instead of npos. Indirect fallout: * A caller like SearchProvider::NavigationToMatch() will now mark certain matches as "allowed to be default" that it didn't before. Specifically, if the user's input string ends at the same point as the desired |fill_into_edit|, the autocomplete offset will be calculated as (length of string) instead of npos, and thus the match will be thought of as "inlinable" and thus "allowed to be default". BUG=284781 TEST=none R=msw@chromium.org, willchan@chromium.org Review URL: https://codereview.chromium.org/23619016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@222426 0039d316-1c4b-4281-b951-d872f2087c98
* Net: make IsSafePortableRelativePath look for reserved names on all components.rvargas@chromium.org2013-09-071-7/+3
| | | | | | | | | | | | | Now a reserved name is not allowed on any component of the path. BUG=none test=net_unittests R=asanka@chromium.org Review URL: https://chromiumcodereview.appspot.com/23464037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@221882 0039d316-1c4b-4281-b951-d872f2087c98
* Land Recent QUIC changes.rtenneti@chromium.org2013-09-051-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is the first part of the code to allow faster stats/future compression stuff to register for a notification when a block of data has been fully ACKed by the peer. The idea is as follows: Someone who wants to be notified when their data is ACKed calls SendStreamDataAndNotifyWhenAcked instead of SendStreamData, and provides a Closure. The QuicConnection stores the Closure in a QuicAckNotifier, and maintains a vector of these. On every ACK frame received, the OnAck(acked_seqnums) method of each QuicAckNotifier is called. The QuicAckNotifier keeps track of the sequence numbers it is waiting to see, and after being notified of all of them it calls the Closure's Run() method. Merge internal change: 51476134 Changed SourceAddressToken's code not to include port number while performing crypto handshake (found in EndToEnd unit tests). Use IPAddressToPackedString for source address token comparison. Add CryptoServerConfig::set_strike_register_no_startup_period() to allow a QuicServer to start accepting 0-RTT handshakes without waiting a startup period. Add an end-to-end test for a successful 0-RTT handshake. Merge internal change: 51419595 Copying the overly-lenient SPDY workarounds to handling priority blocked streams for idle timeout logic. Merge internal change: 51406984 For this CL, the only chromium side change is to add QuicConnectionPeer::SetPeerAddress. Log packet retransmissions to DLOG(INFO). Use the standard format for the log messages for crypto handshake messages on the client side. Merge internal change: 51336227 New frame ID scheme to eliminate conflict between STREAM and PADDING frames. PADDING frames are now stream type 0. Description of the new scheme is in quic_framer.cc. Merge internal change: 51271708 Fixing a bug in implicitly created streams which results in early packet loss causing all streams to hang. Merge internal change: 51248632 R=rch@chromium.org Review URL: https://chromiumcodereview.appspot.com/23464033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@221419 0039d316-1c4b-4281-b951-d872f2087c98
* Move server socket functionality from TCPServerSocket into TCPSocket.yzshen@chromium.org2013-09-011-0/+13
| | | | | | | | | | | | | | TCPServerSocket becomes a wrapper around TCPSocket to expose a server-only interface. There will be separate CLs to move client socket functionality from TCPClientSocket into TCPSocket. BUG=262601 TEST=newly added tcp_socket_unittest.cc Review URL: https://chromiumcodereview.appspot.com/22861033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@220752 0039d316-1c4b-4281-b951-d872f2087c98
* Adds a new method, net::IsIPAddressReserved, that returns true if an IP addressfelt@chromium.org2013-08-231-25/+92
| | | | | | | | | | | | | | | | | belongs to a reserved IANA range. This includes *all* reserved IANA ranges. Applies to both IPv4 and IPv6. I used the following IANA links to decide whether a given range is reserved: https://www.iana.org/assignments/ipv4-address-space/ipv4-address-space.xml https://www.iana.org/assignments/ipv6-address-space/ipv6-address-space.xml BUG=225570,119212,116838 TEST=net_unittest R=rsleevi@chromium.org Review URL: https://chromiumcodereview.appspot.com/22538003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@219193 0039d316-1c4b-4281-b951-d872f2087c98
* Adds new UMA entries to give us SSL clickthrough rates specific to intranet ↵felt@chromium.org2013-08-031-0/+35
| | | | | | | | | | | | | sites. Relies on value of IsHostnameNonUnique. This CL also moves CertVerifyProc::IsHostnameNonUnique into net_util. BUG=225570 R=rsleevi@chromium.org Review URL: https://chromiumcodereview.appspot.com/21572002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@215428 0039d316-1c4b-4281-b951-d872f2087c98
* Relax IsCanonicalizedHostCompliant again: allow the last component to start withpkasting@chromium.org2013-07-301-13/+8
| | | | | | | | | | | | an alphanumeric character, not just an alphabetic one. BUG=262206 TEST=Type "http://9a" in the omnibox, default choice should be to navigate R=eroman@chromium.org Review URL: https://codereview.chromium.org/21077005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@214272 0039d316-1c4b-4281-b951-d872f2087c98
* Replace third_party/icu/public with third_party/icu/source in the include ↵jshin@chromium.org2013-07-181-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | directives. This is to move back icu headers in third_party/icu/public/{i18n,common}/unicode back to their upstream locations in third_party/icu/source/{i18n,common}/unicode. http://codereview.chromium.org/18836004 has is a CL to move ICU header files. Roll ICU to the version with the above ICU CL (http://crrev.com/211851 ). In addition to the global replacement of third_party/icu/public with third_party/icu/source, the top-level DEPS, DEPS in printing and chrome/ are tightened up. (the latter two were too permissive (it used to allow any header from third_party/icu). Besides, sync '-foo' list in ios/public/DEPS with '+foo' in the top-level DEPS and build/linux/unbundled/icu.gyp is updated. BUG=251433 TEST=Compile succeeds on all bots. checkdeps.py does not find any error. TBR=brettw,sky,wtc Review URL: https://chromiumcodereview.appspot.com/18252003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@212324 0039d316-1c4b-4281-b951-d872f2087c98
* Remove interface probing for IPv6 support from HostResolverImplszym@chromium.org2013-07-181-173/+0
| | | | | | | | | | Since r195406 the probe is not used. It is now safe to remove this code completely. BUG=260750 Review URL: https://chromiumcodereview.appspot.com/19286002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@212224 0039d316-1c4b-4281-b951-d872f2087c98
* Use a direct include of the message_loop header in net/, part 1.avi@chromium.org2013-07-171-1/+1
| | | | | | | | | | BUG=260807 TEST=none TBR=ben@chromium.org Review URL: https://chromiumcodereview.appspot.com/19614003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@212138 0039d316-1c4b-4281-b951-d872f2087c98
* net: Migrate from googleurl/ includes to url/ ones.tfarina@chromium.org2013-07-121-4/+4
| | | | | | | | | | BUG=229660 R=eroman@chromium.org TBR=eroman@chromium.org Review URL: https://chromiumcodereview.appspot.com/6362186595172352 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@211347 0039d316-1c4b-4281-b951-d872f2087c98
* Use a direct include of time headers in net/, part 1.avi@chromium.org2013-06-281-1/+1
| | | | | | | | | | BUG=254986 TEST=none TBR=ben@chromium.org Review URL: https://chromiumcodereview.appspot.com/18054009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@209110 0039d316-1c4b-4281-b951-d872f2087c98
* Make net and ipc explicitly use the base namespace for Values.brettw@chromium.org2013-06-131-1/+1
| | | | | | | | | | | They're currently relying on a using in values.h that we want to remove. I removed several usings in net for consistency. BUG= R=willchan@chromium.org Review URL: https://codereview.chromium.org/15662008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@206187 0039d316-1c4b-4281-b951-d872f2087c98
* Use base:: on string16 and char16 in net/ and url/avi@chromium.org2013-06-111-5/+5
| | | | | | | | | | BUG=none TEST=no change TBR=brettw@chromium.org Review URL: https://codereview.chromium.org/16413006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@205636 0039d316-1c4b-4281-b951-d872f2087c98
* Use a direct include of strings headers in net/android/, net/base/, ↵avi@chromium.org2013-06-111-3/+3
| | | | | | | | | | | | net/cert/, net/cookies/. BUG=247723 TEST=none TBR=ben@chromium.org Review URL: https://chromiumcodereview.appspot.com/15942015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@205483 0039d316-1c4b-4281-b951-d872f2087c98
* Use a direct include of utf_string_conversions.h in net/.avi@chromium.org2013-06-071-1/+1
| | | | | | | | | | BUG=none TEST=none TBR=ben@chromium.org Review URL: https://chromiumcodereview.appspot.com/15995039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@204876 0039d316-1c4b-4281-b951-d872f2087c98
* Reland: Fix errors when building android with coverage=1 ilevy@chromium.org2013-06-061-1/+1
| | | | | | | | | | | | | | | Originally landed in r204547 Reverted in r204553 due to cq anomaly. Android builds with coverage=1 fail due to uninitialized variable warnings in base/linux_util.cc and base/net/net_util.cc BUG=245467 TBR=willchan Review URL: https://chromiumcodereview.appspot.com/16589002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@204662 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 204556 "Fix errors when building android with coverage=1"ilevy@chromium.org2013-06-061-1/+1
| | | | | | | | | | | | | | | | | | | CQ anomaly x2. > Fix errors when building android with coverage=1 > > Android builds with coverage=1 fail due to uninitialized variable > warnings in base/linux_util.cc and base/net/net_util.cc > > BUG=245467 > > Review URL: https://chromiumcodereview.appspot.com/16077010 TBR=rwalker@codeaurora.org Review URL: https://codereview.chromium.org/16505004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@204562 0039d316-1c4b-4281-b951-d872f2087c98
* Fix errors when building android with coverage=1rwalker@codeaurora.org2013-06-061-1/+1
| | | | | | | | | | | Android builds with coverage=1 fail due to uninitialized variable warnings in base/linux_util.cc and base/net/net_util.cc BUG=245467 Review URL: https://chromiumcodereview.appspot.com/16077010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@204556 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 204547 "Fix errors when building android with coverage=1"ilevy@chromium.org2013-06-061-1/+1
| | | | | | | | | | | | | | | | | | | CQ error. Committed without tryjobs. > Fix errors when building android with coverage=1 > > Android builds with coverage=1 fail due to uninitialized variable > warnings in base/linux_util.cc and base/net/net_util.cc > > BUG=245467 > > Review URL: https://chromiumcodereview.appspot.com/16077010 TBR=rwalker@codeaurora.org Review URL: https://codereview.chromium.org/16415008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@204553 0039d316-1c4b-4281-b951-d872f2087c98
* Fix errors when building android with coverage=1rwalker@codeaurora.org2013-06-061-1/+1
| | | | | | | | | | | Android builds with coverage=1 fail due to uninitialized variable warnings in base/linux_util.cc and base/net/net_util.cc BUG=245467 Review URL: https://chromiumcodereview.appspot.com/16077010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@204547 0039d316-1c4b-4281-b951-d872f2087c98
* content: Move kViewSourceScheme constant into content namespace.tfarina@chromium.org2013-05-301-1/+1
| | | | | | | | | BUG=None R=thestig@chromium.org,grt@chromium.org,joi@chromium.org,eroman@chromium.org Review URL: https://chromiumcodereview.appspot.com/15950011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@203241 0039d316-1c4b-4281-b951-d872f2087c98
* Land Recent QUIC changes.rtenneti@chromium.org2013-05-161-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Stop versioning non crypto parameters by SCFG. This enables the server to send different values for these parameters for same SCFG. As a consequence the server sends the negotiated (authoritative) values of these parameters in SHLO. Merge internal change: 45655201 QUIC: make several magic values configurable. This is half a change. The other half needs to alter server and so I'll put it in a different CL. This makes four magic values from the server handshake into parameters of the server config. A future CL will be able to have the server set them from it's SSL config protobuf. Merge internal change: 45622443 QUIC: don't request a proof if the client doesn't have a ProofVerifier. In order to support cert-less operation, this change alters the client to not request a proof from the server if it doesn't have a ProofVerifier configured. Without a ProofVerifier, the client will simply do opportunistic encryption. Merge internal change: 45614800 * Stop processing if the current packet closed the connection. * Close the connection if invalid RST packet received (consistent with current behavior) -- UDP provides simple CRC. Merge internal change: 45612040 Don't call ConnectionClose on ConnectionCloseFrame if visitor asked to stop after processing ack frame. Merge internal change: 45606025 Don't further process revived packet if visitor refuses the packet header. Merge internal change: 45530388 Fix coding style nits. Use "*sets" instead of "set" for arguments or variables of the CommonCertSets type. Merge internal change: 45523282 Added enum for write packet error. Handling failed writes due to errors other than EAGAIN/EWOULDBLOCK I don't know if this happens for us but might as well handle it. Merge internal change: 45522400 Tear down the connection when there is a decompression error. Merge internal change: 45521857 Bugfix infinite wait Merge internal change: 45509285 Replaced number 3 with kSpdyVersion3. Will work akalin to define and use SpdyMajorVersion enum and use it everywhere. This is a partial merge of internal change: 45485205 Removing an obselete TODO Merge internal change: 45471987 Move QuicConfig out of QuicCryptoStream. The motivation behind this change is to be able to select different values for QuicConfig depending upon SNI (after we receive CHLO). Merge internal change: 45434264 Limiting the number of FEC groups to 2 Merge internal change: 45425759 Closing connection on out of bounds packet. Merge internal change: 45413532 Miscellaneous cleanup: add 'const', remove unneeded headers, and make random minor fixes. Document the CommonCertSets methods better. Merge internal change: 45380570 Move FindMutualTag from CryptoUtils to QuicUtils. We will also use this in version negotiation Merge internal change: 45337156 Replacing CHECK-fails on address migration with graceful shutdown. Added GetAddressFamily utility method. Added check for IPV4 in WritePacket method QuicSocketUtils to copy the IPV4 self_address. Merge internal change: 45306947 QUIC - Negotiate max open streams. Added QuicClientSessionPeer to access QuicConfig in QuicClientSession. Merge internal change: 45233402 Allow retransmitting packets that are retransmissions when we get trucated acks. Merge internal change: 45233252 Reduce connection timeout till crypto handshake is finished to 1min. Merge internal change: 45232483 R=rch@chromium.org Review URL: https://chromiumcodereview.appspot.com/15074007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@200519 0039d316-1c4b-4281-b951-d872f2087c98
* Sanitize directory names from chrome.downloads.onDeterminingFilename.benjhayden@chromium.org2013-05-051-94/+125
| | | | | | | | | | Also fixes subdirectories in DownloadPathReservationTracker and a bug in downloads_api_unittest.cc where Events were incorrectly matching expectations (false positives). BUG=181332 Review URL: https://chromiumcodereview.appspot.com/13866027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@198343 0039d316-1c4b-4281-b951-d872f2087c98
* net: Update the include paths of base/string_piece.h to its new location.tfarina@chromium.org2013-04-131-1/+1
| | | | | | | | | | | string_piece.h was moved into base/strings/ in r191206 - https://chromiumcodereview.appspot.com/12982018/ TBR=eroman@chromium.org,brettw@chromium.org Review URL: https://codereview.chromium.org/14223008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@194055 0039d316-1c4b-4281-b951-d872f2087c98
* Rewrite std::string("") to std::string(), Linux edition.dcheng@chromium.org2013-04-091-2/+2
| | | | | | | | | | | | | | | | | | | This patch was generated by running the empty_string clang tool across the Chromium Linux compilation database. Implicitly or explicitly constructing std::string() with a "" argument is inefficient as the caller needs to emit extra instructions to pass an argument, and the constructor needlessly copies a byte into internal storage. Rewriting these instances to simply call the default constructor appears to save ~14-18 kilobytes on an optimized release build. BUG=none Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=193020 Review URL: https://codereview.chromium.org/13145003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@193040 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "Rewrite std::string("") to std::string(), Linux edition."dcheng@chromium.org2013-04-091-2/+2
| | | | | | | | | | | | | | This reverts commit e59558b78e8c6a1b0bd916a724724b638c3c91b6. Revert "Fix build after r193020." This reverts commit 558a35897f6b3ffbcaefde927c1f150b815d140a. Revert "Really fix build after r193020." This reverts commit e3748a79b523a8d365d4a33ef986eebb4186fa78. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@193030 0039d316-1c4b-4281-b951-d872f2087c98
* Rewrite std::string("") to std::string(), Linux edition.dcheng@chromium.org2013-04-091-2/+2
| | | | | | | | | | | | | | | | | This patch was generated by running the empty_string clang tool across the Chromium Linux compilation database. Implicitly or explicitly constructing std::string() with a "" argument is inefficient as the caller needs to emit extra instructions to pass an argument, and the constructor needlessly copies a byte into internal storage. Rewriting these instances to simply call the default constructor appears to save ~14-18 kilobytes on an optimized release build. BUG=none Review URL: https://codereview.chromium.org/13145003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@193020 0039d316-1c4b-4281-b951-d872f2087c98
* Convert net to use base::string16 instead of string16.brettw@chromium.org2013-03-291-74/+78
| | | | | | | | | | This is just a search-and-replace. BUG= Review URL: https://codereview.chromium.org/13329004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@191432 0039d316-1c4b-4281-b951-d872f2087c98
* Update sys_string_conversions includes in chrome_frame, content, net, and ui.brettw@chromium.org2013-03-281-1/+1
| | | | | | | | BUG= Review URL: https://codereview.chromium.org/13004021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@191172 0039d316-1c4b-4281-b951-d872f2087c98
* src/: Update the remaining include paths of string_split.h to its new location.tfarina@chromium.org2013-03-061-1/+1
| | | | | | | | | | BUG=175186 TBR=brettw@chromium.org Review URL: https://chromiumcodereview.appspot.com/12473004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@186462 0039d316-1c4b-4281-b951-d872f2087c98
* Move file_path.h to base/files.brettw@chromium.org2013-02-241-1/+1
| | | | | | TBR=sky git-svn-id: svn://svn.chromium.org/chrome/trunk/src@184344 0039d316-1c4b-4281-b951-d872f2087c98
* [net] Ignore Teredo addresses when determining IPv6 support.szym@chromium.org2013-02-211-0/+3
| | | | | | | | | | | | | | | | | On systems with only Teredo IPv6 addresses, Windows resolver does not make queries for AAAA DNS records. Therefore, we can safely resort to AF_INET-only lookups instead of AF_UNSPEC. This will make no difference when using the system resolver (getaddrinfo), but should reduce penalty on AsyncDNS which currently performs A/AAAA queries in series. BUG=171549 Review URL: https://chromiumcodereview.appspot.com/12296028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@183818 0039d316-1c4b-4281-b951-d872f2087c98
* Replace FilePath with base::FilePath in net.brettw@chromium.org2013-02-081-23/+24
| | | | | | Review URL: https://codereview.chromium.org/12218081 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@181543 0039d316-1c4b-4281-b951-d872f2087c98
* Move utf_offset_string_conversions and utf_string_conversion_utils to strings.brettw@chromium.org2013-02-071-11/+12
| | | | | | Review URL: https://codereview.chromium.org/12087115 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@181183 0039d316-1c4b-4281-b951-d872f2087c98
* Move string tokenizer to base/strings.brettw@chromium.org2013-02-021-5/+5
| | | | | | | | BUG= Review URL: https://codereview.chromium.org/12087091 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@180211 0039d316-1c4b-4281-b951-d872f2087c98
* Roll ICU and convert include style to standard Chromium style,phajdan.jr@chromium.org2013-01-071-7/+7
| | | | | | | | | | i.e. third_party/... BUG=165264 Review URL: https://codereview.chromium.org/11734021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@175399 0039d316-1c4b-4281-b951-d872f2087c98
* Move DecodeFilenameValue and DecodeExt value into http_content_disposition.asanka@chromium.org2012-12-151-286/+12
| | | | | | | | | BUG=none Review URL: https://chromiumcodereview.appspot.com/11471041 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173307 0039d316-1c4b-4281-b951-d872f2087c98
* Split GoogleURLTrackerInfoBarDelegate into its own .h/.cc. This will make ↵pkasting@chromium.org2012-10-061-0/+5
| | | | | | | | | | | | changes to it a little easier to understand. As part of this, added a StrippedHost() function to net_util.* to replace the one that used to be in google_url_tracker.cc. BUG=none TEST=none Review URL: https://codereview.chromium.org/11076003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@160535 0039d316-1c4b-4281-b951-d872f2087c98
* Delete some unused code found by -Wunused-functionthakis@chromium.org2012-10-011-0/+2
| | | | | | | | BUG=none,100309 Review URL: https://chromiumcodereview.appspot.com/10977073 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@159592 0039d316-1c4b-4281-b951-d872f2087c98
* Remove NetAddressToString/getnameinfo() in favour of GURLthorogood@chromium.org2012-09-181-32/+23
| | | | | | | | | | | This reroutes NetAddressToString in net_util.cc to use GURL's output methods instead. BUG=126212 Review URL: https://chromiumcodereview.appspot.com/10928079 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@157334 0039d316-1c4b-4281-b951-d872f2087c98
* Use GURL for stringifying IPEndPoint rather than the system network libraries.eroman@chromium.org2012-09-081-6/+67
| | | | | | | | BUG=126212 Review URL: https://chromiumcodereview.appspot.com/10910136 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@155569 0039d316-1c4b-4281-b951-d872f2087c98
* net: Fix more clang warnings about missing virtual and OVERRIDE annotations.tfarina@chromium.org2012-08-191-2/+2
| | | | | | | | | | BUG=115047 R=willchan@chromium.org Review URL: https://chromiumcodereview.appspot.com/10825437 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@152296 0039d316-1c4b-4281-b951-d872f2087c98
* [net/dns] Resolve AF_UNSPEC on dual-stacked systems. Sort addresses ↵szym@chromium.org2012-08-151-3/+23
| | | | | | | | | | | | | according to RFC3484. Original review: http://codereview.chromium.org/10442098/ BUG=113993 TEST=./net_unittests --gtest_filter=AddressSorter*:HostResolverImplDnsTest.DnsTaskUnspec Review URL: https://chromiumcodereview.appspot.com/10855179 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151750 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 151586 - [net/dns] Resolve AF_UNSPEC on dual-stacked systems. Sort ↵brettw@chromium.org2012-08-141-23/+3
| | | | | | | | | | | | | | addresses according to RFC3484. BUG=113993 TEST=./net_unittests --gtest_filter=AddressSorter*:HostResolverImplDnsTest.DnsTaskUnspec Review URL: https://chromiumcodereview.appspot.com/10442098 TBR=szym@chromium.org Review URL: https://chromiumcodereview.appspot.com/10855163 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151603 0039d316-1c4b-4281-b951-d872f2087c98