OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #include "net/socket_stream/socket_stream_job.h" | 5 #include "net/socket_stream/socket_stream_job.h" |
6 | 6 |
| 7 #include "base/singleton.h" |
7 #include "net/socket_stream/socket_stream_job_manager.h" | 8 #include "net/socket_stream/socket_stream_job_manager.h" |
8 | 9 |
9 namespace net { | 10 namespace net { |
10 | 11 |
11 static SocketStreamJobManager* GetJobManager() { | 12 static SocketStreamJobManager* GetJobManager() { |
12 return Singleton<SocketStreamJobManager>::get(); | 13 return Singleton<SocketStreamJobManager>::get(); |
13 } | 14 } |
14 | 15 |
15 // static | 16 // static |
16 SocketStreamJob::ProtocolFactory* SocketStreamJob::RegisterProtocolFactory( | 17 SocketStreamJob::ProtocolFactory* SocketStreamJob::RegisterProtocolFactory( |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 socket_->RestartWithAuth(username, password); | 53 socket_->RestartWithAuth(username, password); |
53 } | 54 } |
54 | 55 |
55 void SocketStreamJob::DetachDelegate() { | 56 void SocketStreamJob::DetachDelegate() { |
56 socket_->DetachDelegate(); | 57 socket_->DetachDelegate(); |
57 } | 58 } |
58 | 59 |
59 SocketStreamJob::~SocketStreamJob() {} | 60 SocketStreamJob::~SocketStreamJob() {} |
60 | 61 |
61 } // namespace net | 62 } // namespace net |
OLD | NEW |