summaryrefslogtreecommitdiffstats
path: root/net
Commit message (Collapse)AuthorAgeFilesLines
* Move URLFetcherImpl to net/akalin@chromium.org2012-06-155-3/+1538
| | | | | | | | | | | | | | Add some TODOs for follow-up tasks. Leave URLFetcher::Create in content, but move it to url_fetcher.cc. BUG=118220 TEST= Review URL: https://chromiumcodereview.appspot.com/10534154 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@142355 0039d316-1c4b-4281-b951-d872f2087c98
* implement HaveOnlyLoopbackAddresses() for androidjames.wei@intel.com2012-06-155-1/+48
| | | | | | | | | | BUG=132033 TEST= Review URL: https://chromiumcodereview.appspot.com/10532080 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@142354 0039d316-1c4b-4281-b951-d872f2087c98
* DnsWatcherThread should be named "DnsWatcher", not "NetworkChangeNotifier".wtc@chromium.org2012-06-152-2/+2
| | | | | | | | | | R=szym@chromium.org BUG=none TEST=none Review URL: https://chromiumcodereview.appspot.com/10546182 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@142344 0039d316-1c4b-4281-b951-d872f2087c98
* SPDY - Added SETTINGS_MAX_CONCURRENT_STREAMS:1000 in the initial SETTINGS frame,rtenneti@google.com2012-06-1414-21/+146
| | | | | | | | | | | | | | so the server can push effectively as many streams as it wants to. - Send along SETTINGS_MAX_CONCURRENT_STREAMS for SPDY versions 2 and higher. - Avoid sending the Settings frame for every unit tests. R=willchan BUG=132341 TEST=netowrk unit tests Review URL: https://chromiumcodereview.appspot.com/10536136 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@142265 0039d316-1c4b-4281-b951-d872f2087c98
* Adjust the expectations of unit tests after the dod_ca_17_cert.derwtc@chromium.org2012-06-141-23/+22
| | | | | | | | | | | | | | and dod_ca_13_cert.der certificates expired. This is just a short-term solution. R=mattm@chromium.org BUG=132781,111029 TEST=net_unittests should pass on Linux. Review URL: https://chromiumcodereview.appspot.com/10548053 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@142254 0039d316-1c4b-4281-b951-d872f2087c98
* Don't crash when confronted with many set-cookie headers.shalev@chromium.org2012-06-144-25/+154
| | | | | | | | | | | Process cookies in a loop instead of via recursion when SetCookieWithOptionsAsync completes synchronously. BUG=109388 TEST=URLRequestTestHTTP.GetTest_ManyCookies Review URL: https://chromiumcodereview.appspot.com/10447092 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@142253 0039d316-1c4b-4281-b951-d872f2087c98
* SPDY: Set initial max concurrent streams to 100willchan@chromium.org2012-06-141-1/+1
| | | | | | | | | | | | Currently we default to 10 concurrent client initiated streams, due to lame SPDY servers. Firefox 13 has gone default with with a much higher default, so we're going to raise ours too since SPDY servers seem to be able to handle them (the lame server in question just sends a SETTINGS frame after the first roundtrip that lowers the stream limit to 10). BUG=132799 TEST=none Review URL: https://chromiumcodereview.appspot.com/10535171 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@142228 0039d316-1c4b-4281-b951-d872f2087c98
* NetLogEventParameter to Callback refactoring 9.mmenke@chromium.org2012-06-1422-361/+312
| | | | | | | | | | | Get rid of all uses of NetLogEventParameters in net/socket. R=eroman@chromium.org BUG=126243 Review URL: https://chromiumcodereview.appspot.com/10546162 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@142224 0039d316-1c4b-4281-b951-d872f2087c98
* NetLogEventParameter to Callback refactoring 7.mmenke@chromium.org2012-06-147-176/+133
| | | | | | | | | | | Get rid of all uses of NetLogEventParameters in net/proxy. R=eroman@chromium.org BUG=126243 Review URL: https://chromiumcodereview.appspot.com/10534132 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@142222 0039d316-1c4b-4281-b951-d872f2087c98
* NetLogEventParameter to Callback refactoring 11. mmenke@chromium.org2012-06-142-0/+21
| | | | | | | | | | | | | Get rid of all uses of NetLog::EventParameters in all remaining locations (downloads, appcache, io thread, chrome_network_delegate. R=eroman@chromium.org,rdsmith@chromium.org,michaeln@chromium.org BUG=126243 Review URL: https://chromiumcodereview.appspot.com/10542153 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@142217 0039d316-1c4b-4281-b951-d872f2087c98
* Make HttpStream take a scoped_ptr<UploadDataStream>, to clearly communicate ↵rsleevi@chromium.org2012-06-1417-194/+275
| | | | | | | | | | | | | | | | | | | transfer of ownership HttpStream assumes ownership of the passed in UploadDataStream when SendRequest is called. However, there existed a few call sites where the passed in UploadDataStream may have been leaked, primarily during error handling. Using scoped_ptr<> & Pass() provide clear API-level contracts as to the ownership of pointers. BUG=none TEST=existing R=willchan@chromium.org Review URL: https://chromiumcodereview.appspot.com/10539137 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@142211 0039d316-1c4b-4281-b951-d872f2087c98
* NetLogEventParameter to Callback refactoring 8.mmenke@chromium.org2012-06-148-87/+65
| | | | | | | | | | | | | Get rid of all uses of NetLogEventParameters in: net/socket_stream, net/websockets, net/base. R=eroman@chromium.org BUG=126243 Review URL: https://chromiumcodereview.appspot.com/10548028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@142202 0039d316-1c4b-4281-b951-d872f2087c98
* Add "crash_test" feature to DNS fuzz stub.ttuttle@chromium.org2012-06-141-20/+29
| | | | | | | | | | | The DNS fuzz stub will now segfault on purpose if you give it a test case with a key named "crash_test" in the top-level dictionary. This is so we can purposefully crash the stub and make sure cluster-fuzz detects the crash. BUG=130751 TEST=Manual; crashes with the right key. Review URL: https://chromiumcodereview.appspot.com/10538086 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@142192 0039d316-1c4b-4281-b951-d872f2087c98
* Add the --ssl-version-min and --ssl-version-max command-line options.wtc@chromium.org2012-06-141-2/+4
| | | | | | | | | | | | | For example, --ssl-version-min=tls1 --ssl-version-max=tls1.1 enables TLS 1.0 ~ TLS 1.1. R=agl@chromium.org,rsleevi@chromium.org BUG=126340 TEST=unit_tests --gtest_filter=SSLConfigServiceManagerPrefTest.* Review URL: https://chromiumcodereview.appspot.com/10539126 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@142185 0039d316-1c4b-4281-b951-d872f2087c98
* [net/dns] If the only name server is 0.0.0.0:53 assume DnsConfig is invalid.szym@chromium.org2012-06-142-2/+33
| | | | | | | | | | | | | When /etc/resolv.conf has no "nameserver" entries, res_ninit will default to a single server: 0.0.0.0:53. BUG=130808 TEST=./net_unittests --gtest_filter=DnsConfigServicePosixTest.RejectDefaultNameserver Review URL: https://chromiumcodereview.appspot.com/10546081 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@142166 0039d316-1c4b-4281-b951-d872f2087c98
* Disable three CertDatabaseNSSTests to green the tree.szym@chromium.org2012-06-141-3/+3
| | | | | | | | | | BUG=132781 TEST=./net_unittests --gtest_filter=CertDatabaseNSStest.* NOTRY=true Review URL: https://chromiumcodereview.appspot.com/10532144 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@142159 0039d316-1c4b-4281-b951-d872f2087c98
* Select the first protocol from the next protocol list of SSLConfig if If we ↵jnd@chromium.org2012-06-141-20/+19
| | | | | | | | | | | | | didn't find a protocol. It's possible that there is no overlap between the server advertised protocols and SSL client advertised protocols. And Server even can give a empty protocol list in NPN extension in a ServerHello message. In this case, the SSL client should pick up the first protocol from the next protocol list of SSLConfig. BUG=131769 TEST=None Review URL: https://chromiumcodereview.appspot.com/10532061 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@142098 0039d316-1c4b-4281-b951-d872f2087c98
* [net/dns] Refactor DnsHostsReader to reduce unnecessary inheritance.szym@chromium.org2012-06-145-90/+76
| | | | | | | | | TEST=./net_unittests --gtest_filter=DnsConfigService.* Review URL: https://chromiumcodereview.appspot.com/10536150 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@142092 0039d316-1c4b-4281-b951-d872f2087c98
* NetLogEventParameter to Callback refactoring 4.mmenke@chromium.org2012-06-148-170/+136
| | | | | | | | | | | Get rid of all uses of NetLogEventParameters in net/udp and net/dns. R=eroman@chromium.org BUG=126243 Review URL: https://chromiumcodereview.appspot.com/10546133 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@142076 0039d316-1c4b-4281-b951-d872f2087c98
* Disk cache: Make sure that references to IO buffers arervargas@chromium.org2012-06-146-20/+66
| | | | | | | | | | | released before invoking the callbacks. BUG=131272 TEST=net_unittests Review URL: https://chromiumcodereview.appspot.com/10542068 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@142039 0039d316-1c4b-4281-b951-d872f2087c98
* Fix the ant warning of 'includeantruntime was not set' in android buildshouqun.liu@intel.com2012-06-131-1/+1
| | | | | | | | | | BUG= TEST= Review URL: https://chromiumcodereview.appspot.com/10543107 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@142029 0039d316-1c4b-4281-b951-d872f2087c98
* NetLogEventParameter to Callback refactoring 5.mmenke@chromium.org2012-06-138-187/+103
| | | | | | | | | | | Get rid of all uses of NetLogEventParameters in net/http. R=eroman@chromium.org BUG=126243 Review URL: https://chromiumcodereview.appspot.com/10534129 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@142009 0039d316-1c4b-4281-b951-d872f2087c98
* Do not treat weak keys (<1024 bits || MD5) as fatal errorsrsleevi@chromium.org2012-06-131-1/+21
| | | | | | | | | | | | | | | | | | A pending system update from Microsoft, detailed at http://blogs.technet.com/b/pki/archive/2012/06/12/rsa-keys-under-1024-bits-are-blocked.aspx will change the behaviour of CertGetCertificateChain such that it will appropriately flag weak keys in the CERT_TRUST_STATUS.dwError field. To avoid mapping this to CERT_STATUS_INVALID, handle the new error code and map it to CERT_STATUS_WEAK_KEY. BUG=none TEST=net_unittests continue passing on Win when this change is released. Review URL: https://chromiumcodereview.appspot.com/10537153 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@142008 0039d316-1c4b-4281-b951-d872f2087c98
* A pair of NetLog changes for ongoing refactoring:mmenke@chromium.org2012-06-132-0/+22
| | | | | | | | | | | | | | | SourceEventParametersCallback returns NULL on invalid sources, like the old corresponding function. Add a NetLog::StringCallback overload that takes in a string16. R=eroman@chromium.org BUG=126243 Review URL: https://chromiumcodereview.appspot.com/10546151 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141993 0039d316-1c4b-4281-b951-d872f2087c98
* Adding logging functionality to the utility gdigdcastagna@google.com2012-06-134-5/+155
| | | | | | | | | | | | Added a new class FileNetLog that extends NetLog and prints all the events received on a stream. The utility gdig has been modified accordingly to use this new class for logging HostResolver events and print them out on the stderr. BUG=128212 TEST=build and run gdig with the parameter --net_log Review URL: https://chromiumcodereview.appspot.com/10536117 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141991 0039d316-1c4b-4281-b951-d872f2087c98
* NetLogEventParameter to Callback refactoring 6.mmenke@chromium.org2012-06-135-59/+40
| | | | | | | | | | | Get rid of all uses of NetLogEventParameters in net/url_request. R=eroman@chromium.org BUG=126243 Review URL: https://chromiumcodereview.appspot.com/10532121 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141981 0039d316-1c4b-4281-b951-d872f2087c98
* NetLogEventParameter to Callback refactoring 3.mmenke@chromium.org2012-06-136-421/+178
| | | | | | | | | | | Get rid of all uses of NetLogEventParameters in net/spdy. R=eroman@chromium.org BUG=126243 Review URL: https://chromiumcodereview.appspot.com/10532119 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141961 0039d316-1c4b-4281-b951-d872f2087c98
* Add an explicit function to init NSS for SSL server socketsrsleevi@chromium.org2012-06-134-11/+59
| | | | | | | | | | BUG=131622 TEST=tsan goes green for existing tests Review URL: https://chromiumcodereview.appspot.com/10543106 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141955 0039d316-1c4b-4281-b951-d872f2087c98
* Allow ERR_CONNECTION_RESET during the SSL handshake to trigger awtc@chromium.org2012-06-131-0/+17
| | | | | | | | | | | | TLS 1.1 -> TLS 1.0 fallback. R=agl@chromium.org,rsleevi@chromium.org BUG=130293,126340 TEST=none Review URL: https://chromiumcodereview.appspot.com/10493003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141941 0039d316-1c4b-4281-b951-d872f2087c98
* The server bound cert store might have a NULL persistent store, so check ↵jochen@chromium.org2012-06-131-1/+2
| | | | | | | | | | | | | | before accessing it This can happen for Incognito profiles for example BUG=131855 TEST=none Review URL: https://chromiumcodereview.appspot.com/10543134 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141928 0039d316-1c4b-4281-b951-d872f2087c98
* Move URLFetcherCore to net/akalin@chromium.org2012-06-133-0/+1420
| | | | | | | | | | BUG=118220 TEST= TBR=jam@chromium.org Review URL: https://chromiumcodereview.appspot.com/10543129 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141853 0039d316-1c4b-4281-b951-d872f2087c98
* Adds NetworkDelegate::NotifyBeforeSocketStreamConnect()bashi@chromium.org2012-06-1310-1/+128
| | | | | | | | | | | | | | | This function will be called before an WebSocket tries to connect. This function can do extra work such as policy checks to prevent the connect. ChromeNetworkDelegate implements the function to check URL blacklist. BUG=131046 TEST=net_unittests Review URL: https://chromiumcodereview.appspot.com/10541046 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141816 0039d316-1c4b-4281-b951-d872f2087c98
* Fix NetLog thread safety issue introduced inmmenke@chromium.org2012-06-131-1/+3
| | | | | | | | | | | | | http://codereview.chromium.org/10539094/. We weren't holding on to a reference for an x509Certificate passed to another thread for logging. BUG=126243 Review URL: https://chromiumcodereview.appspot.com/10534117 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141812 0039d316-1c4b-4281-b951-d872f2087c98
* Track sources of proxy settings.asanka@chromium.org2012-06-1219-35/+370
| | | | | | | | | | | | ProxyConfig keeps track of the source of proxy settings. During proxy resolution ProxyService tags the resulting ProxyInfo with the same source information. BUG=none TEST=net_unittests Review URL: https://chromiumcodereview.appspot.com/10310179 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141784 0039d316-1c4b-4281-b951-d872f2087c98
* Add a link to design doc for NetLog.eroman@chromium.org2012-06-121-0/+3
| | | | | | Review URL: https://chromiumcodereview.appspot.com/10546126 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141721 0039d316-1c4b-4281-b951-d872f2087c98
* [net/dns] Suppress multiple DnsConfig withdrawals after timeout.szym@chromium.org2012-06-123-5/+24
| | | | | | | | | | BUG=132110 TEST=net_unittests --gtest_filter=DnsConfigServiceTest.Timeout Review URL: https://chromiumcodereview.appspot.com/10537106 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141715 0039d316-1c4b-4281-b951-d872f2087c98
* NetLogEventParameter to Callback refactoring 2.mmenke@chromium.org2012-06-125-236/+186
| | | | | | | | | | | Get rid of all uses of NetLogEventParameters in net/disk_cache. R=eroman@chromium.org BUG=126243 Review URL: https://chromiumcodereview.appspot.com/10543114 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141697 0039d316-1c4b-4281-b951-d872f2087c98
* NetLogEventParameter to Callback refactoring 1,mmenke@chromium.org2012-06-1224-359/+241
| | | | | | | | | | | | Get rid of all uses of NetLogEventParameters in net/base, with the exception of net_log itself, of course. R=eroman@chromium.org BUG=126243 Review URL: https://chromiumcodereview.appspot.com/10539094 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141666 0039d316-1c4b-4281-b951-d872f2087c98
* Add functions used for building WebSocket frame data.yutak@chromium.org2012-06-124-0/+452
| | | | | | | | | | BUG=121052 TEST=none Review URL: https://chromiumcodereview.appspot.com/10384180 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141630 0039d316-1c4b-4281-b951-d872f2087c98
* Allow the omnibox to recognize as URLs inputs that have a host component ↵pkasting@chromium.org2012-06-123-9/+10
| | | | | | | | | | that ends with a hyphen. BUG=123732 TEST=Type in "kline-.github.com/NAMS" in the address bar and check that the default action is to navigate. Review URL: https://chromiumcodereview.appspot.com/10533102 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141621 0039d316-1c4b-4281-b951-d872f2087c98
* Add CookieMonster::SetEnableFileScheme and CookieMonster::IsCookieableSchemejgreenwald@chromium.org2012-06-122-7/+31
| | | | | | | | | | | | These two methods are used by Chrome on Android. BUG=115372 TEST= Review URL: https://chromiumcodereview.appspot.com/10382209 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141591 0039d316-1c4b-4281-b951-d872f2087c98
* enable android GetMimeTypeFromExtention in mime_utiljames.wei@intel.com2012-06-121-6/+0
| | | | | | | | | | | | corresponding JNI code already in upstream, this function can be enabled so. BUG=131804 TEST= Review URL: https://chromiumcodereview.appspot.com/10541073 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141574 0039d316-1c4b-4281-b951-d872f2087c98
* Reorganize dns_fuzz_stub a littlettuttle@chromium.org2012-06-111-37/+55
| | | | | | | | | | | | | | | Add the ability to run multiple test cases, if we wanted. Also, make sure we print #EOF regardless of how many test cases are processed. BUG=130751 TEST=Adhoc; prints #EOF when needed, runs multiple test cases Review URL: https://chromiumcodereview.appspot.com/10545124 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141553 0039d316-1c4b-4281-b951-d872f2087c98
* Change comment in SSL keylog file.agl@chromium.org2012-06-112-4/+7
| | | | | | | This addresses wtc's follow-up comment in https://chromiumcodereview.appspot.com/10509009/ git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141456 0039d316-1c4b-4281-b951-d872f2087c98
* Remove splendidbacon.com from HSTS list.agl@chromium.org2012-06-113-6/+0
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141444 0039d316-1c4b-4281-b951-d872f2087c98
* Add arivo.com.br to HSTS preloaded.agl@chromium.org2012-06-112-0/+2
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141441 0039d316-1c4b-4281-b951-d872f2087c98
* Mark TURKTRUST as an EV rootrsleevi@chromium.org2012-06-111-0/+6
| | | | | | | | | | BUG=117254 TEST=https://evssl.turktrust.com.tr shows as EV Review URL: https://chromiumcodereview.appspot.com/10541059 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141425 0039d316-1c4b-4281-b951-d872f2087c98
* SocketStream error handling improvementtoyoshim@chromium.org2012-06-111-13/+14
| | | | | | | | | | | | | - Optimize state transition - Report ERR_UNEXPECTED in appropriate paths BUG=129748 TEST=browser_tests net_unittests Review URL: https://chromiumcodereview.appspot.com/10538051 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141399 0039d316-1c4b-4281-b951-d872f2087c98
* Make NetLog take in callbacks that return Values rathermmenke@chromium.org2012-06-1025-493/+634
| | | | | | | | | | | | than refcounted objects. Avoids the need to create classes and copy data. Also no longer get time whenever an event is logged. BUG=126243 Review URL: https://chromiumcodereview.appspot.com/10399083 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141377 0039d316-1c4b-4281-b951-d872f2087c98
* Add a new OnHostResolutionCallback to TransportSocketParamsrch@chromium.org2012-06-0829-196/+494
| | | | | | | | | | | | Correctly implement OnHostResolution in HttpStreamFactoryImpl::Job BUG=106235 TEST=HttpNetworkTransactionSpdy\*Test.UseIPConnectionPoolingAfterResolution Review URL: https://chromiumcodereview.appspot.com/10238010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141328 0039d316-1c4b-4281-b951-d872f2087c98