summaryrefslogtreecommitdiffstats
path: root/net
Commit message (Collapse)AuthorAgeFilesLines
* Deinline even more destructors.erg@google.com2010-12-1412-17/+40
| | | | | | | | | BUG=none TEST=compiles Review URL: http://codereview.chromium.org/5794003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69084 0039d316-1c4b-4281-b951-d872f2087c98
* Even more virtual method deinlining.erg@google.com2010-12-1312-27/+55
| | | | | | | | | BUG=none TEST=compiles Review URL: http://codereview.chromium.org/5741001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69041 0039d316-1c4b-4281-b951-d872f2087c98
* Track the amount of time chrome spends verifying the certificate.mbelshe@chromium.org2010-12-132-1/+15
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/5652002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69030 0039d316-1c4b-4281-b951-d872f2087c98
* Histogram target for each HTTP Authentication Scheme.cbentzel@chromium.org2010-12-139-12/+101
| | | | | | | | | | | | | For each HTTP authentication scheme, record whether it was started for a proxy, a secure proxy, a server, or a secure server. Also, use a new scheme-based enumerated value as an index rather than the score. BUG=None TEST=trybots, look at about:histograms after authenticating to different resources. Review URL: http://codereview.chromium.org/5563006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69018 0039d316-1c4b-4281-b951-d872f2087c98
* flip_in_mem_edsm_server: Fix friend declaration.hans@chromium.org2010-12-131-6/+6
| | | | | | | | | | | | | The friend function declaration ParseHTTPFirstLine must not be qualified, since it is introducing a new name, rather than referring to an already declared function. BUG=none TEST=flip_in_mem_edsm_server still builds Review URL: http://codereview.chromium.org/5675007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69009 0039d316-1c4b-4281-b951-d872f2087c98
* balsa_headers.h: remove redundant idx_ tests.hans@chromium.org2010-12-131-5/+2
| | | | | | | | | | | | | | idx_ is of type HeaderLines::size_type, which is std::vector<>::size_type, which is always unsigned. So idx_ >= 0 is always going to be true, and Clang warns about such tests. BUG=none TEST=flip_in_mem_edsm_server Review URL: http://codereview.chromium.org/5712006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69006 0039d316-1c4b-4281-b951-d872f2087c98
* Don't ignore return value from HANDLE_EINTR(close(...))hans@chromium.org2010-12-131-1/+1
| | | | | | | | | | | Clang complains about this unused return value. BUG=none TEST=snap_start_unittests Review URL: http://codereview.chromium.org/5797005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69000 0039d316-1c4b-4281-b951-d872f2087c98
* net: Add namespace net to URLRequestHttpJob.tfarina@chromium.org2010-12-135-158/+169
| | | | | | | | | BUG=64263 TEST=compiled locally and trybots Review URL: http://codereview.chromium.org/5682009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68986 0039d316-1c4b-4281-b951-d872f2087c98
* Rename all methods accessing Singleton<T> as GetInstance().satish@chromium.org2010-12-131-5/+5
| | | | | | | | | | | | | This is in preparation to a subsequent CL where Singleton<T> will restrict access to only the type being made singleton. I also moved pepper::ResourceTracker to a lazy instance since there were too many places in code where this class was being accessed from and this was a smaller change than renaming methods in that case. BUG=65298 TEST=all existing tests should pass. Review URL: http://codereview.chromium.org/5685007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68982 0039d316-1c4b-4281-b951-d872f2087c98
* Widen file access restriction suppressions in SSLConfigServiceWin. Changing ↵rsleevi@chromium.org2010-12-121-0/+2
| | | | | | | | | | | the enabled SSL/TLS versions or revocation checking require writing to the registry, and unfortunately may happen from the GUI thread. BUG=61455 TEST=none Review URL: http://codereview.chromium.org/5707005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68978 0039d316-1c4b-4281-b951-d872f2087c98
* net: Add namespace net to URLRequestDataJob.tfarina@chromium.org2010-12-123-9/+14
| | | | | | | | | BUG=64263 TEST=compiled locally and trybots Review URL: http://codereview.chromium.org/5804002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68972 0039d316-1c4b-4281-b951-d872f2087c98
* net: Add namespace net to URLRequestFileJob.tfarina@chromium.org2010-12-123-33/+41
| | | | | | | | | BUG=64263 TEST=trybots Review URL: http://codereview.chromium.org/5755004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68959 0039d316-1c4b-4281-b951-d872f2087c98
* net: Add namespace net to URLRequestFtpJob.tfarina@chromium.org2010-12-123-45/+53
| | | | | | | | | BUG=64263 TEST=trybots Review URL: http://codereview.chromium.org/5739005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68952 0039d316-1c4b-4281-b951-d872f2087c98
* net: Add namespace net to URLRequestAboutJob.tfarina@chromium.org2010-12-113-8/+16
| | | | | | | | | BUG=64263 TEST=trybots Review URL: http://codereview.chromium.org/5797003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68950 0039d316-1c4b-4281-b951-d872f2087c98
* Add some experiments for different policies on cwnd restore.mbelshe@chromium.org2010-12-111-7/+37
| | | | | | | | | BUG=none TEST=self Review URL: http://codereview.chromium.org/5687002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68938 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 68932 - Make members of Singleton<T> private and only visible to the ↵satish@chromium.org2010-12-1115-119/+90
| | | | | | | | | | | | | | | | | | singleton type. This enforces that the Singleton<T> pattern can only be used within classes which want singleton-ness. As part of this CL I have also fixed up files which got missed in my previous CLs to use a GetInstance() method and use Singleton<T> from the source file. There are a small number of places where I have also switched to LazyInstance as that was more appropriate for types used in a single source file. BUG=65298 TEST=all existing tests should continue to pass. Review URL: http://codereview.chromium.org/5682008 TBR=satish@chromium.org Review URL: http://codereview.chromium.org/5721005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68936 0039d316-1c4b-4281-b951-d872f2087c98
* net: Remove typedef net::URLRequestJob URLRequestJob;tfarina@chromium.org2010-12-1126-91/+91
| | | | | | | | | BUG=64263 TEST=compiled locally, trybots Review URL: http://codereview.chromium.org/5607004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68935 0039d316-1c4b-4281-b951-d872f2087c98
* Make members of Singleton<T> private and only visible to the singleton type. ↵satish@chromium.org2010-12-1115-90/+119
| | | | | | | | | | | | | | | This enforces that the Singleton<T> pattern can only be used within classes which want singleton-ness. As part of this CL I have also fixed up files which got missed in my previous CLs to use a GetInstance() method and use Singleton<T> from the source file. There are a small number of places where I have also switched to LazyInstance as that was more appropriate for types used in a single source file. BUG=65298 TEST=all existing tests should continue to pass. Review URL: http://codereview.chromium.org/5682008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68932 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 68899 - Disk cache: Remove the request throttling experiment.rvargas@google.com2010-12-101-1/+10
| | | | | | | | | | | | | | This is intended for the beta/stable branch. BUG=none TEST=none Review URL: http://codereview.chromium.org/5628006 TBR=rvargas@google.com Review URL: http://codereview.chromium.org/5700005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68900 0039d316-1c4b-4281-b951-d872f2087c98
* Disk cache: Remove the request throttling experiment.rvargas@google.com2010-12-101-10/+1
| | | | | | | | | | | This is intended for the beta/stable branch. BUG=none TEST=none Review URL: http://codereview.chromium.org/5628006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68899 0039d316-1c4b-4281-b951-d872f2087c98
* FTP: fix compatibility problems with MLSD by removing MLSD support.phajdan.jr@chromium.org2010-12-1023-637/+6
| | | | | | | | | | | | | | | | | | | | | | | | Some FTP servers send MLSD listings with no facts, just the file names. This is a valid RFC-3659 listing, but is useless for web browsers. In theory we could check whether a server advertises MLSD support in FEAT response, or use LIST when MLSD only returns file names, but the extra complexity is not worth it. All servers supporting MLSD must also support LIST, so this should not regress compatibility. This change also removes the "HPRC" directory listing parser. Actually, it was just MLSD listing with no facts. BUG=65328, 65584 TEST=net_unittests, also see the bugs Review URL: http://codereview.chromium.org/5669001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68859 0039d316-1c4b-4281-b951-d872f2087c98
* Explicitly whitelist the test server port.bauerb@chromium.org2010-12-104-9/+34
| | | | | | | | | BUG=65859 TEST=yes please Review URL: http://codereview.chromium.org/5519015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68853 0039d316-1c4b-4281-b951-d872f2087c98
* Adds first cut implementation of a private key store abstraction for openssljoth@chromium.org2010-12-107-14/+152
| | | | | | | | | | | | - this allows keygen created keys to be stored in a platform specific way, and looked up in client auth - still needs additional work in CertDatabase to fully implement client auth BUG=64917 TEST=Keygen unittest Review URL: http://codereview.chromium.org/5594009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68836 0039d316-1c4b-4281-b951-d872f2087c98
* When performing a SSL renegotiation handshake, do not send ↵rsleevi@chromium.org2010-12-103-31/+134
| | | | | | | | | | | | | | | | | | | Certificate/CertificateVerify messages unless the peer sends a CertificateRequest, requesting client auth. This would happen if the following conditions were true: - In the initial/previous handshake, the peer requests client authentication. - The client chooses a certificate, versus declining to provide one. - A (EC-)DHE cipher suite is negotiated. - The peer requests (secure) renegotiation. - The peer does NOT request a client certificate during the renegotiated handshake. R=wtc BUG=62027 TEST=none Review URL: http://codereview.chromium.org/5611005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68829 0039d316-1c4b-4281-b951-d872f2087c98
* Add more cwnd histograms - this type partitioned by amount of datambelshe@chromium.org2010-12-102-0/+26
| | | | | | | | | | | sent across the SpdySession. BUG=none TEST=none Review URL: http://codereview.chromium.org/5760002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68812 0039d316-1c4b-4281-b951-d872f2087c98
* Add a CHECK() to make sure thread creation succeeded.eroman@chromium.org2010-12-101-1/+1
| | | | | | | | We are getting some crashes later because of a NULL message loop, and this would confirm if thread start has been failng. Review URL: http://codereview.chromium.org/5755001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68796 0039d316-1c4b-4281-b951-d872f2087c98
* Add histogram to analyze sent cwnd settings for spdy.mbelshe@chromium.org2010-12-091-0/+14
| | | | | | | | | BUG=none TEST=na Review URL: http://codereview.chromium.org/5740001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68786 0039d316-1c4b-4281-b951-d872f2087c98
* Don't tweak buffer size for SPDYmbelshe@chromium.org2010-12-091-13/+0
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/5588011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68754 0039d316-1c4b-4281-b951-d872f2087c98
* Switch linux OpenSSL build to use custom openssl versionjoth@chromium.org2010-12-092-4/+5
| | | | | | | | | | | | This allows us to test experimental library features, and to track a known openssl version. Also bumps OpenSSL 65717:68738, to fix up the default CA root path in the reference library. BUG=None TEST=Still builds & runs! Review URL: http://codereview.chromium.org/5625012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68749 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 68696 - Disable SPDY by default as a test to see if heap corruption ↵willchan@chromium.org2010-12-092-5/+1
| | | | | | | | | | | | | | | | goes away. Will re-enable after a canary goes out with this off. BUG=65948 TEST=none Review URL: http://codereview.chromium.org/5592009 TBR=willchan@chromium.org Review URL: http://codereview.chromium.org/5727001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68747 0039d316-1c4b-4281-b951-d872f2087c98
* Start deinlining non-empty virtual methods. (This will be automatically checkederg@google.com2010-12-0933-109/+242
| | | | | | | | | | | for in the future.) BUG=none TEST=compiles Review URL: http://codereview.chromium.org/5574006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68746 0039d316-1c4b-4281-b951-d872f2087c98
* A ScopedNetLogEvent that logs a NetLog begin event on creation,mmenke@chromium.org2010-12-094-0/+82
| | | | | | | | | | | and the corresponding end event on destruction. BUG=64981 TEST=NetLog.ScopedNetLogEventTest Review URL: http://codereview.chromium.org/5560013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68742 0039d316-1c4b-4281-b951-d872f2087c98
* Add support for OpenSSL Next Protocol Negotiationbulach@chromium.org2010-12-092-2/+62
| | | | | | | | | | | | | (landing on behalf of kristianm, original patch: http://codereview.chromium.org/5528003/ ) BUG=none TEST=none Review URL: http://codereview.chromium.org/5678002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68734 0039d316-1c4b-4281-b951-d872f2087c98
* Add a new GetInstance() method for singleton classes under chrome/service ↵satish@chromium.org2010-12-0917-43/+97
| | | | | | | | | | | | | | | | | | | | and /net. This is a small step towards making all singleton classes use the Singleton<T> pattern within their code and not expect the callers to know about it. This CL includes files under chrome/service and /net with related files elsewhere. Suggested files to focus for reviewers: - @sanjeevr for chrome/common and chrome/service - @ukai for net/websockets - @agl for rest of net BUG=65298 TEST=all existing tests should continue to pass. Review URL: http://codereview.chromium.org/5634005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68722 0039d316-1c4b-4281-b951-d872f2087c98
* Disable SPDY by default as a test to see if heap corruption goes away.willchan@chromium.org2010-12-092-1/+5
| | | | | | | | | | | Will re-enable after a canary goes out with this off. BUG=65948 TEST=none Review URL: http://codereview.chromium.org/5592009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68696 0039d316-1c4b-4281-b951-d872f2087c98
* Http cache: Remove the option to disable byte range support.rvargas@google.com2010-12-095-79/+12
| | | | | | | | | | BUG=58323 TEST=current tests Review URL: http://codereview.chromium.org/5522014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68689 0039d316-1c4b-4281-b951-d872f2087c98
* Don't set SSLInfo on non-https requests. For SPDY with self-signed certsmbelshe@chromium.org2010-12-091-1/+4
| | | | | | | | | | this can lead to no caching. BUG=65809 TEST=none Review URL: http://codereview.chromium.org/5625011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68682 0039d316-1c4b-4281-b951-d872f2087c98
* Get rid of std::wstring version of HasSwitch.tfarina@chromium.org2010-12-081-4/+4
| | | | | | | | | BUG=24672 TEST=trybots Review URL: http://codereview.chromium.org/5649003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68650 0039d316-1c4b-4281-b951-d872f2087c98
* False Start blacklist: add giltcdn.comagl@chromium.org2010-12-081-0/+1
| | | | | | | | | This site has regressed sadly, but it's close enough to the Chrome 8 launch that I'm accepting it. BUG=65694 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68648 0039d316-1c4b-4281-b951-d872f2087c98
* Miscellaneous cleanup: remove unnecessary forwardwtc@chromium.org2010-12-083-41/+31
| | | | | | | | | | | | | | declarations and friend classes. Fix cpplint.py nits. Cancel() should do nothing if it has been called before. Remove all (rather than just the first) expired elements from the cache. R=agl BUG=none TEST=no compilation errors. Review URL: http://codereview.chromium.org/5611006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68623 0039d316-1c4b-4281-b951-d872f2087c98
* Fix cpplint.py nits.wtc@chromium.org2010-12-082-4/+4
| | | | | | | | | R=joth BUG=none TEST=no compilation errors. Review URL: http://codereview.chromium.org/5511015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68615 0039d316-1c4b-4281-b951-d872f2087c98
* Linux build fix.mbelshe@chromium.org2010-12-081-1/+1
| | | | | | | | | | BUG=none TEST=none TBR=willchan Review URL: http://codereview.chromium.org/5671001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68609 0039d316-1c4b-4281-b951-d872f2087c98
* Add the "virtual" keyword on method overrides that are missing it.erg@google.com2010-12-0813-58/+76
| | | | | | | | | BUG=none TEST=compiles Review URL: http://codereview.chromium.org/5648004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68606 0039d316-1c4b-4281-b951-d872f2087c98
* Add origin checking for server pushed resources.mbelshe@chromium.org2010-12-086-22/+232
| | | | | | | | | BUG=64108 TEST=PushedStream, ServerPushCrossOriginCorrectness Review URL: http://codereview.chromium.org/5516012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68605 0039d316-1c4b-4281-b951-d872f2087c98
* Fix OpenSSL buildjoth@chromium.org2010-12-081-3/+6
| | | | | | | | | | | - remapping the unknown protocol error code for consistency with NSS socket. BUG=None TEST=SSLClientSocketTest.PrematureApplicationData Review URL: http://codereview.chromium.org/5593005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68579 0039d316-1c4b-4281-b951-d872f2087c98
* Move more code from headers to implementation.erg@google.com2010-12-072-1/+3
| | | | | | | | | BUG=none TEST=compiles Review URL: http://codereview.chromium.org/5624002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68534 0039d316-1c4b-4281-b951-d872f2087c98
* Implements disabled cipher support for OpenSSL. ↵joth@chromium.org2010-12-074-35/+203
| | | | | | | | | | | | | (ssl_config_.disabled_cipher_suites) Also adds a more complete error code mapping table. BUG=None TEST=SSLClientSocketTest.CipherSuiteDisables Review URL: http://codereview.chromium.org/5592003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68495 0039d316-1c4b-4281-b951-d872f2087c98
* Implements keygen handler for openssl, but without private key persistencejoth@chromium.org2010-12-072-24/+37
| | | | | | | | | BUG=64917 TEST=net_unittest Keygen* Review URL: http://codereview.chromium.org/5541002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68470 0039d316-1c4b-4281-b951-d872f2087c98
* Also register read cookies in the content settings delegate.jochen@chromium.org2010-12-074-39/+64
| | | | | | | | | BUG=63663 TEST=unit tests Review URL: http://codereview.chromium.org/5318002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68458 0039d316-1c4b-4281-b951-d872f2087c98
* Initialize HttpStreamRequest::alternate_protocol_ to avoid Valgrind false ↵timurrrr@chromium.org2010-12-072-0/+2
| | | | | | | | | | reports BUG=64918 TEST=linux_valgrind trybot Review URL: http://codereview.chromium.org/5599004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68456 0039d316-1c4b-4281-b951-d872f2087c98