summaryrefslogtreecommitdiffstats
path: root/net/websockets
Commit message (Collapse)AuthorAgeFilesLines
* Add CookieStore::DeleteSessionCookiesAsync method.husky@chromium.org2012-04-252-0/+6
| | | | | | | | | | | | | | | This is needed by the Android port of Chromium, which has a different startup and shutdown control flow from other platforms. We also need to support the Android framework's android.webkit package, which has a public CookieManager.removeSessionCookie() API. BUG=None TEST=CookieMonsterTest Review URL: http://codereview.chromium.org/9959011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133912 0039d316-1c4b-4281-b951-d872f2087c98
* Move NextProto enum to a new file net/socket/next_proto.hrch@chromium.org2012-03-313-4/+3
| | | | | | | | | BUG=120890 Review URL: http://codereview.chromium.org/9959033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@130038 0039d316-1c4b-4281-b951-d872f2087c98
* Move all objects from the spdy:: namespace to net::rch@chromium.org2012-03-227-26/+26
| | | | | | Review URL: http://codereview.chromium.org/9815028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128310 0039d316-1c4b-4281-b951-d872f2087c98
* Created a new class SpdyTestStateHelper to serve as a helper to manage the ↵rch@chromium.org2012-03-222-2/+6
| | | | | | | | state of a number of SPDY global variables. Review URL: http://codereview.chromium.org/9817014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128163 0039d316-1c4b-4281-b951-d872f2087c98
* Add a new set of socket pools for WebSocket connections to HttpNetworkSession.yutak@chromium.org2012-03-172-2/+4
| | | | | | | | | | | | | | | | | | This change adds a new ClientSocketPoolManager that manages a set of socket pools holding WebSocket connections. To be able to selectively return the socket pool for normal use or WebSocket use, a new SocketPoolType argument is added to socket pool getters. Due to changes to getter function signatures, many files (mostly testing code) have to be updated. BUG=118268 TEST=none Review URL: http://codereview.chromium.org/9703087 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127306 0039d316-1c4b-4281-b951-d872f2087c98
* Update net/base/cookie_*.h includes to net/cookies/cookie_*.h .erikwright@chromium.org2012-03-153-7/+7
| | | | | | | | | | | | Once complete, forwarding headers will be removed from net/base/ . TEST=none R=willchan Review URL: http://codereview.chromium.org/9703062 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@126999 0039d316-1c4b-4281-b951-d872f2087c98
* SPDY - integration of spdy/3 code.rtenneti@google.com2012-03-122-0/+2
| | | | | | | | TEST=network unit tests and browser unit_tests R=willchan Review URL: https://chromiumcodereview.appspot.com/9618002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@126175 0039d316-1c4b-4281-b951-d872f2087c98
* OnSSLCertificateError delegate chain back to SocketStreamDispatcherHosttoyoshim@chromium.org2012-03-092-0/+10
| | | | | | | | | | | | | SSL cert errors must be handled by SSLManager. This change provide delegate chain back to SocketStreamDispatcherHost to handle the error by SSLManager here. BUG=53836 TEST=run existing unit tests because this change is a kind of refactoring Review URL: http://codereview.chromium.org/9454011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@125882 0039d316-1c4b-4281-b951-d872f2087c98
* Fork SPDY/2 and SPDY/3 versions of our SPDY tests, in preparation for landingrch@chromium.org2012-03-043-63/+1168
| | | | | | | spdy 3 framer changes. Review URL: https://chromiumcodereview.appspot.com/9582034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124886 0039d316-1c4b-4281-b951-d872f2087c98
* Change MockRead and MockWrite (et. al.) to take an IoMode enum, insteadrch@chromium.org2012-02-231-11/+11
| | | | | | | | of a bool async. Review URL: http://codereview.chromium.org/9425016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@123274 0039d316-1c4b-4281-b951-d872f2087c98
* Modify the MockConnect constructor to take an enum of ASYNC or SYNCHRONOUS,rch@chromium.org2012-02-171-1/+1
| | | | | | | | instead of a boolean async. Review URL: http://codereview.chromium.org/9419032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122581 0039d316-1c4b-4281-b951-d872f2087c98
* Remove WebSocketFrameHandler.yutak@chromium.org2012-02-155-421/+49
| | | | | | | | | | | | | | | | | WebSocketFrameHandler supports only old frame format (hybi-00) and its parser functionality has never been used (i.e. used with unbuffered mode) for a long time. This change removes WebSocketFrameHandler and lets WebSocketJob handle incoming and outgoing frame data directly. BUG=none TEST=none Review URL: http://codereview.chromium.org/9112003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122074 0039d316-1c4b-4281-b951-d872f2087c98
* Fixes to socket_test_util.cc.szym@chromium.org2012-01-221-12/+12
| | | | | | | | | | | | | | | - 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
* Refactor CookieStore to allow BrowsingDataRemover to depend on it.qsr@chromium.org2011-12-211-0/+5
| | | | | | | | | | | This allows to remove the dependency from BrowsingDataRemover to CookieMonster. BUG=none TEST=none Review URL: http://codereview.chromium.org/9004016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115286 0039d316-1c4b-4281-b951-d872f2087c98
* Initialize protocol_version to Unknown.rtenneti@chromium.org2011-12-201-1/+2
| | | | | | | | | | R=mmenke TEST=network unittests BUG=108134 Review URL: http://codereview.chromium.org/8956042 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115196 0039d316-1c4b-4281-b951-d872f2087c98
* Added protocol_version negotiated with the server.rtenneti@google.com2011-12-201-1/+3
| | | | | | | | | | | | | protocol_version will be printed by the LoadTimes extension. R=willchan BUG=108134 TEST=network unittests Review URL: http://codereview.chromium.org/8914005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115145 0039d316-1c4b-4281-b951-d872f2087c98
* base::Bind: Convert proxy_resolving_client_socket.[cc,h] and deps.jhawkins@chromium.org2011-12-151-6/+5
| | | | | | | | | | BUG=none TEST=none R=csilv Review URL: http://codereview.chromium.org/8898036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114562 0039d316-1c4b-4281-b951-d872f2087c98
* Convert TestOldCompletionCallback in WebSocketJobTest.yutak@chromium.org2011-12-011-3/+3
| | | | | | | | | | BUG=105683 TEST=none Review URL: http://codereview.chromium.org/8763024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112433 0039d316-1c4b-4281-b951-d872f2087c98
* Replace OldCompletionCallback in SocketStream::Delegate.yutak@chromium.org2011-12-014-31/+35
| | | | | | | | | | BUG=105683 TEST=none Review URL: http://codereview.chromium.org/8747013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112414 0039d316-1c4b-4281-b951-d872f2087c98
* Replace Callback0::Type and NewCallback() in WebSocketJobTest.yutak@chromium.org2011-11-291-33/+36
| | | | | | | | | | BUG=105683 TEST=none Review URL: http://codereview.chromium.org/8729021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111918 0039d316-1c4b-4281-b951-d872f2087c98
* Convert ScopedRunnableMethodFactory in WebSocketJob.yutak@chromium.org2011-11-292-6/+9
| | | | | | | | | | BUG=105683 TEST=none Review URL: http://codereview.chromium.org/8728025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111915 0039d316-1c4b-4281-b951-d872f2087c98
* Make ClientSocketPoolManager into an interface.willchan@chromium.org2011-11-171-1/+1
| | | | | | | | | | | | This allows for using a MockClientSocketPoolManager. The default implementation has been moved into ClientSocketPoolManagerImpl. This allows HttpNetworkSessionPeer to replace the whole ClientSocketPoolManager rather than individual socket pools, which is necessary because socket pools will become more integrated in the future. BUG=none TEST=none Review URL: http://codereview.chromium.org/8572041 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110510 0039d316-1c4b-4281-b951-d872f2087c98
* Add OVERRIDE to net/.avi@chromium.org2011-11-162-19/+22
| | | | | | | | BUG=104314 Review URL: http://codereview.chromium.org/8568021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110231 0039d316-1c4b-4281-b951-d872f2087c98
* Remove referrer from TransportSocketParams and SOCKSSocketParams.szym@chromium.org2011-11-151-1/+0
| | | | | | | | | | | | BUG=none TEST=compiles R=eroman Review URL: http://codereview.chromium.org/8572018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110168 0039d316-1c4b-4281-b951-d872f2087c98
* Allow linker initialization of lazy instancejoth@chromium.org2011-11-151-2/+2
| | | | | | | | | | | | | | Using the initializer list construct = {0} allows the object to be linker initialized. Modify the LazyInstance class design to make it a pod aggregate type that can be linker initialized this way. Also combines the instance and state members, in line with the Singleton<> class design. Introduces a new LAZY_INSTANCE_INITIALIZER macro specifically for using to init all lazy instances + modify all existing callsites to use it. (Old code would no longer compile) BUG=94925 TEST=existing tests pass. http://build.chromium.org/f/chromium/perf/linux-release/sizes/report.html?history=150&header=chrome-si&graph=chrome-si&rev=-1 should step downward. TBR=jam@chromium.org,rvargas@chromium.org,darin@chromium.org,ben@chromium.org,apatrick@chromium.org,akalin@chromium.org Review URL: http://codereview.chromium.org/8491043 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110076 0039d316-1c4b-4281-b951-d872f2087c98
* Use AuthCredentials throughout the network stack instead of username/password.cbentzel@chromium.org2011-10-283-13/+10
| | | | | | | | This is a refactor only - no behavior change should happen. Review URL: http://codereview.chromium.org/8340026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@107766 0039d316-1c4b-4281-b951-d872f2087c98
* Begin CompletionCallback switchover.willchan@chromium.org2011-10-014-13/+13
| | | | | | | | | | | | | Rename CompletionCallback to OldCompletionCallback in preparation for introducing a new CompletionCallback based on base::Callback. Also renames other CompletionCallback types like CancelableCompletionCallback and TestCompletionCallback and CompletionCallbackImpl. All using sed with s/CompletionCallback/OldCompletionCallback/g. BUG=98719 TEST=none Review URL: http://codereview.chromium.org/8070013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103650 0039d316-1c4b-4281-b951-d872f2087c98
* Make TransportSecurityState not ref-counted for simplicity.phajdan.jr@chromium.org2011-09-271-5/+5
| | | | | | | | BUG=none Review URL: http://codereview.chromium.org/8054001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103012 0039d316-1c4b-4281-b951-d872f2087c98
* Fix crash bug at net::WebSocketJob::OnSentData.ukai@chromium.org2011-09-201-2/+5
| | | | | | | | | | | | | | | | | According to crash dump, I suspect it is crashed at current_buffer_->DidConsume() where current_buffer_ is NULL. If current_buffer_ is NULL, WebSocketJob doesn't think there are writing data and nothing to do, so this CL changes to just return from net::WebSocketJob::OnSentData in this case. Also checks if amount_sent is negative or zero and return if it is so. BUG=91591 TEST=none Review URL: http://codereview.chromium.org/7923004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101942 0039d316-1c4b-4281-b951-d872f2087c98
* Rename NET_API to NET_EXPORT, and rename NET_TEST to NET_EXPORT_PRIVATE.darin@chromium.org2011-08-125-9/+9
| | | | | | Review URL: http://codereview.chromium.org/7529043 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@96560 0039d316-1c4b-4281-b951-d872f2087c98
* WebSocket: Remove obsolete experiments related filestoyoshim@chromium.org2011-08-039-2256/+0
| | | | | | | | | BUG=91489 TEST=NONE Review URL: http://codereview.chromium.org/7567001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@95232 0039d316-1c4b-4281-b951-d872f2087c98
* Remove DCHECK(!headers_.empty()) in WebSocketHandshakeResponseHandlerukai@chromium.org2011-08-031-6/+7
| | | | | | | | | | | headers_ might be empty for wrong response from server. BUG=none TEST=none Review URL: http://codereview.chromium.org/7564002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@95210 0039d316-1c4b-4281-b951-d872f2087c98
* Apply the asynchronous CookieMonster API to WebsocketJob.ycxiao@chromium.org2011-08-013-39/+104
| | | | | | | | | BUG=68657 TEST=XXXX Review URL: http://codereview.chromium.org/7278026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@94937 0039d316-1c4b-4281-b951-d872f2087c98
* Use ScopedRunnableMethodFactory in WebSocketJobukai@chromium.org2011-07-222-5/+13
| | | | | | | | | | | Don't post SendPending if it is already posted. BUG=89795 TEST=none Review URL: http://codereview.chromium.org/7488007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@93599 0039d316-1c4b-4281-b951-d872f2087c98
* Check socket_ is not NULL.ukai@chromium.org2011-07-221-1/+5
| | | | | | | | | | | Also, if state_ is already CLOSED, Close() does nothing. BUG=89795 TEST=none Review URL: http://codereview.chromium.org/7488002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@93556 0039d316-1c4b-4281-b951-d872f2087c98
* Introduce a new connection test which verify WebSocket and SPDY connection ↵toyoshim@chromium.org2011-07-222-12/+107
| | | | | | | | | | | sequence after throttling work. BUG=NONE TEST=net_unittest --gtest_filter=WebSocketJobTest.Throttling\* Review URL: http://codereview.chromium.org/7331007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@93555 0039d316-1c4b-4281-b951-d872f2087c98
* base: Put md5.* into base namespace.tfarina@chromium.org2011-07-182-6/+6
| | | | | | | | | | | BUG=89274 TEST=None R=evan@chromium.org Review URL: http://codereview.chromium.org/7395021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92861 0039d316-1c4b-4281-b951-d872f2087c98
* Define an asynchronous API for CookieStore.ycxiao@chromium.org2011-07-121-1/+30
| | | | | | | | | BUG=68657 TEST=xxxx Review URL: http://codereview.chromium.org/7155026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92150 0039d316-1c4b-4281-b951-d872f2087c98
* Add WebSocket over SPDY experimental implementation.toyoshim@chromium.org2011-07-113-62/+362
| | | | | | | | | | | | | | | | (Re-land with memory leak fix) - Realize WebSocketJob's internal protocol switch to SPDY using SpdyWebSocketStream - Add simple test to verify connection over SPDY BUG=42320 TEST=net_unittests --gtest_filter=WebSocketJobTest\* Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=91997 Review URL: http://codereview.chromium.org/7185032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92017 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 91997 - Add WebSocket over SPDY experimental implementation.toyoshim@chromium.org2011-07-113-361/+60
| | | | | | | | | | | | | | | - Realize WebSocketJob's internal protocol switch to SPDY using SpdyWebSocketStream - Add simple test to verify connection over SPDY BUG=42320 TEST=net_unittests --gtest_filter=WebSocketJobTest\* Review URL: http://codereview.chromium.org/7185032 TBR=toyoshim@chromium.org Review URL: http://codereview.chromium.org/7333006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92003 0039d316-1c4b-4281-b951-d872f2087c98
* Add WebSocket over SPDY experimental implementation.toyoshim@chromium.org2011-07-113-60/+361
| | | | | | | | | | | | - Realize WebSocketJob's internal protocol switch to SPDY using SpdyWebSocketStream - Add simple test to verify connection over SPDY BUG=42320 TEST=net_unittests --gtest_filter=WebSocketJobTest\* Review URL: http://codereview.chromium.org/7185032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@91997 0039d316-1c4b-4281-b951-d872f2087c98
* WebSocket: Add connection test on WebSocketJobTesttoyoshim@chromium.org2011-07-061-47/+233
| | | | | | | | | | | | | - Move local test utility classes into anonymous namespace. - Add new connection test. BUG=NONE TEST=net_unittests --gtest_filter=WebSocketJobTest\* Review URL: http://codereview.chromium.org/7193035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@91550 0039d316-1c4b-4281-b951-d872f2087c98
* Do tests in both spdy enabled and disabled configurations.toyoshim@chromium.org2011-07-041-17/+84
| | | | | | | | | BUG=42320 TEST=net_unittests --gtest_filter=WebSocketJobTest\* Review URL: http://codereview.chromium.org/7292032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@91463 0039d316-1c4b-4281-b951-d872f2087c98
* GCC 4.6 -Wunused-but-set-variable cleanup.pph34r@gmail.com2011-07-021-3/+1
| | | | | | | | | | BUG=87490 TEST=net_unittests Review URL: http://codereview.chromium.org/7261018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@91424 0039d316-1c4b-4281-b951-d872f2087c98
* WebSocket unit test style fix on static const char kFooBar[]toyoshim@chromium.org2011-06-272-58/+75
| | | | | | | | | BUG=none TEST=net_unittests Review URL: http://codereview.chromium.org/7235022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90559 0039d316-1c4b-4281-b951-d872f2087c98
* Header file which defines unit test's target class should be included at first.toyoshim@chromium.org2011-06-248-8/+16
| | | | | | | | | BUG=87363 TEST=net_unittests Review URL: http://codereview.chromium.org/7201024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90340 0039d316-1c4b-4281-b951-d872f2087c98
* Coverity: Pass parameters by reference.jhawkins@chromium.org2011-06-221-2/+4
| | | | | | | | | | | | CID=8725,14376,15499,15540,15655,16687,16688 BUG=none TEST=none R=kmadhusu@chromium.org Review URL: http://codereview.chromium.org/7211037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89976 0039d316-1c4b-4281-b951-d872f2087c98
* Unit tests for WebSocket uses old callback mechanisms.toyoshim@chromium.org2011-06-171-31/+24
| | | | | | | | | | | | This change make them migrate from old one to new undified callback system. BUG=86297 TEST=net_unittests Review URL: http://codereview.chromium.org/7193004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89488 0039d316-1c4b-4281-b951-d872f2087c98
* WebSocket over SPDY: protocol switchtoyoshim@chromium.org2011-06-164-23/+91
| | | | | | | | | | | | | This change enable to switch protocol from WebSocket to SPDY. SpdyWebsocketStream class is not included, then SPDY connection always fail now. BUG=42320 TEST=net_unittests --gtest_filter=WebSocket\* Review URL: http://codereview.chromium.org/7062043 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89318 0039d316-1c4b-4281-b951-d872f2087c98
* Add invalid data send check on CONNECTING statetoyoshim@chromium.org2011-06-023-168/+130
| | | | | | | | | | | | | | Handshake data should be sent at once. WebSocketJob should reject any other subsequent data sending until the handshake is done and connection is opened. BUG=84422 TEST=net_unittest --gtest_filter=WebSocket\* Review URL: http://codereview.chromium.org/7075027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87597 0039d316-1c4b-4281-b951-d872f2087c98