summaryrefslogtreecommitdiffstats
path: root/net
Commit message (Collapse)AuthorAgeFilesLines
...
* Remove proxy_mode_ from the HttpNetworkTransaction since itmbelshe@chromium.org2010-04-283-28/+22
| | | | | | | | | | | is redundant with proxy_info_. BUG=none TEST=covered by existing tests. Review URL: http://codereview.chromium.org/1809001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45787 0039d316-1c4b-4281-b951-d872f2087c98
* Cleanup: Address some of the todos in net_log.heroman@chromium.org2010-04-2717-272/+320
| | | | | | | | | | | - Get rid of the AddString() and AddStringLiteral() methods. - Make EventParameters able to serialize to JSON, instead of a string. BUG=37421 Review URL: http://codereview.chromium.org/1716007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45750 0039d316-1c4b-4281-b951-d872f2087c98
* [Mac] Add locking as speculative fix for X509Certificate crashes.snej@chromium.org2010-04-272-0/+12
| | | | | | | | | BUG=30001 TEST=none Review URL: http://codereview.chromium.org/1769010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45728 0039d316-1c4b-4281-b951-d872f2087c98
* Fix case where backup socket jobs ignored the socket limits.mbelshe@chromium.org2010-04-271-3/+9
| | | | | | | | | | | | Add some logging when socket limits are reached. BUG=42597 TEST=none Review URL: http://codereview.chromium.org/1708009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45722 0039d316-1c4b-4281-b951-d872f2087c98
* Makes FormatURL not strip http for view-source urls.sky@chromium.org2010-04-272-0/+8
| | | | | | | | | BUG=41874 TEST=see bug Review URL: http://codereview.chromium.org/1696013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45702 0039d316-1c4b-4281-b951-d872f2087c98
* The wireshark source does not export two symbols which packet-spdy.c uses in ↵cbentzel@chromium.org2010-04-271-5/+50
| | | | | | | | | | | | | epan\libwireshark.def: o tvb_child_uncompress o p_remove_proto_data In the past I've modified libwireshark.def locally but this is a bit of a pain to do for each version. So, I just duplicated code for now and added a "spdy" prefix. Review URL: http://codereview.chromium.org/1771005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45695 0039d316-1c4b-4281-b951-d872f2087c98
* Remove svn:executable property from the last few files that don't need it.thestig@chromium.org2010-04-271-0/+0
| | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/1746010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45665 0039d316-1c4b-4281-b951-d872f2087c98
* SPDY: Fix Alternate-Protocol.willchan@chromium.org2010-04-2611-212/+495
| | | | | | | | | | | | (1) In DoInitConnection() we do the existing spdy session check. If it exists there, then we assuem it exists in DoSpdySendRequest(). Unfortunately, we didn't do the same check. Use a member variable to store the HostPortPair. (2) In DoInitConnection(), we used the scheme://urlhost:urlport as the connection group. With Alternate-Protocol, we used the scheme://urlhost:urlport even though we were connecting to a different port, with a different protocol (TLS). This means we would mix conflicting sockets in the ClientSocketPool. I fix this by dropping scheme://, since it's unnecessary, and would cause us not to share SSL sockets in different connection groups (since the specified scheme might be http://, but due to Alternate-Protocol, we actually do an SSL connect). I also don't use the urlhost:urlport, but use the host:port that we actually connect to. TODO(willchan): Fix Alternate-Protocol so it works properly with proxies. I need to change CONNECT for http proxies and patch the SOCKs connects. Review URL: http://codereview.chromium.org/1755005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45627 0039d316-1c4b-4281-b951-d872f2087c98
* Quick hack to make the dump_cache work again. The URLmbelshe@chromium.org2010-04-261-1/+4
| | | | | | | | | | | | cracker won't parse our URLs that start with "GEThttp:" properly. BUG=none TEST=none Review URL: http://codereview.chromium.org/1572036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45603 0039d316-1c4b-4281-b951-d872f2087c98
* Increase the global TCP socket limit. It's too low.willchan@chromium.org2010-04-261-1/+1
| | | | | | | | | wtc likes powers of 2, so I chose 256 as we discussed earlier. We need to experiment more in the future. BUG=41289 Review URL: http://codereview.chromium.org/1692008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45600 0039d316-1c4b-4281-b951-d872f2087c98
* Fix cut-and-paste error on num_entries.mbelshe@chromium.org2010-04-231-1/+1
| | | | | | | | | | | (benign, just a type issue) BUG=none TEST=none Review URL: http://codereview.chromium.org/1737008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45501 0039d316-1c4b-4281-b951-d872f2087c98
* Re-instate the temporary revert from r45267. That reverted certainshess@chromium.org2010-04-233-77/+259
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Omnibox, toolbar, tab animations, and other UI changes for purposes of testing and merging into mstone-5. Additionally reverts these CLs to fix the earlier revert: r45271: [Mac] Image references missing from Omnibox revert. r45268: GTK fix merge failure in uber-revert. Additional revert which fixed a bug for the branch: r45381: [Mac] Omnibox popup icons and text lined up under toolbar. Slight merge conflict which should be good: r45322: GTK: Implement OnDragCanceled() for autocomplete... Also ++kThemePackVersion and regenerate the cached theme pak. Re-instated changes: r45213: GTK: Override cursor colors in chrome-theme mode. r45103: Support drawing nano tabs in the tabstrip. r45084: GTK: Position the EV certificate stuff inside a green bubble. r44979: Subclassing the InfoBubble to handle anchoring bubbles basedon... r44957: GTK: Tint the geolocation icons in gtk mode. r44943: Changes FormatURL to not strip http if the host starts with ft... r44930: Remove an icon that is no longer used. r44929: SSL UI changes, Windows, code side (images are separate). r44859: SSL UI changes (icons). TBRed since trybots hate binary patches. r44822: GTK: Select better greens in the native omnibox popup. r44814: GTK: navigate to URL on PRIMARY when middle-clicking the locat... r44789: [Mac] Bookmark star missing on NTP and BMM. r44775: [Mac] Centralize hack to make tests work with AutocompleteClas... r44678: Display the SECURITY_WARNING status in the location bar for the r44648: [Mac] Add an arrow cursor rect for the location image. r44615: Revert r44611 because it may have broken "unit_tests" on "Vist... r44611: Display the SECURITY_WARNING status in the location bar for the r44577: Revert 44572 - [Mac] Update locationbar icon as user types. r44572: [Mac] Update location-bar icon as user types. r44555: GTK: Use correct button mask on reload button. r44545: [Mac] Omnibox text drag drag URL when select-all. r44523: GTK: Prevent inappropriate drag of location bar location icon. r44519: GTK: make the primary selection include the url's scheme when ... r44492: [Mac] Fix search icon in keyword search to be right-side-up. r44415: GTK: Update top padding on icons in the autocomplete popup. r44401: GTK: Tint omnibox icons in GTK mode differently. r44380: GTK: Move reload in gtk mode and fix omnibox popup location. r44282: Fixes crash in autocomplete when typing some URLs. The problem r44273: [Mac] PDF icons for omnibox nits. r44269: Fix build break due to bad merge resolve r44268: Shift omnibox dropdown in and up on Windows, and square off th... r44178: GTK: fix TTS padding. r44177: Round the top left and right edges of the toolbar. r44171: Images only checkin for try server goodness. r44163: GTK: fix padding of autocomplete popup. r44152: [Mac] PDF icons for omnibox. r44145: GTK: Theme the icons in the location bar and use GTK colors fo... r44140: Strips http from the omnibox r44131: Fixes bugs in new tab strip animations where they weren't doin... r44116: Change the default theme colors. r44117: Add newline to EOF to fix CrOS builder. r44115: Make the bottom edges of the opaque frame rounded. r44091: [Mac] No star icon or page actions in omnibox on popups. r44087: Don't allow drag or click on location icon when editing in omn... r44021: [GTK] Add TTS lens graphic to linux TTS box. r44008: [Mac] Tweak location icon spacing in omnibox. r43977: GTK: don't show the star or page actions in ShouldOnlyShowLoca... r43972: Make the firstrun bubble point at a better spot now that the l... r43971: [Mac] Location icon in omnibox as drag source. r43970: Make the star and page action icons not appear on popup windows. r43954: Fixes bug in TabStrip where dragging tab out then back in rapidly r43864: Tweaks to BoundsAnimator/SlideAnimation and TabStrip: r43787: Allow location icon to be dragged & dropped. This also fixes ... r43759: Changes end cap of tab-to-search images. r43740: Change bookmark bar toggle to ctrl-shift-b. r43723: Show Page Info dialog on mouse up, not mouse down. r43677: Fix Mac build failure. r43676: Replace omnibox icons with new set that are all the same size ... r43596: Fix browser test TestStarButtonAccObj. r43593: Disables TestStarButtonAccObj. r43582: Changes tab strip to use BoundsAnimator for tab strip animatio... r43563: GTK: don't show reload button for popup/app windows. r43562: Star/reload shuffle, Windows version. r43540: [Mac] Magnifying glass in keyword-search bubble. r43482: Adds images needed for new tab animation. I'm separating this ... r43422: Add reload mask resource. r43392: GTK: make the location icon a drag source. r43376: [Mac] Move star button into page-actions area of omnibox. r43357: [Mac] Line up omnibox popup under field. r43290: gtk: fix display of icons in omnibox popup r43269: GTK: fix reload button. r43249: [Mac] Rearrange SSL status icon/label in omnibox. r43248: BrowserThemePack: Adds persistant ids for the reload endcaps. r43241: GTK: more location bar updates. r43191: Fix memory leak in BrowserThemePack. r43154: GTK: set the new star button's ID r43151: Fix bad conflict resolution for r43146. r43146: GTK: toolbar reload/star shuffle. r43025: Show the location bar icon (almost) all the time, and have its... r43023: Add new images for new reload button. No code change. r42782: Remove this icon, now that it's no longer used (due to my secu... r42502: Omnibox M5 work, part 1: Security changes r42245: Check in new icons for omnibox security changes alone, so that... BUG=none TEST=People go back to complaining about missing http://. R=pkasting@chromium.org,beng@chromium.org git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45474 0039d316-1c4b-4281-b951-d872f2087c98
* Specify alternate OCSP AIA info for certificates issued bywtc@chromium.org2010-04-231-0/+78
| | | | | | | | | | | | Network Solutions Certificate Authority to work around NSS bug 524013. R=ukai BUG=41730 TEST=Visit https://blackboard.mines.edu on a Linux distribution with NSS 3.12.6. We should not get the certificate revoked error page. Review URL: http://codereview.chromium.org/1752008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45452 0039d316-1c4b-4281-b951-d872f2087c98
* Add net log entries that summarize transmit and receive byte counts.vandebo@chromium.org2010-04-2338-304/+380
| | | | | | | | | | | | | | | | | | | | | Tx/Rx summaries are integrated into the net log at the last point that bytes were transmitted or received. Hopefully this will help resolve http://crbug.com/37729 by showing if we've received bytes over the network when we hit the "Waiting for cache" bug. This change also modernizes the use of NetLog: - ClientSocket now has a net_log() accessor - ClientSocket::Connect no longer takes a NetLog, instead the TCPClientSocket constructor takes one, others use their transport socket's NetLog - TCPClientSocket creates a new source id with source type SOCKET Also updates PassiveLogCollector infrastructure: - The LiveRequestsObserver lets a RequestTracker update a RequestInfo just before it is displayed. This allows ConnectJobs to be associated with URLRequests while connecting and then reassociated if they are late-bound to a different request. BUG=37729 TEST=tx/rx lines show up in chrome://net-internals/ Review URL: http://codereview.chromium.org/1696005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45449 0039d316-1c4b-4281-b951-d872f2087c98
* Fix cases where SpdySession can double-remove from the SpdySessionPool.mbelshe@chromium.org2010-04-233-3/+17
| | | | | | | | | BUG=42229 TEST=SpdyNetworkTransactionTest.GoAwayWithActiveStream Review URL: http://codereview.chromium.org/1747006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45447 0039d316-1c4b-4281-b951-d872f2087c98
* Send content settings based on the URL to the renderer instead of just the host.jochen@chromium.org2010-04-233-3/+20
| | | | | | | | | BUG=36025 TEST=manual Review URL: http://codereview.chromium.org/1744003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45424 0039d316-1c4b-4281-b951-d872f2087c98
* bsd: refactor XDG bits of linux_util into a shared file.evan@chromium.org2010-04-221-1/+1
| | | | | | | | | This allows the shared code to build on the BSDs without them needing to build _linux files. Review URL: http://codereview.chromium.org/1701005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45380 0039d316-1c4b-4281-b951-d872f2087c98
* Unlike a real TCPClientSocket, the MockTCPClientSocket was still callingmbelshe@chromium.org2010-04-222-0/+6
| | | | | | | | | | | | | | | the pending_callback_ for IO after being disconnected. This did cause a bug in one of the SpdySession tests, SpdyNetworkTransactionTest.WriteError, since the SpdySession would delete itself shortly after calling Disconnect on its socket. Contributed by gavinp@google.com BUG=41394 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45317 0039d316-1c4b-4281-b951-d872f2087c98
* Mark TelnetServerTest.ServerClientSend as flaky.phajdan.jr@chromium.org2010-04-221-1/+2
| | | | | | | | | | | TBR=apavlov TEST=still flaky BUG=38093 Review URL: http://codereview.chromium.org/1730006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45314 0039d316-1c4b-4281-b951-d872f2087c98
* Throttle writes rather than just taking it all at once. Fixes crashing as ↵avi@chromium.org2010-04-221-2/+15
| | | | | | | | | | | well as slowness. BUG=http://crbug.com/41775 ; http://crbug.com/42232 TEST=none Review URL: http://codereview.chromium.org/1756004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45311 0039d316-1c4b-4281-b951-d872f2087c98
* Temporarily revert certain Omnibox, toolbar, tab animations, and othershess@chromium.org2010-04-223-262/+80
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | UI changes for purposes of testing and merging into mstone-5. Also ++kThemePackVersion and regenerate the cached theme pak. Reverted changes: r45213: GTK: Override cursor colors in chrome-theme mode. r45103: Support drawing nano tabs in the tabstrip. r45084: GTK: Position the EV certificate stuff inside a green bubble. r44979: Subclassing the InfoBubble to handle anchoring bubbles basedon... r44957: GTK: Tint the geolocation icons in gtk mode. r44943: Changes FormatURL to not strip http if the host starts with ft... r44930: Remove an icon that is no longer used. r44929: SSL UI changes, Windows, code side (images are separate). r44859: SSL UI changes (icons). TBRed since trybots hate binary patches. r44822: GTK: Select better greens in the native omnibox popup. r44814: GTK: navigate to URL on PRIMARY when middle-clicking the locat... r44789: [Mac] Bookmark star missing on NTP and BMM. r44775: [Mac] Centralize hack to make tests work with AutocompleteClas... r44678: Display the SECURITY_WARNING status in the location bar for the r44648: [Mac] Add an arrow cursor rect for the location image. r44615: Revert r44611 because it may have broken "unit_tests" on "Vist... r44611: Display the SECURITY_WARNING status in the location bar for the r44577: Revert 44572 - [Mac] Update locationbar icon as user types. r44572: [Mac] Update location-bar icon as user types. r44555: GTK: Use correct button mask on reload button. r44545: [Mac] Omnibox text drag drag URL when select-all. r44523: GTK: Prevent inappropriate drag of location bar location icon. r44519: GTK: make the primary selection include the url's scheme when ... r44492: [Mac] Fix search icon in keyword search to be right-side-up. r44415: GTK: Update top padding on icons in the autocomplete popup. r44401: GTK: Tint omnibox icons in GTK mode differently. r44380: GTK: Move reload in gtk mode and fix omnibox popup location. r44282: Fixes crash in autocomplete when typing some URLs. The problem r44273: [Mac] PDF icons for omnibox nits. r44269: Fix build break due to bad merge resolve r44268: Shift omnibox dropdown in and up on Windows, and square off th... r44178: GTK: fix TTS padding. r44177: Round the top left and right edges of the toolbar. r44171: Images only checkin for try server goodness. r44163: GTK: fix padding of autocomplete popup. r44152: [Mac] PDF icons for omnibox. r44145: GTK: Theme the icons in the location bar and use GTK colors fo... r44140: Strips http from the omnibox r44131: Fixes bugs in new tab strip animations where they weren't doin... r44116: Change the default theme colors. r44117: Add newline to EOF to fix CrOS builder. r44115: Make the bottom edges of the opaque frame rounded. r44091: [Mac] No star icon or page actions in omnibox on popups. r44087: Don't allow drag or click on location icon when editing in omn... r44021: [GTK] Add TTS lens graphic to linux TTS box. r44008: [Mac] Tweak location icon spacing in omnibox. r43977: GTK: don't show the star or page actions in ShouldOnlyShowLoca... r43972: Make the firstrun bubble point at a better spot now that the l... r43971: [Mac] Location icon in omnibox as drag source. r43970: Make the star and page action icons not appear on popup windows. r43954: Fixes bug in TabStrip where dragging tab out then back in rapidly r43864: Tweaks to BoundsAnimator/SlideAnimation and TabStrip: r43787: Allow location icon to be dragged & dropped. This also fixes ... r43759: Changes end cap of tab-to-search images. r43740: Change bookmark bar toggle to ctrl-shift-b. r43723: Show Page Info dialog on mouse up, not mouse down. r43677: Fix Mac build failure. r43676: Replace omnibox icons with new set that are all the same size ... r43596: Fix browser test TestStarButtonAccObj. r43593: Disables TestStarButtonAccObj. r43582: Changes tab strip to use BoundsAnimator for tab strip animatio... r43563: GTK: don't show reload button for popup/app windows. r43562: Star/reload shuffle, Windows version. r43540: [Mac] Magnifying glass in keyword-search bubble. r43482: Adds images needed for new tab animation. I'm separating this ... r43422: Add reload mask resource. r43392: GTK: make the location icon a drag source. r43376: [Mac] Move star button into page-actions area of omnibox. r43357: [Mac] Line up omnibox popup under field. r43290: gtk: fix display of icons in omnibox popup r43269: GTK: fix reload button. r43249: [Mac] Rearrange SSL status icon/label in omnibox. r43248: BrowserThemePack: Adds persistant ids for the reload endcaps. r43241: GTK: more location bar updates. r43191: Fix memory leak in BrowserThemePack. r43154: GTK: set the new star button's ID r43151: Fix bad conflict resolution for r43146. r43146: GTK: toolbar reload/star shuffle. r43025: Show the location bar icon (almost) all the time, and have its... r43023: Add new images for new reload button. No code change. r42782: Remove this icon, now that it's no longer used (due to my secu... r42502: Omnibox M5 work, part 1: Security changes r42245: Check in new icons for omnibox security changes alone, so that... BUG=none TEST=Eyjafjallajokull R=pkasting@chromium.org,beng@chromium.org git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45267 0039d316-1c4b-4281-b951-d872f2087c98
* SPDY: Don't embed a NUL in SetNextProtos(). This makes NPN work again.willchan@chromium.org2010-04-211-1/+1
| | | | | | Review URL: http://codereview.chromium.org/1762003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45249 0039d316-1c4b-4281-b951-d872f2087c98
* Fix the SpdyShark plugin to use the updated compression dictionary.mbelshe@chromium.org2010-04-211-1/+1
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/1695003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45212 0039d316-1c4b-4281-b951-d872f2087c98
* With the GOAWAY code we now can have a case where we attemptmbelshe@chromium.org2010-04-211-1/+2
| | | | | | | | | | | | | | to remove the session from the pool twice. Recover, instead of abort, on that case. Caught by existing test case already. TBR=willchan BUG=none TEST=SpdyNetworkTransactionTest.GoAwayWithActiveStream git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45211 0039d316-1c4b-4281-b951-d872f2087c98
* Fix crasher on SpdySession teardown. When we close the session on error,mbelshe@chromium.org2010-04-212-0/+33
| | | | | | | | | | | | | | | | | | we can get into a case where we delete the session itself while cleaning out the active streams. This ends up with a re-entrant call into CloseAllStreams. Fix is to self-hold a reference during teardown. The test case crashes without the fix, and works fine with the fix. BUG=42215 TEST=SpdyNetworkTransactionTest.GoAwayWithActiveStream Review URL: http://codereview.chromium.org/1711008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45210 0039d316-1c4b-4281-b951-d872f2087c98
* SPDY: Fix unittest-only leak.willchan@chromium.org2010-04-213-23/+21
| | | | | | | | | | We leaked the SpdySessionPool and SpdySession in the test since they have a circular reference. This is usually broken by a GOAWAY frame in real code, but we have to manually break the circular reference here. BUG=42084 Review URL: http://codereview.chromium.org/1695001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45198 0039d316-1c4b-4281-b951-d872f2087c98
* Run DiskCache tests under TSan on Wintimurrrr@chromium.org2010-04-211-4/+0
| | | | | | | TBR=glider Review URL: http://codereview.chromium.org/1746003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45180 0039d316-1c4b-4281-b951-d872f2087c98
* Don't process the same address for websocket throttling.ukai@chromium.org2010-04-212-0/+41
| | | | | | | | | | | | | | Host resolver might return address list that contains the same address twice or more. In this case, we should not process the address for websocket throttling multiple times. If we don't have duplicate check of address, it would put the job throttle by the job itself (deadlock). I think this is cause of failure in Linux perf (webkit.org) bot and websocket fail to connect localhost on ubuntu (crbug.com/36652) BUG=36652,41319,40995 TEST=none Review URL: http://codereview.chromium.org/1750001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45156 0039d316-1c4b-4281-b951-d872f2087c98
* Use HttpRequestHeaders for extra_headers.willchan@chromium.org2010-04-2028-318/+409
| | | | | | | | BUG=22588 Review URL: http://codereview.chromium.org/1604011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45096 0039d316-1c4b-4281-b951-d872f2087c98
* SSL fixes for sites with buggy DEFLATE support.agl@chromium.org2010-04-204-5/+147
| | | | | | | | | | | | | | | | | | | | | | | 1) Keep a global set of known buggy hosts in memory. Previously we would fallback to SSLv3 with each connection. While I quite like the idea of making these buggy sites slow, it doesn't really help users and it feels silly. 2) Catch SSL decompression alerts while reading the initial data from the server and fallback so SSLv3. Since we added False Start, servers which believe that they support DEFLATE compression but fail at it are not detected as a handshake error. Rather they cause an error when reading the first byte of application level data. BUG=41591 TEST=Navigate to https://ws.sso.post.ch/ without an SSL error http://codereview.chromium.org/1585041 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45088 0039d316-1c4b-4281-b951-d872f2087c98
* This CL moves the MockSSPILibrary out of http_auth_sspi_win_unittests.cc and ↵cbentzel@chromium.org2010-04-204-157/+209
| | | | | | | | | | | | | | | into it's own file at mock_http_auth_sspi_win.[h|cc]. I did this in preparation of another CL which uses the mock SSPI library in http_auth_handler_negotiate_win_unittest.cc. There are no behavior changes introduced in this CL. BUG=None TEST=net_unittests.exe --gtest_filter="*HttpAuthSSPI*" Review URL: http://codereview.chromium.org/1600032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45046 0039d316-1c4b-4281-b951-d872f2087c98
* Disable HttpNetworkSessionTest.FlushOnNetworkChange under ThreadSanitizer.glider@chromium.org2010-04-201-0/+3
| | | | | | | | | TBR=timurr,willchan BUG=41958 Review URL: http://codereview.chromium.org/1520042 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45027 0039d316-1c4b-4281-b951-d872f2087c98
* Fix websocket key generation algorithm.ukai@chromium.org2010-04-201-5/+5
| | | | | | | | | | | | http://html5.org/tools/web-apps-tracker?from=5054&to=5055 changed the order to insert random character and space in key. BUG=none TEST=none Review URL: http://codereview.chromium.org/1631023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45015 0039d316-1c4b-4281-b951-d872f2087c98
* Cancel IPv6 probe jobs during shutdown.eroman@chromium.org2010-04-201-0/+4
| | | | | | | | | | This works around bug where chrome sometimes leaks URLRequests past destruction of the IO thread. BUG=41986 Review URL: http://codereview.chromium.org/1518037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45003 0039d316-1c4b-4281-b951-d872f2087c98
* Mac: Generate valid <keygen> data if challenge string is emptysnej@chromium.org2010-04-191-1/+7
| | | | | | | | | | This works around an apparent bug in Apple's ASN.1 encoder. BUG=41679 TEST=Manual testing with comodo.com or a local test site Review URL: http://codereview.chromium.org/1549047 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44980 0039d316-1c4b-4281-b951-d872f2087c98
* Fix crash on IP address change.willchan@chromium.org2010-04-1927-185/+191
| | | | | | | | | | Revert r43908: "Flush socket pools and SPDY session pool properly on explicit requests and network changes." This change was reverted on the 375 branch, but not on trunk. BUG=41190 Review URL: http://codereview.chromium.org/1604045 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44973 0039d316-1c4b-4281-b951-d872f2087c98
* SPDY: Remove invalid DCHECK.willchan@chromium.org2010-04-192-2/+5
| | | | | | | | After GOAWAY frame support, it's possible for multiple SpdySessions to exist for the same host port pair. Review URL: http://codereview.chromium.org/1630029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44971 0039d316-1c4b-4281-b951-d872f2087c98
* SPDY: Change Chrome code to support new NPN protocols.willchan@chromium.org2010-04-193-7/+14
| | | | | | Review URL: http://codereview.chromium.org/1575048 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44961 0039d316-1c4b-4281-b951-d872f2087c98
* Changes FormatURL to not strip http if the host starts with ftp or ↵sky@chromium.org2010-04-192-2/+62
| | | | | | | | | | | | | | | | | | | | | https[!a-z]. This is necessitated by the omnibox treating ftp.www.com as ftp://www.com as well as security problems. I also changed FormatURL to always reset the supplied url_parse::Parsed. I did this as in writing my test I uncovered a long standing bug where a component wasn't getting reset. It seems much safer to always reset than rely on all code paths setting every component. BUG=41585, 41652 TEST=make sure the omnibox doesn't strip http off urls that start with ftp. Review URL: http://codereview.chromium.org/1574034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44943 0039d316-1c4b-4281-b951-d872f2087c98
* Update about:cache to display cached metadata for an entry.tonyg@chromium.org2010-04-195-22/+24
| | | | | | | | | | Also, factor a constant for the number of cache data indices. BUG=32407 TEST=None Review URL: http://codereview.chromium.org/1594036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44918 0039d316-1c4b-4281-b951-d872f2087c98
* Added NetLog statements for Canonical name lookup.cbentzel@chromium.org2010-04-192-0/+8
| | | | | | | | | BUG=None TEST=None Review URL: http://codereview.chromium.org/1629016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44910 0039d316-1c4b-4281-b951-d872f2087c98
* Linux: correctly ignore KDE "indirect" environment variable proxy settings ↵mdm@chromium.org2010-04-181-0/+2
| | | | | | | | | | when they are unset BUG=41095 TEST=configure KDE to use proxy settings from unset environment variables, it should not try to use the variable names as proxies Review URL: http://codereview.chromium.org/1518036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44892 0039d316-1c4b-4281-b951-d872f2087c98
* Fix a deadlock that could happen during shutdown if a host resolve request ↵eroman@chromium.org2010-04-1710-116/+471
| | | | | | | | | | | | | was outstanding by a PAC script. The solution is to abort the oustanding host resolver request during shutdown, and wake-up the blocked PAC thread. BUG=41244 TEST=SingleThreadedProxyResolverWithBridgedHostResolverTest.ShutdownDeadlock Review URL: http://codereview.chromium.org/1527037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44864 0039d316-1c4b-4281-b951-d872f2087c98
* SPDY: Minor code cleanup.willchan@chromium.org2010-04-161-4/+5
| | | | | | | | | | Use !empty() instead of size(). Fix a LOG bug where we printed the wrong string. Use DCHECK_GT. Review URL: http://codereview.chromium.org/1668002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44839 0039d316-1c4b-4281-b951-d872f2087c98
* Fix FindTopStalledGroup() to catch groups correctly.willchan@chromium.org2010-04-162-9/+40
| | | | | | | | BUG=41262 Review URL: http://codereview.chromium.org/1650004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44836 0039d316-1c4b-4281-b951-d872f2087c98
* Fix crash in WriteSocket() when sending Settings framesmbelshe@chromium.org2010-04-163-1/+28
| | | | | | | | | | | | | | | and compression is enabled. We need better unit tests for the compressed-frame testing. Filed bug 41805 to implement those. BUG=41803 TEST=NONE Review URL: http://codereview.chromium.org/1648014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44819 0039d316-1c4b-4281-b951-d872f2087c98
* Refactored to pass the URLSecurityManager via the HttpAuthFactory class to ↵ahendrickson@chromium.org2010-04-1617-143/+138
| | | | | | | | | | | | | the HttpNetworkSession. Fixed a bug where the command-line whitelist was not being propagated down to the URLSecurityManager. BUG=29596 TEST=None Review URL: http://codereview.chromium.org/1634005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44811 0039d316-1c4b-4281-b951-d872f2087c98
* A bit wider SpdyNetwork gtest filter for TSan/Wintimurrrr@chromium.org2010-04-161-1/+2
| | | | | | | TBR=glider Review URL: http://codereview.chromium.org/1610033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44780 0039d316-1c4b-4281-b951-d872f2087c98
* Adding extra argument DCHECKs to AddressList methods.cbentzel@chromium.org2010-04-162-2/+11
| | | | | | | | | BUG=40796 TEST=net_unittests.exe --gtest_filter="*AddressList*" Review URL: http://codereview.chromium.org/1560028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44772 0039d316-1c4b-4281-b951-d872f2087c98
* Do not call NSS functions if NSS initialization failed.wtc@chromium.org2010-04-162-3/+11
| | | | | | | | | R=agl BUG=36071 TEST=none Review URL: http://codereview.chromium.org/1545034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44728 0039d316-1c4b-4281-b951-d872f2087c98