Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1012)

Side by Side Diff: net/proxy/proxy_resolver_v8_tracing.cc

Issue 2030663002: Migrate WaitableEvent to enum-based constructor in net/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@WEvent_enums
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 int num_outstanding_callbacks_; 329 int num_outstanding_callbacks_;
330 330
331 DISALLOW_COPY_AND_ASSIGN(ProxyResolverV8TracingImpl); 331 DISALLOW_COPY_AND_ASSIGN(ProxyResolverV8TracingImpl);
332 }; 332 };
333 333
334 Job::Job(const Job::Params* params, 334 Job::Job(const Job::Params* params,
335 std::unique_ptr<ProxyResolverV8Tracing::Bindings> bindings) 335 std::unique_ptr<ProxyResolverV8Tracing::Bindings> bindings)
336 : origin_runner_(base::ThreadTaskRunnerHandle::Get()), 336 : origin_runner_(base::ThreadTaskRunnerHandle::Get()),
337 params_(params), 337 params_(params),
338 bindings_(std::move(bindings)), 338 bindings_(std::move(bindings)),
339 event_(true, false), 339 event_(base::WaitableEvent::ResetPolicy::MANUAL,
340 base::WaitableEvent::InitialState::NOT_SIGNALED),
340 last_num_dns_(0), 341 last_num_dns_(0),
341 pending_dns_(NULL) { 342 pending_dns_(NULL) {
342 CheckIsOnOriginThread(); 343 CheckIsOnOriginThread();
343 } 344 }
344 345
345 void Job::StartCreateV8Resolver( 346 void Job::StartCreateV8Resolver(
346 const scoped_refptr<ProxyResolverScriptData>& script_data, 347 const scoped_refptr<ProxyResolverScriptData>& script_data,
347 std::unique_ptr<ProxyResolverV8>* resolver, 348 std::unique_ptr<ProxyResolverV8>* resolver,
348 const CompletionCallback& callback) { 349 const CompletionCallback& callback) {
349 CheckIsOnOriginThread(); 350 CheckIsOnOriginThread();
(...skipping 746 matching lines...) Expand 10 before | Expand all | Expand 10 after
1096 1097
1097 } // namespace 1098 } // namespace
1098 1099
1099 // static 1100 // static
1100 std::unique_ptr<ProxyResolverV8TracingFactory> 1101 std::unique_ptr<ProxyResolverV8TracingFactory>
1101 ProxyResolverV8TracingFactory::Create() { 1102 ProxyResolverV8TracingFactory::Create() {
1102 return base::WrapUnique(new ProxyResolverV8TracingFactoryImpl()); 1103 return base::WrapUnique(new ProxyResolverV8TracingFactoryImpl());
1103 } 1104 }
1104 1105
1105 } // namespace net 1106 } // namespace net
OLDNEW
« no previous file with comments | « net/proxy/proxy_config_service_linux_unittest.cc ('k') | net/tools/quic/test_tools/server_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698