Index: net/socket_stream/socket_stream_job_manager.cc |
diff --git a/net/socket_stream/socket_stream_job_manager.cc b/net/socket_stream/socket_stream_job_manager.cc |
index 7dd0d6bbb76c1bc9016ed645c3bfbb2d94ac0e27..de2f0a87ad1b976707c395f1de8c99ee08bc32ba 100644 |
--- a/net/socket_stream/socket_stream_job_manager.cc |
+++ b/net/socket_stream/socket_stream_job_manager.cc |
@@ -4,6 +4,8 @@ |
#include "net/socket_stream/socket_stream_job_manager.h" |
+#include "base/singleton.h" |
+ |
namespace net { |
SocketStreamJobManager::SocketStreamJobManager() { |
@@ -12,6 +14,11 @@ SocketStreamJobManager::SocketStreamJobManager() { |
SocketStreamJobManager::~SocketStreamJobManager() { |
} |
+// static |
+SocketStreamJobManager* SocketStreamJobManager::GetInstance() { |
+ return Singleton<SocketStreamJobManager>::get(); |
+} |
+ |
SocketStreamJob* SocketStreamJobManager::CreateJob( |
const GURL& url, SocketStream::Delegate* delegate) const { |
// If url is invalid, create plain SocketStreamJob, which will close |