summaryrefslogtreecommitdiffstats
path: root/net/socket_stream/socket_stream.h
diff options
context:
space:
mode:
authorukai@chromium.org <ukai@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-13 02:30:38 +0000
committerukai@chromium.org <ukai@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-13 02:30:38 +0000
commitc6f27df9b6d00653f079a03bf805aa7645ab3b22 (patch)
tree290f394d8d4e9eae89abfece8d0529439cb25b61 /net/socket_stream/socket_stream.h
parent6a37279aca0ed7e894894042de4b226f46af6bf6 (diff)
downloadchromium_src-c6f27df9b6d00653f079a03bf805aa7645ab3b22.zip
chromium_src-c6f27df9b6d00653f079a03bf805aa7645ab3b22.tar.gz
chromium_src-c6f27df9b6d00653f079a03bf805aa7645ab3b22.tar.bz2
Plumb LoadLog into SocketStream
BUG=none TEST=none Review URL: http://codereview.chromium.org/385003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31881 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/socket_stream/socket_stream.h')
-rw-r--r--net/socket_stream/socket_stream.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/net/socket_stream/socket_stream.h b/net/socket_stream/socket_stream.h
index ad06be0..1892022 100644
--- a/net/socket_stream/socket_stream.h
+++ b/net/socket_stream/socket_stream.h
@@ -22,6 +22,7 @@
#include "net/http/http_auth_handler.h"
#include "net/proxy/proxy_service.h"
#include "net/socket/tcp_client_socket.h"
+#include "net/url_request/request_tracker.h"
#include "net/url_request/url_request_context.h"
namespace net {
@@ -29,6 +30,7 @@ namespace net {
class AuthChallengeInfo;
class ClientSocketFactory;
class HostResolver;
+class LoadLog;
class SSLConfigService;
class SingleRequestHostResolver;
class SocketStreamMetrics;
@@ -105,6 +107,8 @@ class SocketStream : public base::RefCountedThreadSafe<SocketStream> {
URLRequestContext* context() const { return context_.get(); }
void set_context(URLRequestContext* context);
+ LoadLog* load_log() const { return load_log_; }
+
// Opens the connection on the IO thread.
// Once the connection is established, calls delegate's OnConnected.
void Connect();
@@ -195,6 +199,7 @@ class SocketStream : public base::RefCountedThreadSafe<SocketStream> {
};
typedef std::deque< scoped_refptr<IOBufferWithSize> > PendingDataQueue;
+ friend class RequestTracker<SocketStream>;
friend class base::RefCountedThreadSafe<SocketStream>;
~SocketStream();
@@ -246,6 +251,11 @@ class SocketStream : public base::RefCountedThreadSafe<SocketStream> {
SSLConfigService* ssl_config_service() const;
ProxyService* proxy_service() const;
+ void GetInfoForTracker(
+ RequestTracker<SocketStream>::RecentRequestInfo *info) const;
+
+ scoped_refptr<LoadLog> load_log_;
+
GURL url_;
Delegate* delegate_;
int max_pending_send_allowed_;
@@ -306,6 +316,8 @@ class SocketStream : public base::RefCountedThreadSafe<SocketStream> {
scoped_ptr<SocketStreamMetrics> metrics_;
+ RequestTracker<SocketStream>::Node request_tracker_node_;
+
DISALLOW_COPY_AND_ASSIGN(SocketStream);
};