OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "net/socket/websocket_endpoint_lock_manager.h" | 5 #include "net/socket/websocket_endpoint_lock_manager.h" |
6 | 6 |
7 #include "base/message_loop/message_loop.h" | 7 #include "base/message_loop/message_loop.h" |
8 #include "base/run_loop.h" | 8 #include "base/run_loop.h" |
9 #include "base/time/time.h" | 9 #include "base/time/time.h" |
10 #include "net/base/net_errors.h" | 10 #include "net/base/net_errors.h" |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 bool WasEverUsed() const override { return false; } | 47 bool WasEverUsed() const override { return false; } |
48 | 48 |
49 bool UsingTCPFastOpen() const override { return false; } | 49 bool UsingTCPFastOpen() const override { return false; } |
50 | 50 |
51 bool WasNpnNegotiated() const override { return false; } | 51 bool WasNpnNegotiated() const override { return false; } |
52 | 52 |
53 NextProto GetNegotiatedProtocol() const override { return kProtoUnknown; } | 53 NextProto GetNegotiatedProtocol() const override { return kProtoUnknown; } |
54 | 54 |
55 bool GetSSLInfo(SSLInfo* ssl_info) override { return false; } | 55 bool GetSSLInfo(SSLInfo* ssl_info) override { return false; } |
56 | 56 |
| 57 void GetConnectionAttempts(ConnectionAttempts* out) const override { |
| 58 out->clear(); |
| 59 } |
| 60 |
| 61 void ClearConnectionAttempts() override {} |
| 62 |
| 63 void AddConnectionAttempts(const ConnectionAttempts& attempts) override {} |
| 64 |
57 // Socket implementation | 65 // Socket implementation |
58 int Read(IOBuffer* buf, | 66 int Read(IOBuffer* buf, |
59 int buf_len, | 67 int buf_len, |
60 const CompletionCallback& callback) override { | 68 const CompletionCallback& callback) override { |
61 return ERR_FAILED; | 69 return ERR_FAILED; |
62 } | 70 } |
63 | 71 |
64 int Write(IOBuffer* buf, | 72 int Write(IOBuffer* buf, |
65 int buf_len, | 73 int buf_len, |
66 const CompletionCallback& callback) override { | 74 const CompletionCallback& callback) override { |
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
312 blocking_waiter.WaitForLock(); | 320 blocking_waiter.WaitForLock(); |
313 TimeTicks after_unlock = TimeTicks::Now(); | 321 TimeTicks after_unlock = TimeTicks::Now(); |
314 EXPECT_GE(after_unlock - before_unlock, unlock_delay); | 322 EXPECT_GE(after_unlock - before_unlock, unlock_delay); |
315 instance()->SetUnlockDelayForTesting(base::TimeDelta()); | 323 instance()->SetUnlockDelayForTesting(base::TimeDelta()); |
316 UnlockDummyEndpoint(1); | 324 UnlockDummyEndpoint(1); |
317 } | 325 } |
318 | 326 |
319 } // namespace | 327 } // namespace |
320 | 328 |
321 } // namespace net | 329 } // namespace net |
OLD | NEW |