summaryrefslogtreecommitdiffstats
path: root/net
Commit message (Collapse)AuthorAgeFilesLines
* Fix QUIC alternate protocol behavior so that that main job does not waitrch@chromium.org2013-06-223-9/+86
| | | | | | | | for the QUIC job to finish. Review URL: https://chromiumcodereview.appspot.com/17247006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@208099 0039d316-1c4b-4281-b951-d872f2087c98
* Add logging to the QUIC write path.rch@chromium.org2013-06-228-12/+213
| | | | | | Review URL: https://chromiumcodereview.appspot.com/17518002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@208098 0039d316-1c4b-4281-b951-d872f2087c98
* Shuffle media-related WebMimeRegistry code from webkit/ to content/.scherkus@chromium.org2013-06-223-37/+20
| | | | | | | | | | TestShellWebMimeRegistryImpl has been replaced in lieu of content_shell calling net::RemoveProprietaryMediaTypesAndCodecsForTests(). BUG=251306 Review URL: https://chromiumcodereview.appspot.com/17447011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@208045 0039d316-1c4b-4281-b951-d872f2087c98
* Remove v6 address from QUIC host lookupsrch@chromium.org2013-06-221-0/+10
| | | | | | | | BUG= Review URL: https://chromiumcodereview.appspot.com/17518003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@208041 0039d316-1c4b-4281-b951-d872f2087c98
* Disable test with an expired certificatermsousa@chromium.org2013-06-221-2/+2
| | | | | | | | TBR=agl@chromium.org Review URL: https://codereview.chromium.org/17563009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207966 0039d316-1c4b-4281-b951-d872f2087c98
* Define a LoggingSettings struct to use for InitLogging()akalin@chromium.org2013-06-217-43/+31
| | | | | | | | | | | | | | | | | | Update all callers of InitLogging() to use LoggingSettings, only setting fields that need a non-default value. Turn LoggingDestination enum into a bit field and define add LOG_DEFAULT and LOG_ALL constants. Fix erroneous comment saying that the default was to not lock the log file. BUG=247594 TBR=brettw@chromium.org, cpu@chromium.org, gene@chromium.org, jam@chromium.org, rch@chromium.org, scherkus@chromium.org, sergeyu@chromium.org, sky@chromium.org, tkent@chromium.org, yfriedman@chromium.org, zea@chromium.org Review URL: https://codereview.chromium.org/16519003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207920 0039d316-1c4b-4281-b951-d872f2087c98
* Add base namespace to more values in sync and elsewhere.brettw@chromium.org2013-06-215-7/+8
| | | | | | | | | | This makes sync and net compile with no "using *Value". BUG= Review URL: https://codereview.chromium.org/17034006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207907 0039d316-1c4b-4281-b951-d872f2087c98
* [SPDY] Fix SpdySession's handling of SYN_REPLY framesakalin@chromium.org2013-06-215-76/+146
| | | | | | | | | | | | | | | | | | | | | It sent the wrong error code for duplicate SYN_REPLY frames. Also, it didn't trigger an error for data frames sent before SYN_REPLY. Update tests to match. Add {Active,Pushed}StreamInfo structs and use them in {Active,Pushed}StreamMap. Be defensive when closing expired push streams. Give the correct name to SpdyHttpStream tests. BUG=252556 R=rch@chromium.org Review URL: https://codereview.chromium.org/17004007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207885 0039d316-1c4b-4281-b951-d872f2087c98
* Disk cache: Update Addr to handle file format version 3.rvargas@google.com2013-06-215-25/+84
| | | | | | | | | | | | | | Basically three new file block types appear: One for normal entries, one for deleted entries and one for keeping track of external files. BUG=241277 TEST=net_unittests R=gavinp@chromium.org Review URL: https://codereview.chromium.org/16837003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207870 0039d316-1c4b-4281-b951-d872f2087c98
* Unlink corrupt SimpleCache index files immediately after load.gavinp@chromium.org2013-06-213-1/+63
| | | | | | | | | | | | | | The crash on startup in the referenced bug is very bad in part because the corrupt index which caused it is left on disk, so all startups until user data is cleared will crash. For maximum safety, we should unlink the index file ASAP after finding it is corrupt. R=rdsmith@chromium.org BUG=251465 Review URL: https://codereview.chromium.org/17265007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207813 0039d316-1c4b-4281-b951-d872f2087c98
* Revert a workaround commit for a Use-After-Free crash.yhirano@chromium.org2013-06-214-80/+11
| | | | | | | | | | | | Revert a workaround commit r20158 for a Use-After-Free issue (http://crbug.com/244746) because a cleaner CL r207218 is landed. URLRequestContext does not inherit SupportsWeakPtr now. R=mmenke BUG=244746 Review URL: https://chromiumcodereview.appspot.com/16870008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207811 0039d316-1c4b-4281-b951-d872f2087c98
* Fix a bug in quic_in_memory_cache.honghaiz@chromium.org2013-06-214-1/+88
| | | | | | | | | | | | | When adding response to the cache, it removes "http://", but when getting response from the cache, it does not. As a result, no content is fetched out from the cache even for urls in the cache. BUG= Review URL: https://chromiumcodereview.appspot.com/16354006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207807 0039d316-1c4b-4281-b951-d872f2087c98
* Pretty-print QUIC CONNECTION_CLOSE and RST_STREAM error codes.rch@chromium.org2013-06-211-2/+2
| | | | | | Review URL: https://chromiumcodereview.appspot.com/17333003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207773 0039d316-1c4b-4281-b951-d872f2087c98
* Disable TLS 1.2 if USE_OPENSSL is defined (such as on Android) towtc@chromium.org2013-06-211-3/+3
| | | | | | | | | | | | | prevent ClientHello from being larger than 256 bytes. Some broken servers can't handle a large ClientHello. R=agl@chromium.org,rsleevi@chromium.org BUG=90392,245500,247691 TEST=none Review URL: https://chromiumcodereview.appspot.com/17094016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207759 0039d316-1c4b-4281-b951-d872f2087c98
* Set receive buffer size, and comment about possible setting of send buffer.jar@chromium.org2013-06-211-0/+20
| | | | | | | | | BUG=252051 r=rch@chromium.org Review URL: https://chromiumcodereview.appspot.com/16999008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207753 0039d316-1c4b-4281-b951-d872f2087c98
* Introduce RequestWebSocketStream into HttpStreamFactoryyhirano@chromium.org2013-06-2121-101/+1038
| | | | | | | | | | Introduce RequestWebSocketStream into HttpStreamFactory to reuse its functionality that handles socket pool, proxy and SSL. BUG=237444 Review URL: https://chromiumcodereview.appspot.com/14813024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207735 0039d316-1c4b-4281-b951-d872f2087c98
* Actually enable Alternate-Protocol support for QUIC.rch@chromium.org2013-06-213-25/+16
| | | | | | | | Also, since we expect QUIC for HTTP URLs to run on port 80, changed the tests to use that port. Review URL: https://chromiumcodereview.appspot.com/17410014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207722 0039d316-1c4b-4281-b951-d872f2087c98
* Cleanup: Factor and de-duplicate out mock socket used for testing mdnsnoamsml@chromium.org2013-06-214-147/+240
| | | | | | | | | | | Remove duplicate mock socket from service discovery and mdns tests, put it in its own file so it can be used by tests of various dependent components. BUG= Review URL: https://chromiumcodereview.appspot.com/17244004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207715 0039d316-1c4b-4281-b951-d872f2087c98
* Disk cache: Introduce a BlockHeader class.rvargas@google.com2013-06-212-89/+142
| | | | | | | | | | | | | | | This class provides a somewhat similar interface to BlockFiles but operates exclusively with data in memory so it can be used on any thread because it never blocks. It encapsulates the header of a block file. BUG=241277 TEST=net_unittests (as in BlockFiles are implemented using BlockHeader) R=gavinp@chromium.org Review URL: https://codereview.chromium.org/16843007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207665 0039d316-1c4b-4281-b951-d872f2087c98
* Disable SRP, HMAC-SHA384, and ECDH (but not ECDHE) cipher suites, towtc@chromium.org2013-06-201-3/+6
| | | | | | | | | | | | | | prevent ClientHello from getting too big. Print more error info when we get SSL_ERROR_SYSCALL. R=agl@chromium.org,digit@chromium.org,rsleevi@chromium.org BUG=245500 TEST=none Review URL: https://chromiumcodereview.appspot.com/17427003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207624 0039d316-1c4b-4281-b951-d872f2087c98
* Update the include paths of message_loop_proxy.htfarina@chromium.org2013-06-201-1/+1
| | | | | | | | | | And remove the forwarding file. TBR=darin@chromium.org, eroman@chromium.org, thestig@chromium.org Review URL: https://codereview.chromium.org/16835007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207618 0039d316-1c4b-4281-b951-d872f2087c98
* mac: Let net/ compile with the 10.9 sdk (while targeting 10.6).thakis@chromium.org2013-06-203-8/+19
| | | | | | | | | | No intended behavior change. BUG=249803 Review URL: https://chromiumcodereview.appspot.com/17274012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207607 0039d316-1c4b-4281-b951-d872f2087c98
* Disk cache: move some code to the desired location.rvargas@google.com2013-06-202-21/+21
| | | | | | | | | | | | NO code change. This is just preparation for landing real code. BUG=241277 TEST=none TBR=gavinp@chromium.org Review URL: https://codereview.chromium.org/17512003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207569 0039d316-1c4b-4281-b951-d872f2087c98
* Added NET_EXPORT into mDns code.vitalybuka@chromium.org2013-06-201-3/+3
| | | | | | Review URL: https://chromiumcodereview.appspot.com/17451010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207533 0039d316-1c4b-4281-b951-d872f2087c98
* net: add (*.)bccx.com to HSTS preloaded list.agl@chromium.org2013-06-202-0/+2
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207528 0039d316-1c4b-4281-b951-d872f2087c98
* Don't crash when SimpleCache index is corrupt.gavinp@chromium.org2013-06-203-8/+73
| | | | | | | | | | | Some new histograms didn't deal with the failure case properly. Now fixed. BUG=251465 R=pasko@chromium.org, rdsmith@chromium.org Review URL: https://codereview.chromium.org/17420004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207520 0039d316-1c4b-4281-b951-d872f2087c98
* Use a direct include of strings headers, delete some strings forwarding headers.avi@chromium.org2013-06-201-1/+1
| | | | | | | | | | BUG=247723 TEST=everything compiles OK TBR=ben@chromium.org Review URL: https://codereview.chromium.org/17390010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207507 0039d316-1c4b-4281-b951-d872f2087c98
* Simple Cache Eviction: report sizes in KiBpasko@chromium.org2013-06-201-5/+10
| | | | | | | | | | | | | | | | The default counts were not useful, since they stop at 1MB, and all eviction operated on sizes more than that. So compute this in KB, which whould provide the range of 1MB - 500MB. Not ideal, but relatively OK. This will probably break the consistency of the number across builds, but it should be fine for our purposes. Just want to double-check if this careless mode is supported by the processing pipeline. BUG=none Review URL: https://chromiumcodereview.appspot.com/17112008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207478 0039d316-1c4b-4281-b951-d872f2087c98
* Regenerate the root certificate and end-entity certificates used for various ↵rsleevi@chromium.org2013-06-2016-136/+574
| | | | | | | | | | | | | | tests in net_unittests, now that Windows can temporarily trust certificates for the duration of tests. In addition, add unittests for net::TestRootCerts, which depend on the certs being tested not being trusted by the system beforehand. BUG=8470, 5552 TEST=TestRootCertsTest.* TBR=zelidrag Review URL: https://chromiumcodereview.appspot.com/5535006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207443 0039d316-1c4b-4281-b951-d872f2087c98
* Add GetFullRequestHeaders, from URLRequestJob to HttpNetworkTransaction.ttuttle@chromium.org2013-06-2017-6/+535
| | | | | | | | | | | | | | | | | Dev Tools displays the raw request and response headers. Right now, it gets them by snarfing them out of the NetLog, which is bad, as the NetLog is for huamn consumption only. I'm trying to refactor the DevToolsNetLogObserver away; providing an alternate, supported path to get the request headers is the first step. BUG=196304 TEST=added to URLRequest, HttpTransaction, and HttpNetworkTransaction unittests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=199535 Review URL: https://chromiumcodereview.appspot.com/12621011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207341 0039d316-1c4b-4281-b951-d872f2087c98
* Enable GoDaddy/Starfield G2 roots for EVrsleevi@chromium.org2013-06-201-0/+18
| | | | | | | | | | BUG=246066 TEST=see test sites in CL. All should be marked EV on (Win, Linux, iOS, CrOS) Review URL: https://chromiumcodereview.appspot.com/16922012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207288 0039d316-1c4b-4281-b951-d872f2087c98
* Add SocketStreamDispatcherHost::Shutdown and call it when a worker process ↵yhirano@chromium.org2013-06-191-2/+3
| | | | | | | | | | | | | | | | | | is being destroyed. SocketStreamDispatcherHost attached to a worker process should be notified that the process will be down, before the profile it refers is destroyed. This CL depends on the current WorkerProcessHost implementation that never add a WorkerInstance to a WorkerProcessHost once it is created. SocketStreamHost calls SocketStreamJob::set_context(NULL) which cancels the job. Since SocketStreamHost::socket_ can be NULL, a NULL pointer guard is added there. BUG=244746 Review URL: https://chromiumcodereview.appspot.com/16034010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207218 0039d316-1c4b-4281-b951-d872f2087c98
* MDnsClient: Process all records before alerting listenersnoamsml@chromium.org2013-06-194-43/+176
| | | | | | | | | | | | | | | | | | Change the notification structure in the MDnsListener to notify listeners after the whole packet is processed. This should allow listeners to issue cache queries for other records in the same packet in a synchronous manner. In order to not issue invalid notifications in case the packet contains multiple records that cancel each other out (and thus delete each other), store cache keys in the list of notifications to send, rather than storing record pointers directly. BUG= TEST=MDnsCacheTest.*,MDnsTest.* Review URL: https://chromiumcodereview.appspot.com/17379009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207161 0039d316-1c4b-4281-b951-d872f2087c98
* Simple Cache: set variable index flush delayspasko@chromium.org2013-06-182-5/+32
| | | | | | | | | | | | | The flush delay is pulled from the experiment. The experiment group encodes two values in the name separated by underscore. For example, experiment group "5000_100" would set foreground flush interval to 5 seconds and background interval to 100ms. I don't like commas in the name. BUG=250796 Review URL: https://chromiumcodereview.appspot.com/17076006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207087 0039d316-1c4b-4281-b951-d872f2087c98
* Move message_pump to base/message_loop.brettw@chromium.org2013-06-181-7/+8
| | | | | | | | | | | | This also fixes some namespace usage inside the message pump files and updates all users of these files to use the new location. Reland of 206507. Original review https://codereview.chromium.org/17078005/ TBR=sky Review URL: https://codereview.chromium.org/16897006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207075 0039d316-1c4b-4281-b951-d872f2087c98
* Land Recent QUIC changes.rtenneti@chromium.org2013-06-1824-202/+397
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Merging changes from chromium CL - 16203007 Merge internal change: 48035020 Minor changes from review comments from CL 48035020. Fix http://crbug.com/248737 where QuicSession::ConnectionClose would DCHECK when attempting to close a stream that did not close via ConnectionClose. Add regression test. Merge internal change: 47988326 Added a helper method SetSelfAddress to set the real address. Merge internal change: 47983053 Allow packets to be sent by the client when encryption is first established without waiting for the handshake to be confirmed. Simply doing this made the LargePost test flaky. To deal with *that* problem, I made two more changes: 1) When setting up an RTO for an ENCRYPTION_NONE packet, do not exponentially back off. 2) When an endpoint receives encrypted packets that can not be decrypted buffer some of them and attempt to re-process them when the endpoint moves to the next encryption level. Merge internal change: 47934275 Fix grammatical errors in comments. Merge internal change: 47877973 QUIC: allow replay protection to be configured. Bandaid nodes can't run a shared strike-register (at least, not without a lot of trouble) so would need different orbits for each machine. However, we'll be sending HTTP requests on the QUIC connection anyway - and will be falling back to HTTP in the event of a failure. So there's no actual security. Rather than burn round trips having the clients fetch new server configs each time they talk to a new Bandaid machine, just disable replay protection and give them all the same server config. This change is the QUIC part of disabling replay protection. The GFE config still remains to be done, as does the distribution of server configs to the Bandaid machines. Merge internal change: 47857583 Removing an unnecessary API from the quic stream sequencer, cleaning up an obsolete GFE TODO. We propagate stream RSTs immediately (via PropogateClose gfe-side) so no longer need to pull them from the sequencer. Merge internal change: 47848450 Minor cleanup change for SetNonce in StrikeRegisterTest per wtc's comments in CL: https://codereview.chromium.org/15937012/ R=rch@chromium.org Review URL: https://chromiumcodereview.appspot.com/17302002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207016 0039d316-1c4b-4281-b951-d872f2087c98
* Updating the mapped_file_avoid_mmap_posix implementation.qsr@chromium.org2013-06-186-25/+314
| | | | | | | | | | | | | | | | | | | | | | | | | | This implementation use copy on write mmap and read-only protection to be notified when a new page is written to in memory so that only the changed pages have to be written to disk. It allows to divide by 2 the memory used, as well as prevent a linear search when saving data back to disk This is a reland of svn://svn.chromium.org/chrome/trunk/src@205833Fixing the issue with Galaxy S4. The issue was that this device's system GL drivers are installing a temporary signal handler with signal() instead of sigation, and so when restoring, the signal is called without its arguments. This solve the issue by reinstalling the signal with the right argument when we detect we are incorrectly called. BUG=245782,248489,249880 Review URL: https://chromiumcodereview.appspot.com/17260003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@206971 0039d316-1c4b-4281-b951-d872f2087c98
* Implement Sign() method of Channel_id for NSS.rtenneti@chromium.org2013-06-1811-40/+122
| | | | | | Review URL: https://chromiumcodereview.appspot.com/16126013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@206913 0039d316-1c4b-4281-b951-d872f2087c98
* Add randomness to proxy bypass timeout on iOSbengr@chromium.org2013-06-181-1/+1
| | | | | | | | | | | Fix ifdef around proxy bypass timeout, so it's randomized on iOS, just like on Android. BUG=249935 Review URL: https://chromiumcodereview.appspot.com/17108004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@206870 0039d316-1c4b-4281-b951-d872f2087c98
* [SPDY] Avoid crash when an active stream closes another when it is closedakalin@chromium.org2013-06-181-4/+8
| | | | | | | | | | | | This CL is as small as possible as it might need to be merged to other branches. Tests will come in a future CL. BUG=250841 R=rch@chromium.org Review URL: https://codereview.chromium.org/17066005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@206851 0039d316-1c4b-4281-b951-d872f2087c98
* X509Certificate::GetDefaultNickname should handle a user certificatewtc@chromium.org2013-06-174-3/+136
| | | | | | | | | | | | | | | | whose Subject field doesn't have a common name (but has an email address). This was previously https://codereview.chromium.org/10341005/ R=rsleevi@chromium.org BUG=126023 TEST=new unit test X509CertificateTest.GetDefaultNickname, only if USE_NSS is defined. Review URL: https://chromiumcodereview.appspot.com/17093010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@206844 0039d316-1c4b-4281-b951-d872f2087c98
* Fix wrong header guards found by clang's new Wheader-guard.thakis@chromium.org2013-06-171-1/+1
| | | | | | | | | | | | | | | | | | | | | Example diagnostic: In file included from ../../ppapi/tests/test_flash_file.cc:5: ../../ppapi/tests/test_flash_file.h:5:9: error: 'PAPPI_TESTS_TEST_FLASH_FILE_H_' is used as a header guard here, followed by #define of a different macro [-Werror,-Wheader-guard] ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../ppapi/tests/test_flash_file.h:6:9: note: 'PPAPI_TESTS_TEST_FLASH_FILE_H_' is defined here; did you mean 'PAPPI_TESTS_TEST_FLASH_FILE_H_'? ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ PAPPI_TESTS_TEST_FLASH_FILE_H_ 1 error generated. BUG=none R=ben@chromium.org Review URL: https://codereview.chromium.org/17321002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@206837 0039d316-1c4b-4281-b951-d872f2087c98
* Miscellaneous cleanup of TLS 1.2 code.wtc@chromium.org2013-06-177-199/+1064
| | | | | | | | | | | | | | | | | | | | | 1. Support TLS 1.2 in PKCS #11 bypass mode. 2. Delay the creation of handshake hash contexts until we have established the handshake hash functions. 3. Buffer handshake messages until the handshake hash contexts have been created. 4. Fix the double ssl3_RestartHandshakeHashes calls, by removing the ssl3_RestartHandshakeHashes call in ssl3_NewHandshakeHashes. 5. Remove redundant ssl3_InitState calls. 6. Remove NSS_SURVIVE_DOUBLE_BYPASS_FAILURE support, so that ss->ssl3.hs.messages is used for only one purpose. R=agl@chromium.org BUG=90392 TEST=none Review URL: https://chromiumcodereview.appspot.com/17109007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@206827 0039d316-1c4b-4281-b951-d872f2087c98
* Optimize public suffix list implementationnyquist@chromium.org2013-06-179-22504/+22190
| | | | | | | | | | | | | | | | | | * Changes the datastructure used for each DomainRule to only have a char* and an int, instead of also including a bool. The int is then used as a flag to indicate exception, wildcard and/or private. * Flipped the order of operations for checking whether this is a private domain and whether private domains should be included, since most callers do not include private domains. * Use -m 10 instead of -m 5 flag when running gperf to further optimize the size of the lookup table. BUG=245442 R=pam@chromium.org Review URL: https://codereview.chromium.org/17155003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@206813 0039d316-1c4b-4281-b951-d872f2087c98
* Allow custom TaskRunners for async operations in net::FileStream.earthdok@google.com2013-06-176-26/+71
| | | | | | | | | | | | | | | | | Make the FileStream constructor accept as a parameter the TaskRunner to be used for async file operations. Use base::WorkerPool by default. Also, change webkit::LocalFileStreamReader so that the same TaskRunner that we use for other file operations is passed to FileStream. With this change, FileSystemFileStreamReader tests shut down cleanly, whereas previously they leaked memory. BUG=248513 R=willchan,kinuko Review URL: https://chromiumcodereview.appspot.com/16986002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@206767 0039d316-1c4b-4281-b951-d872f2087c98
* Rewrite scoped_ptr<T>(NULL) to use the default ctor.dcheng@chromium.org2013-06-171-2/+1
| | | | | | | | | | | | | | | This is a manual cleanup of call sites that invoke scoped_ptr<T>'s constructor with an explicit NULL argument, since the clang tooling infrastructure does not work on Windows. Also fixes a misuse of scoped_ptr<T> in chrome_frame to hold memory allocated by operator new[]. BUG=173286 R=alexeypa@chromium.org, erg@chromium.org, jochen@chromium.org, mmenke@chromium.org, tommi@chromium.org Review URL: https://codereview.chromium.org/16943003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@206763 0039d316-1c4b-4281-b951-d872f2087c98
* Gracefully handle an asynchronous write disconnect when an SSL read is pendingrsleevi@chromium.org2013-06-172-10/+99
| | | | | | | | | BUG=249848 R=wtc Review URL: https://chromiumcodereview.appspot.com/17105003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@206751 0039d316-1c4b-4281-b951-d872f2087c98
* Reduce verbosity of net::SocketStreamricea@chromium.org2013-06-171-2/+2
| | | | | | | | | | | Demote LOG(ERROR) messages to DVLOG(1). BUG=249720 TEST=net_unittests Review URL: https://chromiumcodereview.appspot.com/17046004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@206681 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "Updating the mapped_file_avoid_mmap_posix implementation."dfalcantara@chromium.org2013-06-156-292/+25
| | | | | | | | | | | | | This reverts r205833 (commit 71f3eab9991af6e35ec6e2a2c2ddeaafe2dcbc6a) because it was causing crashes on Galaxy S4s. Original: https://chromiumcodereview.appspot.com/16415005 BUG=249880,245782,248489 Review URL: https://chromiumcodereview.appspot.com/17115005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@206606 0039d316-1c4b-4281-b951-d872f2087c98
* Removed spurious uses of RunUntilIdle from the MDnsClient unit testsnoamsml@chromium.org2013-06-151-47/+10
| | | | | | | | | | | Removed unnecessary uses of RunUntilIdle from the MDnsClient unit tests, since they were not helping the tests' correctness. TEST=MDnsTest.* Review URL: https://chromiumcodereview.appspot.com/17107002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@206600 0039d316-1c4b-4281-b951-d872f2087c98