summaryrefslogtreecommitdiffstats
path: root/net/base
Commit message (Collapse)AuthorAgeFilesLines
* base: Remove dereference structure operator (i.e ->) from ScopedVector.tfarina@chromium.org2012-06-302-4/+4
| | | | | | | | | BUG=128663 R=brettw@chromium.org,willchan@chromium.org Review URL: https://chromiumcodereview.appspot.com/10669038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@145073 0039d316-1c4b-4281-b951-d872f2087c98
* Remove SSLHostInfo.agl@chromium.org2012-06-271-1/+1
| | | | | | | BUG=105208 TEST=none git-svn-id: svn://svn.chromium.org/chrome/trunk/src@144468 0039d316-1c4b-4281-b951-d872f2087c98
* Register JNI methods before running unittests on android.nileshagrawal@chromium.org2012-06-271-0/+12
| | | | | | | | | | | | | A better way to implement: http://codereview.chromium.org/10658017/ BUG=125059 TEST= Review URL: https://chromiumcodereview.appspot.com/10668047 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@144374 0039d316-1c4b-4281-b951-d872f2087c98
* Do the Windows source file annotation at the end of the download.rdsmith@chromium.org2012-06-261-0/+4
| | | | | | | | | | | | This can also include handoffs to anti-virus scanners. BUG=127999 R=asanka@chromium.org Review URL: https://chromiumcodereview.appspot.com/10636030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@144275 0039d316-1c4b-4281-b951-d872f2087c98
* Add (*.)www.cueup.com to HSTS preloaded list.agl@chromium.org2012-06-263-6/+28
| | | | | | | Also correct an error that I made in a the last set of entries and add a test to prevent it happening again. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@144232 0039d316-1c4b-4281-b951-d872f2087c98
* Convert SSLClientSocketNSS to use the NSS Channel ID callback.mattm@chromium.org2012-06-266-10/+25
| | | | | | | | | | BUG=129174,127506 TEST=run a TLS Channel ID supporting server, try connecting to it. TBR=joi@chromium.org Review URL: https://chromiumcodereview.appspot.com/10560020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@144093 0039d316-1c4b-4281-b951-d872f2087c98
* [net] Record JobQueueTime and TotalTime histograms.szym@chromium.org2012-06-251-16/+94
| | | | | | | | | | | | | | | | JobQueueTime* histograms are split by priority and JobQueueTimeAfterChange is measured after last priority change. TotalTime is split by whether the Request is speculative or not. All histograms include 0s, corresponding to when the queue is empty, and a request can be resolved synchronously respectively. All histograms are split into DNS and AsyncDNS depending on whether valid DnsConfig was present at creation time. BUG=124346,134512 TEST=chrome://histograms Review URL: https://chromiumcodereview.appspot.com/10596007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@144027 0039d316-1c4b-4281-b951-d872f2087c98
* Tests handling in DNS RRResolver; cosmetic cleanuparuslan@chromium.org2012-06-233-5/+12
| | | | | | | | | | BUG= TEST= Review URL: https://chromiumcodereview.appspot.com/10636013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@143766 0039d316-1c4b-4281-b951-d872f2087c98
* Workaround for Android getaddrinfo bug.aruslan@chromium.org2012-06-221-0/+7
| | | | | | | | | BUG=134142 Review URL: https://chromiumcodereview.appspot.com/10634035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@143715 0039d316-1c4b-4281-b951-d872f2087c98
* Add script.google.com to HSTS preloaded.agl@chromium.org2012-06-212-0/+2
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@143404 0039d316-1c4b-4281-b951-d872f2087c98
* Add netwatcher command-line utility that watches and logs network eventsakalin@chromium.org2012-06-201-8/+12
| | | | | | | | | | | | | | | | | | | | | Running netwatcher just creates a NetworkChangeNotifier and a ProxyConfigService and registers the NetWatcher class as observers for them. NetWatcher then logs whenever it receives an event from the NetworkChangeNotifier or ProxyConfigService. This is so that developers can quickly get an idea of what events are triggered when. It may also be useful for nailing down platform differences. Also clean up network_change_notifier.h a bit. BUG=106034 TEST= Review URL: https://chromiumcodereview.appspot.com/10578027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@143301 0039d316-1c4b-4281-b951-d872f2087c98
* Add www.apollo-auto.com as HSTS preloaded.agl@chromium.org2012-06-202-0/+2
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@143195 0039d316-1c4b-4281-b951-d872f2087c98
* [net] Implement MappedHostResolver::ResolveFromCache.szym@chromium.org2012-06-202-12/+17
| | | | | | | | | | BUG=133608 TEST=./net_unittests --gtest_filter=MappedHostResolverTest.* Review URL: https://chromiumcodereview.appspot.com/10581032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@143148 0039d316-1c4b-4281-b951-d872f2087c98
* [net/dns] Instrument DnsConfigService to measure performance and failures.szym@chromium.org2012-06-191-3/+2
| | | | | | | | | BUG=125599 TEST=chrome://histograms Review URL: https://chromiumcodereview.appspot.com/10543168 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@143051 0039d316-1c4b-4281-b951-d872f2087c98
* [net/dns] Histograms for the reasons DnsTransaction failed.szym@chromium.org2012-06-193-83/+121
| | | | | | | | | | | | Also, do not attempt to use DnsTransaction if the hostname is in the .local (mDNS) domain. BUG=117770 TEST=chrome://histograms Review URL: https://chromiumcodereview.appspot.com/10562023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@143022 0039d316-1c4b-4281-b951-d872f2087c98
* Consider the verification time as well as the expiration time when caching ↵rsleevi@chromium.org2012-06-196-45/+220
| | | | | | | | | | | | | | | | | | | | | | | | certificate verifications. When caching certificate verification results, rather than simply considering whether the current tick count (monotonically increasing) is greater than or equal to the expiration tick count, consider the actual (system) time of the verification when it was cached in addition to the configurated expiration time. This will cause cached certificate verification results to be considered expired, and thus re-validated, if the user adjusts the system clock. Since certificate verification results are dependent upon the system clock (eg: they may not be valid yet or may be expired, based on what the system clock says), this is the desired behavior. BUG=132124 TEST=net_unittests Review URL: https://chromiumcodereview.appspot.com/10556022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@143020 0039d316-1c4b-4281-b951-d872f2087c98
* (Finally) Remove NetLog::EventParameters.mmenke@chromium.org2012-06-193-203/+6
| | | | | | | | | R=eroman@chromium.org BUG=126243 Review URL: https://chromiumcodereview.appspot.com/10565009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@142953 0039d316-1c4b-4281-b951-d872f2087c98
* NetLogEventParameter to Callback refactoring 10.mmenke@chromium.org2012-06-192-0/+15
| | | | | | | | | | | Get rid of all uses of NetLog::EventParameters in chrome/browser/extensions/api/web_request R=eroman@chromium.org,battre@chromium.org BUG=126243 Review URL: https://chromiumcodereview.appspot.com/10545172 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@142916 0039d316-1c4b-4281-b951-d872f2087c98
* implement HaveOnlyLoopbackAddresses() for androidjames.wei@intel.com2012-06-152-1/+7
| | | | | | | | | | 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
* 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
* 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
* NetLogEventParameter to Callback refactoring 8.mmenke@chromium.org2012-06-143-30/+30
| | | | | | | | | | | | | 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 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
* 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
* Disk cache: Make sure that references to IO buffers arervargas@chromium.org2012-06-141-6/+9
| | | | | | | | | | | 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
* 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
* Add an explicit function to init NSS for SSL server socketsrsleevi@chromium.org2012-06-131-0/+5
| | | | | | | | | | 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
* 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
* Adds NetworkDelegate::NotifyBeforeSocketStreamConnect()bashi@chromium.org2012-06-132-0/+17
| | | | | | | | | | | | | | | 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
* 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
* NetLogEventParameter to Callback refactoring 1,mmenke@chromium.org2012-06-1214-341/+212
| | | | | | | | | | | | 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
* 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
* 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
* 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
* Make NetLog take in callbacks that return Values rathermmenke@chromium.org2012-06-106-244/+352
| | | | | | | | | | | | 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-081-1/+2
| | | | | | | | | | | | 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
* CapturingNetLog - remove maximum entries constructor argument.mmenke@chromium.org2012-06-083-17/+11
| | | | | | | | | | | | Also replace with a NULL NetLog in a couple callsites where it wasn't being used. R=eroman@chromium.org BUG=none Review URL: https://chromiumcodereview.appspot.com/10546071 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141315 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "Add field trial for domain bound certificates." The field trial is ↵mattm@chromium.org2012-06-082-11/+0
| | | | | | | | | | | | | | done. This reverts commit r133151. BUG=124105 TEST=none Review URL: https://chromiumcodereview.appspot.com/10544015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141284 0039d316-1c4b-4281-b951-d872f2087c98
* Move CapturingNetLog over to net_test_support from net.mmenke@chromium.org2012-06-081-8/+5
| | | | | | | | | R=eroman@chromium.org BUG=none Review URL: https://chromiumcodereview.appspot.com/10532067 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141265 0039d316-1c4b-4281-b951-d872f2087c98
* Add the SOCKET_READ_ERROR and SOCKET_WRITE_ERROR events to NetLogwtc@chromium.org2012-06-071-0/+9
| | | | | | | | | | | | to log TCPClientSocket::Read and TCPClientSocket::Write errors. R=eroman@chromium.org,mmenke@chromium.org BUG=130829 TEST=none Review URL: https://chromiumcodereview.appspot.com/10546012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141092 0039d316-1c4b-4281-b951-d872f2087c98
* Introduce a delegate to avoid hardcoding "chrome-extension" in net/.joi@chromium.org2012-06-072-0/+10
| | | | | | | | | | | | | Also, deal with a couple of TODOs in the throttling code, and remove metrics we no longer need since we are no longer running field trials for this code. BUG=119760 Review URL: https://chromiumcodereview.appspot.com/10440119 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141000 0039d316-1c4b-4281-b951-d872f2087c98
* Move function for classifying a string as a mime type into MimeUtilgbillock@chromium.org2012-06-063-0/+89
| | | | | | | | | | | R=rvargas@chromium.org BUG=None TEST=MimeUtilTest.* Review URL: https://chromiumcodereview.appspot.com/10448109 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@140657 0039d316-1c4b-4281-b951-d872f2087c98
* Unwire the clear on exit preference from the storage systems.jochen@chromium.org2012-06-054-5/+17
| | | | | | | | | | | | | The "session only" rules should cover the functionality now UI changes and migration code will follow BUG=129349 TEST=added unit tests for the chrome/browser/net/sqlite* classes Review URL: https://chromiumcodereview.appspot.com/10447117 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@140502 0039d316-1c4b-4281-b951-d872f2087c98
* Fixing gcc 4.7 building problems.shenhan@google.com2012-06-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | a) - gcc-4.7 improved the implicit headers that it includes. with <4.7, the gthr-default.h file always pulls in unistd.h. with >=4.7, they avoided that include when possible. so code that isn't including unistd.h itself but needs it now breaks. b) - narrowing conversion in initiliazation list now raises an 'ill-formed conversion' warning, which causes error when -Werror is given. [THIS PART IS NOW REVERTED IN THE PATCH} c) - included patches from pastebin - http://pastebin.com/raw.php?i=p3UKs7Cg Note - this may not be fixing all the gcc 4.7 build problems for all parts, but rather than submitting one big-fix-for-all CL, we'd better do it incrementally (given that all the modification is reasonable and minor) so that at least some parts get a successful gcc 4.7 build. BUG=None TEST=Built successfully using GCC-4.7 under chromium chroot Review URL: https://chromiumcodereview.appspot.com/10451068 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@140470 0039d316-1c4b-4281-b951-d872f2087c98
* Use ByteStream in downloads system to decouple source and sink.rdsmith@chromium.org2012-06-041-3/+5
| | | | | | | | | | | BUG=123192 BUG=93006 BUG=111588 Review URL: https://chromiumcodereview.appspot.com/10392111 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@140328 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 140300 - Remove splendidbacon.com from HSTS preload.acolwell@chromium.org2012-06-042-0/+2
| | | | | | | | | | The site is shutting down: http://blog.kiskolabs.com/post/20108267834/the-regrettable-end-of-splendid-bacon TBR=agl@chromium.org Review URL: https://chromiumcodereview.appspot.com/10479011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@140305 0039d316-1c4b-4281-b951-d872f2087c98