| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Previous, we were using GetHeaderParamValue to parse the Content-Disposition
header, which describes itself as a "quick and dirty implementation." After
this patch, we use more of our normal HTTP parsing machinery, making our
parsing much less quirky and better aligned with RFC 6266.
Some notes:
1) Many of the test cases for parsing the Content-Disposition header included
the string "Content-Disposition: " in the input. I've looked through all
of the callers of these functions, and that seems to be completely bogus.
The old parser wasn't careful enough to see that as a problem, but the new
one follows the spec more closely. I've updated the test cases to remove
this string.
2) After this patch, there's a bunch of code in net_util.cc that really should
be moved to http_content_disposition.cc. I didn't move that code in this
patch because I didn't want this path to be too large. I'll move it in a
future patch.
3) In a future patch, I'll audit the codebase for callers of
GetHeaderParamValue. With any luck, we'll be able to remove them all and
delete this less-than-amazing function.
BUG=65423
Review URL: http://codereview.chromium.org/9234055
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119378 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
| |
This API wasn't tested at all.
BUG=72001
TEST=net_unittests
Review URL: http://codereview.chromium.org/9169091
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119363 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
| |
changes to SPDY code to support enabling or disabling
flow_control independent of NPN protocol negotiated.
TEST=network unit tests
R=wtc
Review URL: http://codereview.chromium.org/9252029
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119360 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
| |
CID=100673
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/9290029
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119347 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
| |
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119250 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
and hide LeakyLazyInstanceTraits in base::internal to discourage cargo-culting
new users.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/9117038
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119173 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
| |
BUG=None
TEST=
Review URL: http://codereview.chromium.org/9288034
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119155 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
| |
CID=102809
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/9289026
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119154 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
DnsClient::Request ==> DnsTransaction
DnsTransaction ==> DnsTransactionImpl
DnsClient ==> DnsTransactionFactory
BUG=109949
TEST=net_unittests --gtest_filter=Dns*
Review URL: http://codereview.chromium.org/9190031
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119146 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
| |
CID=102811
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/9271046
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119141 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
| |
BUG=107056
TEST="Delete cookies and other site and plug-in data" option in Clear
Browsing Data dialog should clear origin bound certs.
Review URL: https://chromiumcodereview.appspot.com/9120001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119084 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(broke in r108543).
Refactor test DB code so that nss_util owns the test DB dir.
Keeping the test DB dir until exit prevents later tests that would use the test DB from failing. The dir will still be deleted by the LazyInstance atexit handler.
BUG=108748
TEST=see bug
Review URL: http://codereview.chromium.org/9255034
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119003 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
| |
BUG=110798
TEST=net_unittests
Review URL: http://codereview.chromium.org/9113036
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118965 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
through HTTPS Proxies. This also changes the mechanism used
to restart HttpProxyClientSocket requests with auth. Previously
the transport socket would be Disconnected, and then re-Connected
(which was not implemented for SSLClientSockets). However, the
approach was problematic in the face of, for example, ipv6. The
new approach is to close the HttpProxyClientSocket, and request
a new socket from the pool.
Initially was http://codereview.chromium.org/8502024
which turned out to have problems with NTLM auth.
Review URL: http://codereview.chromium.org/9148011
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118950 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This is a follow-up patch based on wtc's comments on the earlier patch:
http://codereview.chromium.org/9270030/
BUG=72001
TEST=no logic change
Review URL: http://codereview.chromium.org/9284033
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118942 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This was added here:
http://src.chromium.org/viewvc/chrome/trunk/src/net/socket/ssl_client_socket_nss.cc?r1=118833&r2=118832&pathrev=118833
But that change was not in the review:
http://codereview.chromium.org/9131012
So I guess it was debug output not intended to be committed.
BUG=none
TEST=less logspam
TBR=agl
Review URL: https://chromiumcodereview.appspot.com/9283027
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118889 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Many variable names in the code are misleading or not descriptive.
In particular, next_element_* are misleading as these are referring
to the current element currently being read.
Along the way, add some comments, and clean up some pieces of code.
BUG=72001
TEST=run tests via try bots
Review URL: http://codereview.chromium.org/9212015
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118854 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Openssl 1.0.0 is const correct for SSL_METHOD - adding a temporary
const cast so we can land the new versin without a build break.
(Once that is in, we can switch the SSLState member to be const instead)
BUG=None
TEST=try servers remain green
Review URL: http://codereview.chromium.org/9129019
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118836 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Microsoft are providing a similar policy option and it looks like some
groups
may need it while their proxies are updated.
It's rather unfortunate that the underlying SSLConfigService member is
called
enable_false_start, but I don't want to conflate a clean up of that with
this
CL.
BUG=107728
TEST=none
http://codereview.chromium.org/9131012
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118833 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
| |
reverted r118506 since it is no longer applicable.
BUG=109876, 110368, 62364, 92244
Review URL: https://chromiumcodereview.appspot.com/9226039
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118788 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
UploadDataStream::MarkConsumedAndFillBuffer() may touch the file
system if the body data comes from a file.
BUG=72001,107966
TEST=added tests.
Review URL: http://codereview.chromium.org/9270030
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118769 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Converted the first 20 or so hits for LeakyLazyInstanceTraits on codesearch to
demonstrate the benefit at callsites. The real change is base/lazy_instance.h;
everything else is example.
BUG=none
TEST=none
Review URL: https://chromiumcodereview.appspot.com/9192024
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118754 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
| |
TBR=eroman@chromium.org
BUG=111029
TEST=CertDatabaseNSSTest.ImportCACertHierarchyTree
Review URL: https://chromiumcodereview.appspot.com/9200012
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118669 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Removes ref-counting from DelayedSocketData and OrderedSocketData.
- Calls CompleteRead (which reads from underlying data) only if
a Socket::Read call is "blocked" (previously returned with ERR_IO_PENDING).
- Removes unsafe pointers to the handed out sockets (the factory does not own them and cannot guarantee their lifetime).
BUG=110626
TEST=./net_unittests --gtest_filter=Spdy*:Http*:Socket*:WebSocket*:Ftp*
Review URL: http://codereview.chromium.org/9251019
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118634 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The two code paths perform the send-body operation differently.
Split it to separate functions to make the code easier to read.
BUG=72001
TEST=net_unittests passed as before.
Review URL: http://codereview.chromium.org/9252035
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118632 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
in Send/Recv IO completion callbacks should only apply to STATE_HANDSHAKE
After transport I/O completes synchronously, stay in the handshake
loop only if the next state is STATE_HANDSHAKE, which is the only
state that requires transport I/O to make progress and the only state
that allow us to call OnHandshakeIOComplete in Send/Recv IO completion
callbacks.
The change is mainly from http://codereview.chromium.org/9172005.
BUG=109706
BUG=net_unittests::SSLClientSocketTest.*, should not be hung when running those tests.
Review URL: http://codereview.chromium.org/9138010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118626 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
| |
Noted by wtc in CL 9231029.
Review URL: http://codereview.chromium.org/9226022
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118603 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
| |
BUG=99766
R=wtc
TEST=network unit tests
Review URL: https://chromiumcodereview.appspot.com/9232019
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118595 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Re-lands r118489 but with static initializers removed.
BUG=25472, 107880
TEST=net_unittests
R=mmenke
Review URL: http://codereview.chromium.org/9226035
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118574 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The logic is meaty enough to be factored out.
Add unit tests along the way.
The original patch (crrev.com/118265) was reverted as it introduced
a new static initializer. This version fixed that problem by defining
the constant in the .h file. To be extra careful, replaced
kChunkBufferSize with a member variable chunk_buffer_size_.
BUG=72001
TEST=add unit tests. run tools/linux/dump-static-initializers.py locally to confirm that new static initializers are not introduced.
Review URL: http://codereview.chromium.org/9176009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118566 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
| |
Reduces the poll interval for success to 12 hours, and for failures to a maximum of 4 hours.
BUG=110551
Review URL: https://chromiumcodereview.appspot.com/9255033
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118551 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
SSL_ForceHandshake returns wrong positive results after sending
pending data. See https://bugzilla.mozilla.org/show_bug.cgi?id=718554.
Fortunately this bug doesn't affect Chromium because Chromium
compares the return value of SSL_ForceHandshake with SECSuccess (0).
R=agl@chromium.org
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/9265015
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118547 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
"""
Adds custom ttl argument to HostCache::Set.
BUG=25472,107880
TEST=net_unittests
Review URL: http://codereview.chromium.org/9197009
TBR=szym@chromium.org
Review URL: https://chromiumcodereview.appspot.com/9138039
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118512 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This instrumentation checks to see if a deleted ClientSocketPoolBaseHelper::Group is being re-used. If it catches a use-after-free of this class then it will save the callstack where the deletion occurred into the mini-dump, for manual inspection by bug investigator.
BUG=109876
Review URL: http://codereview.chromium.org/9207014
TBR=eroman@chromium.org
Review URL: https://chromiumcodereview.appspot.com/9226030
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118511 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This will help track down the origin of a use-after-free bug.
BUG=109876
Review URL: http://codereview.chromium.org/9240036
TBR=eroman@chromium.org
Review URL: https://chromiumcodereview.appspot.com/9271013
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118510 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
| |
maxium number of sockets.
BUG=109876
Review URL: http://codereview.chromium.org/9226011
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118506 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
| |
BUG=25472,107880
TEST=net_unittests
Review URL: http://codereview.chromium.org/9197009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118489 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
| |
splitting.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118473 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
| |
BUG=110651
TEST=
Review URL: https://chromiumcodereview.appspot.com/9159005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118416 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
| |
otherwise open_sans.woff doesn't get loaded (not sure why)
BUG=none
TEST=open sans is used
Review URL: https://chromiumcodereview.appspot.com/9254001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118402 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
STATE_HANDSHAKE.
After transport I/O completes synchronously, stay in the handshake
loop only if the next state is STATE_HANDSHAKE, which is the only
state that requires transport I/O to make progress. If the next state
is any other state, we should ignore network_moved when determing if we
should stay in the handshake loop.
This changelist is the SSLServerSocketNSS version of
http://codereview.chromium.org/9172005. SSLServerSocketNSS doesn't
need this change now because it has no other handshake states, but
this change will make it future-proof.
Also remove unnecessary net:: prefixes.
R=agl@chromium.org
BUG=109706
TEST=existing unit tests for SSLServerSocket should continue to pass
Review URL: http://codereview.chromium.org/9250031
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118356 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
| |
BUG=102970
TEST=net_unittests
Review URL: http://codereview.chromium.org/9241028
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118346 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
| |
This is in preparation for destroying singletons between each test.
BUG=110594
TEST=Test suites.
Review URL: http://codereview.chromium.org/9255020
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118320 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(This is a reland of r118099 which was reverted in r118149 because it
changed intermediate XMLHttpRequest events - breaking layout tests.
We not don't free the request_body_ so that we continue to generate the
same intermediate events.)
When sending a small POST message we currently do two writes: one for the
headers and one for the body. With 1/n-1 record splitting, this results in four
TLS records when the connection uses CBC.
Plesk correctly handles record splitting in HTTP headers, but incorrectly
assumes that the entire POST body is in a single TLS record. Thus record
splitting causes Chrome to be unable to log into Plesk (or perform any other
action that requires a POST.)
IE and Firefox 10 also do record splitting, but they merge the headers and body
so there's only a single split after the first byte of the headers and Plesk
can handle this.
Our histogram data suggests that ~4% of requests can be merged in the fashion
of this patch, so it seems independently worthwhile to do this.
BUG=107966
TEST=none
Review URL: http://codereview.chromium.org/9133007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118298 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Factor out chunk encoding logic into HttpStreamParser::EncodeChunk().
The logic is meaty enough to be factored out.
Add unit tests along the way.
BUG=72001
TEST=add unit tests.
Review URL: http://codereview.chromium.org/9242018
TBR=satorux@chromium.org
Review URL: https://chromiumcodereview.appspot.com/9264010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118295 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The logic is meaty enough to be factored out.
Add unit tests along the way.
BUG=72001
TEST=add unit tests.
Review URL: http://codereview.chromium.org/9242018
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118265 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This shouldn't change the behavior, as chunk_lengths_ is
guaranteed to be zero at the two places, as wtc pointed out.
BUG=72001
TEST=run tests.
Review URL: http://codereview.chromium.org/9232032
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118227 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
would hang indefinitely, and a logging bug from the same original
CL, add unit test.
Buggy commit: http://codereview.chromium.org/8898008/
R=wtc@chromium.org
BUG=93326
Review URL: http://codereview.chromium.org/9240012
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118210 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This function is relatively complex. Add comments to clarify
what this function does. Will clean up the code in a separate patch.
BUG=72001
TEST=chrome and tests build as before.
Review URL: http://codereview.chromium.org/9213018
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118193 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
hours, old: 2 minutes).
The poll intervals are now as follows:
In response to a failure fetching the PAC script:
8 seconds
32 seconds
2 minutes
2 hours
2 hours
... (2 hours)
In response to a success fetching the PAC script:
2 minutes
2 hours
2 hours
... (2 hours)
BUG=110551
Review URL: http://codereview.chromium.org/9255023
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118180 0039d316-1c4b-4281-b951-d872f2087c98
|