| Index: chrome/browser/net/network_stats.h
|
| diff --git a/chrome/browser/net/network_stats.h b/chrome/browser/net/network_stats.h
|
| index 206f6228d5d1d5080bfce6029c15be69e659c5b6..562eb759bf763d120b5f2b075d20578f50a00339 100644
|
| --- a/chrome/browser/net/network_stats.h
|
| +++ b/chrome/browser/net/network_stats.h
|
| @@ -66,6 +66,16 @@ class NetworkStats {
|
| STATUS_MAX, // Bounding value.
|
| };
|
|
|
| + enum ReadState { // Used to track if |socket_| has a pending read.
|
| + READ_STATE_IDLE,
|
| + READ_STATE_READ_PENDING,
|
| + };
|
| +
|
| + enum WriteState { // Used to track if |socket_| has a pending write.
|
| + WRITE_STATE_IDLE,
|
| + WRITE_STATE_WRITE_PENDING,
|
| + };
|
| +
|
| // |TestType| specifies the possible tests we may run
|
| // (except for the first and the last serving as boundaries).
|
| enum TestType {
|
| @@ -306,6 +316,10 @@ class NetworkStats {
|
| // Token received from server for authentication.
|
| ProbePacket_Token token_;
|
|
|
| + // The state variables to track pending reads/writes.
|
| + ReadState read_state_;
|
| + WriteState write_state_;
|
| +
|
| // We use this factory to create timeout tasks for socket's ReadData.
|
| base::WeakPtrFactory<NetworkStats> weak_factory_;
|
|
|
|
|