OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "net/socket_stream/socket_stream_job.h" |
| 6 |
| 7 #include "net/socket_stream/socket_stream_job_manager.h" |
| 8 |
| 9 namespace net { |
| 10 |
| 11 static SocketStreamJobManager* GetJobManager() { |
| 12 return Singleton<SocketStreamJobManager>::get(); |
| 13 } |
| 14 |
| 15 // static |
| 16 SocketStreamJob::ProtocolFactory* SocketStreamJob::RegisterProtocolFactory( |
| 17 const std::string& scheme, ProtocolFactory* factory) { |
| 18 return GetJobManager()->RegisterProtocolFactory(scheme, factory); |
| 19 } |
| 20 |
| 21 // static |
| 22 SocketStreamJob* SocketStreamJob::CreateSocketStreamJob( |
| 23 const GURL& url, SocketStream::Delegate* delegate) { |
| 24 return GetJobManager()->CreateJob(url, delegate); |
| 25 } |
| 26 |
| 27 } // namespace net |
OLD | NEW |