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

Side by Side Diff: base/observer_list_threadsafe.h

Issue 16514006: Update includes of message_loop_proxy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « base/message_loop/message_loop_proxy_impl.h ('k') | base/prefs/json_pref_store.h » ('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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 7
8 #include <algorithm> 8 #include <algorithm>
9 #include <map> 9 #include <map>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/bind.h" 12 #include "base/bind.h"
13 #include "base/location.h" 13 #include "base/location.h"
14 #include "base/logging.h" 14 #include "base/logging.h"
15 #include "base/memory/ref_counted.h" 15 #include "base/memory/ref_counted.h"
16 #include "base/message_loop.h" 16 #include "base/message_loop.h"
17 #include "base/message_loop_proxy.h" 17 #include "base/message_loop/message_loop_proxy.h"
18 #include "base/observer_list.h" 18 #include "base/observer_list.h"
19 #include "base/stl_util.h" 19 #include "base/stl_util.h"
20 #include "base/threading/platform_thread.h" 20 #include "base/threading/platform_thread.h"
21 21
22 /////////////////////////////////////////////////////////////////////////////// 22 ///////////////////////////////////////////////////////////////////////////////
23 // 23 //
24 // OVERVIEW: 24 // OVERVIEW:
25 // 25 //
26 // A thread-safe container for a list of observers. 26 // A thread-safe container for a list of observers.
27 // This is similar to the observer_list (see observer_list.h), but it 27 // This is similar to the observer_list (see observer_list.h), but it
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 ObserversListMap; 286 ObserversListMap;
287 287
288 mutable base::Lock list_lock_; // Protects the observer_lists_. 288 mutable base::Lock list_lock_; // Protects the observer_lists_.
289 ObserversListMap observer_lists_; 289 ObserversListMap observer_lists_;
290 const NotificationType type_; 290 const NotificationType type_;
291 291
292 DISALLOW_COPY_AND_ASSIGN(ObserverListThreadSafe); 292 DISALLOW_COPY_AND_ASSIGN(ObserverListThreadSafe);
293 }; 293 };
294 294
295 #endif // BASE_OBSERVER_LIST_THREADSAFE_H_ 295 #endif // BASE_OBSERVER_LIST_THREADSAFE_H_
OLDNEW
« no previous file with comments | « base/message_loop/message_loop_proxy_impl.h ('k') | base/prefs/json_pref_store.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698