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

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

Issue 2696403007: Add a multiplier in tracking certificate memory allocation size (Closed)
Patch Set: self Created 3 years, 9 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
« no previous file with comments | « net/socket/ssl_client_socket_unittest.cc ('k') | net/socket/stream_socket.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_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 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 16 matching lines...) Expand all
27 public: 27 public:
28 SocketMemoryStats(); 28 SocketMemoryStats();
29 ~SocketMemoryStats(); 29 ~SocketMemoryStats();
30 // Estimated total memory usage of this socket in bytes. 30 // Estimated total memory usage of this socket in bytes.
31 size_t total_size; 31 size_t total_size;
32 // Size of all buffers used by this socket in bytes. 32 // Size of all buffers used by this socket in bytes.
33 size_t buffer_size; 33 size_t buffer_size;
34 // Number of certs used by this socket. 34 // Number of certs used by this socket.
35 size_t cert_count; 35 size_t cert_count;
36 // Total size of certs used by this socket in bytes. 36 // Total size of certs used by this socket in bytes.
37 size_t serialized_cert_size; 37 size_t cert_size;
38 38
39 private: 39 private:
40 DISALLOW_COPY_AND_ASSIGN(SocketMemoryStats); 40 DISALLOW_COPY_AND_ASSIGN(SocketMemoryStats);
41 }; 41 };
42 42
43 ~StreamSocket() override {} 43 ~StreamSocket() override {}
44 44
45 // Called to establish a connection. Returns OK if the connection could be 45 // Called to establish a connection. Returns OK if the connection could be
46 // established synchronously. Otherwise, ERR_IO_PENDING is returned and the 46 // established synchronously. Otherwise, ERR_IO_PENDING is returned and the
47 // given callback will run asynchronously when the connection is established 47 // given callback will run asynchronously when the connection is established
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 // identify the motivation. 173 // identify the motivation.
174 bool omnibox_speculation_; 174 bool omnibox_speculation_;
175 bool subresource_speculation_; 175 bool subresource_speculation_;
176 DISALLOW_COPY_AND_ASSIGN(UseHistory); 176 DISALLOW_COPY_AND_ASSIGN(UseHistory);
177 }; 177 };
178 }; 178 };
179 179
180 } // namespace net 180 } // namespace net
181 181
182 #endif // NET_SOCKET_STREAM_SOCKET_H_ 182 #endif // NET_SOCKET_STREAM_SOCKET_H_
OLDNEW
« no previous file with comments | « net/socket/ssl_client_socket_unittest.cc ('k') | net/socket/stream_socket.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698