| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/proxy/proxy_resolver_v8_tracing.h" | 5 #include "net/proxy/proxy_resolver_v8_tracing.h" |
| 6 | 6 |
| 7 #include <map> | 7 #include <map> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <utility> | 9 #include <utility> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 1054 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1065 const CompletionCallback callback_; | 1065 const CompletionCallback callback_; |
| 1066 int num_outstanding_callbacks_; | 1066 int num_outstanding_callbacks_; |
| 1067 | 1067 |
| 1068 DISALLOW_COPY_AND_ASSIGN(CreateJob); | 1068 DISALLOW_COPY_AND_ASSIGN(CreateJob); |
| 1069 }; | 1069 }; |
| 1070 | 1070 |
| 1071 ProxyResolverV8TracingFactoryImpl::ProxyResolverV8TracingFactoryImpl() { | 1071 ProxyResolverV8TracingFactoryImpl::ProxyResolverV8TracingFactoryImpl() { |
| 1072 } | 1072 } |
| 1073 | 1073 |
| 1074 ProxyResolverV8TracingFactoryImpl::~ProxyResolverV8TracingFactoryImpl() { | 1074 ProxyResolverV8TracingFactoryImpl::~ProxyResolverV8TracingFactoryImpl() { |
| 1075 for (auto job : jobs_) { | 1075 for (auto* job : jobs_) { |
| 1076 job->FactoryDestroyed(); | 1076 job->FactoryDestroyed(); |
| 1077 } | 1077 } |
| 1078 } | 1078 } |
| 1079 | 1079 |
| 1080 void ProxyResolverV8TracingFactoryImpl::CreateProxyResolverV8Tracing( | 1080 void ProxyResolverV8TracingFactoryImpl::CreateProxyResolverV8Tracing( |
| 1081 const scoped_refptr<ProxyResolverScriptData>& pac_script, | 1081 const scoped_refptr<ProxyResolverScriptData>& pac_script, |
| 1082 std::unique_ptr<ProxyResolverV8Tracing::Bindings> bindings, | 1082 std::unique_ptr<ProxyResolverV8Tracing::Bindings> bindings, |
| 1083 std::unique_ptr<ProxyResolverV8Tracing>* resolver, | 1083 std::unique_ptr<ProxyResolverV8Tracing>* resolver, |
| 1084 const CompletionCallback& callback, | 1084 const CompletionCallback& callback, |
| 1085 std::unique_ptr<ProxyResolverFactory::Request>* request) { | 1085 std::unique_ptr<ProxyResolverFactory::Request>* request) { |
| (...skipping 11 matching lines...) Expand all Loading... |
| 1097 | 1097 |
| 1098 } // namespace | 1098 } // namespace |
| 1099 | 1099 |
| 1100 // static | 1100 // static |
| 1101 std::unique_ptr<ProxyResolverV8TracingFactory> | 1101 std::unique_ptr<ProxyResolverV8TracingFactory> |
| 1102 ProxyResolverV8TracingFactory::Create() { | 1102 ProxyResolverV8TracingFactory::Create() { |
| 1103 return base::WrapUnique(new ProxyResolverV8TracingFactoryImpl()); | 1103 return base::WrapUnique(new ProxyResolverV8TracingFactoryImpl()); |
| 1104 } | 1104 } |
| 1105 | 1105 |
| 1106 } // namespace net | 1106 } // namespace net |
| OLD | NEW |