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

Side by Side Diff: third_party/cacheinvalidation/overrides/google/cacheinvalidation/mutex.h

Issue 1720001: Added Google Cache Invalidation library to DEPS and got it to compile (Closed)
Patch Set: Synced to head Created 10 years, 8 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
(Empty)
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef GOOGLE_CACHEINVALIDATION_MUTEX_H_
6 #define GOOGLE_CACHEINVALIDATION_MUTEX_H_
7
8 #include "base/lock.h"
9 #include "base/logging.h"
10
11 namespace invalidation {
12
13 typedef ::Lock Mutex;
14
15 class MutexLock {
16 public:
17 explicit MutexLock(Mutex* m) : auto_lock_(*m) {}
18
19 private:
20 AutoLock auto_lock_;
21 DISALLOW_COPY_AND_ASSIGN(MutexLock);
22 };
23
24 } // namespace invalidation
25
26 #endif // GOOGLE_CACHEINVALIDATION_MUTEX_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698