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

Unified Diff: net/base/host_resolver_impl.cc

Issue 6142009: Upating the app, ceee, chrome, ipc, media, and net directories to use the correct lock.h file. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Unified patch updating all references to the new base/synchronization/lock.h Created 9 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/base/dnsrr_resolver.cc ('k') | net/base/host_resolver_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/host_resolver_impl.cc
diff --git a/net/base/host_resolver_impl.cc b/net/base/host_resolver_impl.cc
index 6e4637ce3fac175ff8fa620e1a8bbe821a632aa0..1cc625d03d45f8c964cddc656cf17f9cb58b1c17 100644
--- a/net/base/host_resolver_impl.cc
+++ b/net/base/host_resolver_impl.cc
@@ -18,12 +18,12 @@
#include "base/compiler_specific.h"
#include "base/debug/debugger.h"
#include "base/debug/stack_trace.h"
-#include "base/lock.h"
#include "base/message_loop.h"
#include "base/metrics/field_trial.h"
#include "base/metrics/histogram.h"
#include "base/stl_util-inl.h"
#include "base/string_util.h"
+#include "base/synchronization/lock.h"
#include "base/threading/worker_pool.h"
#include "base/time.h"
#include "base/utf_string_conversions.h"
@@ -405,7 +405,7 @@ class HostResolverImpl::Job
// Mark the job as cancelled, so when worker thread completes it will
// not try to post completion to origin loop.
{
- AutoLock locked(origin_loop_lock_);
+ base::AutoLock locked(origin_loop_lock_);
origin_loop_ = NULL;
}
@@ -482,7 +482,7 @@ class HostResolverImpl::Job
// The origin loop could go away while we are trying to post to it, so we
// need to call its PostTask method inside a lock. See ~HostResolver.
{
- AutoLock locked(origin_loop_lock_);
+ base::AutoLock locked(origin_loop_lock_);
if (origin_loop_) {
origin_loop_->PostTask(FROM_HERE,
NewRunnableMethod(this, &Job::OnLookupComplete));
@@ -603,7 +603,7 @@ class HostResolverImpl::Job
RequestsList requests_; // The requests waiting on this job.
// Used to post ourselves onto the origin thread.
- Lock origin_loop_lock_;
+ base::Lock origin_loop_lock_;
MessageLoop* origin_loop_;
// Hold an owning reference to the HostResolverProc that we are going to use.
@@ -661,7 +661,7 @@ class HostResolverImpl::IPv6ProbeJob
DCHECK(IsOnOriginThread());
resolver_ = NULL; // Read/write ONLY on origin thread.
{
- AutoLock locked(origin_loop_lock_);
+ base::AutoLock locked(origin_loop_lock_);
// Origin loop may be destroyed before we can use it!
origin_loop_ = NULL; // Write ONLY on origin thread.
}
@@ -695,7 +695,7 @@ class HostResolverImpl::IPv6ProbeJob
// The origin loop could go away while we are trying to post to it, so we
// need to call its PostTask method inside a lock. See ~HostResolver.
{
- AutoLock locked(origin_loop_lock_);
+ base::AutoLock locked(origin_loop_lock_);
if (origin_loop_) {
origin_loop_->PostTask(FROM_HERE, reply);
return;
@@ -722,7 +722,7 @@ class HostResolverImpl::IPv6ProbeJob
HostResolverImpl* resolver_;
// Used to post ourselves onto the origin thread.
- Lock origin_loop_lock_;
+ base::Lock origin_loop_lock_;
MessageLoop* origin_loop_;
DISALLOW_COPY_AND_ASSIGN(IPv6ProbeJob);
« no previous file with comments | « net/base/dnsrr_resolver.cc ('k') | net/base/host_resolver_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698