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

Side by Side Diff: chromeos/accelerometer/accelerometer_reader.h

Issue 1162943002: Replace more ObserverList with base::ObserverList. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@observer
Patch Set: Created 5 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
« no previous file with comments | « cc/surfaces/surface_manager.h ('k') | chromeos/accelerometer/accelerometer_reader.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 CHROMEOS_ACCELEROMETER_ACCELEROMETER_READER_H_ 5 #ifndef CHROMEOS_ACCELEROMETER_ACCELEROMETER_READER_H_
6 #define CHROMEOS_ACCELEROMETER_ACCELEROMETER_READER_H_ 6 #define CHROMEOS_ACCELEROMETER_ACCELEROMETER_READER_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "base/observer_list_threadsafe.h" 10 #include "base/observer_list_threadsafe.h"
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 90
91 // The task runner to use for blocking tasks. 91 // The task runner to use for blocking tasks.
92 scoped_refptr<base::TaskRunner> task_runner_; 92 scoped_refptr<base::TaskRunner> task_runner_;
93 93
94 // The last seen accelerometer data. 94 // The last seen accelerometer data.
95 scoped_refptr<AccelerometerUpdate> update_; 95 scoped_refptr<AccelerometerUpdate> update_;
96 96
97 // The accelerometer configuration. 97 // The accelerometer configuration.
98 scoped_refptr<Configuration> configuration_; 98 scoped_refptr<Configuration> configuration_;
99 99
100 scoped_refptr<ObserverListThreadSafe<Observer>> observers_; 100 scoped_refptr<base::ObserverListThreadSafe<Observer>> observers_;
101 101
102 base::WeakPtrFactory<AccelerometerReader> weak_factory_; 102 base::WeakPtrFactory<AccelerometerReader> weak_factory_;
103 103
104 DISALLOW_COPY_AND_ASSIGN(AccelerometerReader); 104 DISALLOW_COPY_AND_ASSIGN(AccelerometerReader);
105 }; 105 };
106 106
107 } // namespace chromeos 107 } // namespace chromeos
108 108
109 #endif // CHROMEOS_ACCELEROMETER_ACCELEROMETER_READER_H_ 109 #endif // CHROMEOS_ACCELEROMETER_ACCELEROMETER_READER_H_
OLDNEW
« no previous file with comments | « cc/surfaces/surface_manager.h ('k') | chromeos/accelerometer/accelerometer_reader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698