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

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

Issue 7529043: Rename NET_API to NET_EXPORT, and rename NET_TEST to NET_EXPORT_PRIVATE. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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_CLIENT_SOCKET_POOL_HISTOGRAMS_H_ 5 #ifndef NET_SOCKET_CLIENT_SOCKET_POOL_HISTOGRAMS_H_
6 #define NET_SOCKET_CLIENT_SOCKET_POOL_HISTOGRAMS_H_ 6 #define NET_SOCKET_CLIENT_SOCKET_POOL_HISTOGRAMS_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "base/time.h" 12 #include "base/time.h"
13 #include "net/base/net_api.h" 13 #include "net/base/net_export.h"
14 14
15 namespace base { 15 namespace base {
16 class Histogram; 16 class Histogram;
17 } 17 }
18 18
19 namespace net { 19 namespace net {
20 20
21 class NET_TEST ClientSocketPoolHistograms { 21 class NET_EXPORT_PRIVATE ClientSocketPoolHistograms {
22 public: 22 public:
23 ClientSocketPoolHistograms(const std::string& pool_name); 23 ClientSocketPoolHistograms(const std::string& pool_name);
24 ~ClientSocketPoolHistograms(); 24 ~ClientSocketPoolHistograms();
25 25
26 void AddSocketType(int socket_reuse_type) const; 26 void AddSocketType(int socket_reuse_type) const;
27 void AddRequestTime(base::TimeDelta time) const; 27 void AddRequestTime(base::TimeDelta time) const;
28 void AddUnusedIdleTime(base::TimeDelta time) const; 28 void AddUnusedIdleTime(base::TimeDelta time) const;
29 void AddReusedIdleTime(base::TimeDelta time) const; 29 void AddReusedIdleTime(base::TimeDelta time) const;
30 30
31 private: 31 private:
32 base::Histogram* socket_type_; 32 base::Histogram* socket_type_;
33 base::Histogram* request_time_; 33 base::Histogram* request_time_;
34 base::Histogram* unused_idle_time_; 34 base::Histogram* unused_idle_time_;
35 base::Histogram* reused_idle_time_; 35 base::Histogram* reused_idle_time_;
36 36
37 bool is_http_proxy_connection_; 37 bool is_http_proxy_connection_;
38 bool is_socks_connection_; 38 bool is_socks_connection_;
39 39
40 DISALLOW_COPY_AND_ASSIGN(ClientSocketPoolHistograms); 40 DISALLOW_COPY_AND_ASSIGN(ClientSocketPoolHistograms);
41 }; 41 };
42 42
43 } // namespace net 43 } // namespace net
44 44
45 #endif // NET_SOCKET_CLIENT_SOCKET_POOL_HISTOGRAMS_H_ 45 #endif // NET_SOCKET_CLIENT_SOCKET_POOL_HISTOGRAMS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698