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

Side by Side Diff: base/observer_list_threadsafe.h

Issue 7879006: Delete Tracked, and move Location to its own file. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 9 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « base/message_loop_proxy_impl.cc ('k') | base/synchronization/waitable_event_watcher_posix.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #ifndef BASE_OBSERVER_LIST_THREADSAFE_H_ 5 #ifndef BASE_OBSERVER_LIST_THREADSAFE_H_
6 #define BASE_OBSERVER_LIST_THREADSAFE_H_ 6 #define BASE_OBSERVER_LIST_THREADSAFE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <map> 10 #include <map>
11 11
12 #include "base/basictypes.h" 12 #include "base/basictypes.h"
13 #include "base/callback_old.h" 13 #include "base/callback_old.h"
14 #include "base/location.h"
14 #include "base/logging.h" 15 #include "base/logging.h"
15 #include "base/memory/ref_counted.h" 16 #include "base/memory/ref_counted.h"
16 #include "base/message_loop.h" 17 #include "base/message_loop.h"
17 #include "base/message_loop_proxy.h" 18 #include "base/message_loop_proxy.h"
18 #include "base/observer_list.h" 19 #include "base/observer_list.h"
19 #include "base/task.h" 20 #include "base/task.h"
20 21
21 /////////////////////////////////////////////////////////////////////////////// 22 ///////////////////////////////////////////////////////////////////////////////
22 // 23 //
23 // OVERVIEW: 24 // OVERVIEW:
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 typedef std::map<MessageLoop*, ObserverListContext*> ObserversListMap; 264 typedef std::map<MessageLoop*, ObserverListContext*> ObserversListMap;
264 265
265 base::Lock list_lock_; // Protects the observer_lists_. 266 base::Lock list_lock_; // Protects the observer_lists_.
266 ObserversListMap observer_lists_; 267 ObserversListMap observer_lists_;
267 const NotificationType type_; 268 const NotificationType type_;
268 269
269 DISALLOW_COPY_AND_ASSIGN(ObserverListThreadSafe); 270 DISALLOW_COPY_AND_ASSIGN(ObserverListThreadSafe);
270 }; 271 };
271 272
272 #endif // BASE_OBSERVER_LIST_THREADSAFE_H_ 273 #endif // BASE_OBSERVER_LIST_THREADSAFE_H_
OLDNEW
« no previous file with comments | « base/message_loop_proxy_impl.cc ('k') | base/synchronization/waitable_event_watcher_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698