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

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

Issue 7084007: Adds URLRequestJob bytes read to NetLog. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: sync Created 9 years, 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_STREAM_SOCKET_H_ 5 #ifndef NET_SOCKET_STREAM_SOCKET_H_
6 #define NET_SOCKET_STREAM_SOCKET_H_ 6 #define NET_SOCKET_STREAM_SOCKET_H_
7 #pragma once 7 #pragma once
8 8
9 #include "net/base/net_log.h" 9 #include "net/base/net_log.h"
10 #include "net/socket/socket.h" 10 #include "net/socket/socket.h"
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 bool was_ever_connected_; 113 bool was_ever_connected_;
114 // Indicate if this socket was ever used to transmit or receive data. 114 // Indicate if this socket was ever used to transmit or receive data.
115 bool was_used_to_convey_data_; 115 bool was_used_to_convey_data_;
116 116
117 // Indicate if this socket was first created for speculative use, and 117 // Indicate if this socket was first created for speculative use, and
118 // identify the motivation. 118 // identify the motivation.
119 bool omnibox_speculation_; 119 bool omnibox_speculation_;
120 bool subresource_speculation_; 120 bool subresource_speculation_;
121 DISALLOW_COPY_AND_ASSIGN(UseHistory); 121 DISALLOW_COPY_AND_ASSIGN(UseHistory);
122 }; 122 };
123
124 // Logs a SOCKET_BYTES_RECEIVED or SOCKET_BYTES_SENT event to the NetLog.
125 // Determines whether to log the received bytes or not, based on the current
126 // logging level.
127 void LogByteTransfer(const BoundNetLog& net_log, NetLog::EventType event_type,
128 int byte_count, char* bytes) const;
129 }; 123 };
130 124
131 } // namespace net 125 } // namespace net
132 126
133 #endif // NET_SOCKET_STREAM_SOCKET_H_ 127 #endif // NET_SOCKET_STREAM_SOCKET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698