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

Unified Diff: chrome/browser/cancelable_request.cc

Issue 5977010: Move CancellationFlag and WaitableEvent to the synchronization subdirectory.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 12 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 | « chrome/browser/cancelable_request.h ('k') | chrome/browser/dom_ui/bug_report_ui.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/cancelable_request.cc
===================================================================
--- chrome/browser/cancelable_request.cc (revision 70364)
+++ chrome/browser/cancelable_request.cc (working copy)
@@ -1,4 +1,4 @@
-// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -13,7 +13,7 @@
// deleted, or do other bad things. This can occur on shutdown (or profile
// destruction) when a request is scheduled, completed (but not dispatched),
// then the Profile is deleted.
- AutoLock lock(pending_request_lock_);
+ base::AutoLock lock(pending_request_lock_);
while (!pending_requests_.empty())
CancelRequestLocked(pending_requests_.begin());
}
@@ -23,7 +23,7 @@
CancelableRequestConsumerBase* consumer) {
Handle handle;
{
- AutoLock lock(pending_request_lock_);
+ base::AutoLock lock(pending_request_lock_);
handle = next_handle_;
pending_requests_[next_handle_] = request;
@@ -37,7 +37,7 @@
}
void CancelableRequestProvider::CancelRequest(Handle handle) {
- AutoLock lock(pending_request_lock_);
+ base::AutoLock lock(pending_request_lock_);
CancelRequestLocked(pending_requests_.find(handle));
}
@@ -57,7 +57,7 @@
void CancelableRequestProvider::RequestCompleted(Handle handle) {
CancelableRequestConsumerBase* consumer = NULL;
{
- AutoLock lock(pending_request_lock_);
+ base::AutoLock lock(pending_request_lock_);
CancelableRequestMap::iterator i = pending_requests_.find(handle);
if (i == pending_requests_.end()) {
« no previous file with comments | « chrome/browser/cancelable_request.h ('k') | chrome/browser/dom_ui/bug_report_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698