diff options
author | mbelshe@chromium.org <mbelshe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-26 18:29:29 +0000 |
---|---|---|
committer | mbelshe@chromium.org <mbelshe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-26 18:29:29 +0000 |
commit | 7f7e9239652bbb552bd5ea62d9702edfcf86528c (patch) | |
tree | 1b64094581e7cf5f084bc456acf933b871eea4b6 /jingle | |
parent | 35011c75172bd9085890021da04027925b09addd (diff) | |
download | chromium_src-7f7e9239652bbb552bd5ea62d9702edfcf86528c.zip chromium_src-7f7e9239652bbb552bd5ea62d9702edfcf86528c.tar.gz chromium_src-7f7e9239652bbb552bd5ea62d9702edfcf86528c.tar.bz2 |
Add experimental option for TCP FastOpen.
Use chrome.exe --enable-tcp-fastopen
BUG=none
TEST=none yet
Review URL: http://codereview.chromium.org/4039003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@63913 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'jingle')
-rw-r--r-- | jingle/notifier/base/fake_ssl_client_socket.cc | 4 | ||||
-rw-r--r-- | jingle/notifier/base/fake_ssl_client_socket.h | 1 | ||||
-rw-r--r-- | jingle/notifier/base/fake_ssl_client_socket_unittest.cc | 1 |
3 files changed, 6 insertions, 0 deletions
diff --git a/jingle/notifier/base/fake_ssl_client_socket.cc b/jingle/notifier/base/fake_ssl_client_socket.cc index cd5d5f5..2cc643d 100644 --- a/jingle/notifier/base/fake_ssl_client_socket.cc +++ b/jingle/notifier/base/fake_ssl_client_socket.cc @@ -328,4 +328,8 @@ bool FakeSSLClientSocket::WasEverUsed() const { return transport_socket_->WasEverUsed(); } +bool FakeSSLClientSocket::UsingTCPFastOpen() const { + return transport_socket_->UsingTCPFastOpen(); +} + } // namespace notifier diff --git a/jingle/notifier/base/fake_ssl_client_socket.h b/jingle/notifier/base/fake_ssl_client_socket.h index d70d4d3..8105002 100644 --- a/jingle/notifier/base/fake_ssl_client_socket.h +++ b/jingle/notifier/base/fake_ssl_client_socket.h @@ -60,6 +60,7 @@ class FakeSSLClientSocket : public net::ClientSocket { virtual void SetSubresourceSpeculation(); virtual void SetOmniboxSpeculation(); virtual bool WasEverUsed() const; + virtual bool UsingTCPFastOpen() const; private: enum HandshakeState { diff --git a/jingle/notifier/base/fake_ssl_client_socket_unittest.cc b/jingle/notifier/base/fake_ssl_client_socket_unittest.cc index 3b7aa50..bbc8fd8 100644 --- a/jingle/notifier/base/fake_ssl_client_socket_unittest.cc +++ b/jingle/notifier/base/fake_ssl_client_socket_unittest.cc @@ -60,6 +60,7 @@ class MockClientSocket : public net::ClientSocket { MOCK_METHOD0(SetSubresourceSpeculation, void()); MOCK_METHOD0(SetOmniboxSpeculation, void()); MOCK_CONST_METHOD0(WasEverUsed, bool()); + MOCK_CONST_METHOD0(UsingTCPFastOpen, bool()); }; // Break up |data| into a bunch of chunked MockReads/Writes and push |