| OLD | NEW |
| 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_PROXY_MULTI_THREADED_PROXY_RESOLVER_H_ | 5 #ifndef NET_PROXY_MULTI_THREADED_PROXY_RESOLVER_H_ |
| 6 #define NET_PROXY_MULTI_THREADED_PROXY_RESOLVER_H_ | 6 #define NET_PROXY_MULTI_THREADED_PROXY_RESOLVER_H_ |
| 7 | 7 |
| 8 #include <stddef.h> |
| 9 |
| 8 #include <set> | 10 #include <set> |
| 9 | 11 |
| 10 #include "base/basictypes.h" | |
| 11 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
| 12 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
| 13 #include "net/base/net_export.h" | 14 #include "net/base/net_export.h" |
| 14 #include "net/proxy/proxy_resolver_factory.h" | 15 #include "net/proxy/proxy_resolver_factory.h" |
| 15 | 16 |
| 16 namespace net { | 17 namespace net { |
| 17 class ProxyResolver; | 18 class ProxyResolver; |
| 18 | 19 |
| 19 // MultiThreadedProxyResolverFactory creates instances of a ProxyResolver | 20 // MultiThreadedProxyResolverFactory creates instances of a ProxyResolver |
| 20 // implementation that runs synchronous ProxyResolver implementations on worker | 21 // implementation that runs synchronous ProxyResolver implementations on worker |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 void RemoveJob(Job* job); | 71 void RemoveJob(Job* job); |
| 71 | 72 |
| 72 const size_t max_num_threads_; | 73 const size_t max_num_threads_; |
| 73 | 74 |
| 74 std::set<Job*> jobs_; | 75 std::set<Job*> jobs_; |
| 75 }; | 76 }; |
| 76 | 77 |
| 77 } // namespace net | 78 } // namespace net |
| 78 | 79 |
| 79 #endif // NET_PROXY_MULTI_THREADED_PROXY_RESOLVER_H_ | 80 #endif // NET_PROXY_MULTI_THREADED_PROXY_RESOLVER_H_ |
| OLD | NEW |