Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(821)

Side by Side Diff: net/socket/tcp_client_socket_libevent.h

Issue 12209085: Add histograms to track localStorage size and load time by size. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Add browser histograms and rename to clarify buckets. Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef NET_SOCKET_TCP_CLIENT_SOCKET_LIBEVENT_H_ 5 #ifndef NET_SOCKET_TCP_CLIENT_SOCKET_LIBEVENT_H_
6 #define NET_SOCKET_TCP_CLIENT_SOCKET_LIBEVENT_H_ 6 #define NET_SOCKET_TCP_CLIENT_SOCKET_LIBEVENT_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 BoundNetLog net_log_; 184 BoundNetLog net_log_;
185 185
186 // This socket was previously disconnected and has not been re-connected. 186 // This socket was previously disconnected and has not been re-connected.
187 bool previously_disconnected_; 187 bool previously_disconnected_;
188 188
189 // Record of connectivity and transmissions, for use in speculative connection 189 // Record of connectivity and transmissions, for use in speculative connection
190 // histograms. 190 // histograms.
191 UseHistory use_history_; 191 UseHistory use_history_;
192 192
193 // Enables experimental TCP FastOpen option. 193 // Enables experimental TCP FastOpen option.
194 bool use_tcp_fastopen_; 194 const bool use_tcp_fastopen_;
195 195
196 // True when TCP FastOpen is in use and we have done the connect. 196 // True when TCP FastOpen is in use and we have done the connect.
197 bool tcp_fastopen_connected_; 197 bool tcp_fastopen_connected_;
198 198
199 base::TimeTicks connect_start_time_; 199 base::TimeTicks connect_start_time_;
200 base::TimeDelta connect_time_micros_; 200 base::TimeDelta connect_time_micros_;
201 int64 num_bytes_read_; 201 int64 num_bytes_read_;
202 202
203 DISALLOW_COPY_AND_ASSIGN(TCPClientSocketLibevent); 203 DISALLOW_COPY_AND_ASSIGN(TCPClientSocketLibevent);
204 }; 204 };
205 205
206 } // namespace net 206 } // namespace net
207 207
208 #endif // NET_SOCKET_TCP_CLIENT_SOCKET_LIBEVENT_H_ 208 #endif // NET_SOCKET_TCP_CLIENT_SOCKET_LIBEVENT_H_
OLDNEW
« no previous file with comments | « no previous file | net/socket/tcp_client_socket_libevent.cc » ('j') | webkit/dom_storage/dom_storage_cached_area.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698