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

Side by Side Diff: chromeos/audio/cras_audio_handler.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 | « chromeos/audio/audio_devices_pref_handler_impl.h ('k') | chromeos/cert_loader.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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_AUDIO_CRAS_AUDIO_HANDLER_H_ 5 #ifndef CHROMEOS_AUDIO_CRAS_AUDIO_HANDLER_H_
6 #define CHROMEOS_AUDIO_CRAS_AUDIO_HANDLER_H_ 6 #define CHROMEOS_AUDIO_CRAS_AUDIO_HANDLER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <queue> 9 #include <queue>
10 10
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 CHANGED_DEVICE, 299 CHANGED_DEVICE,
300 }; 300 };
301 301
302 // Checks if |device| is a newly discovered, changed, or existing device for 302 // Checks if |device| is a newly discovered, changed, or existing device for
303 // the nodes sent from NodesChanged signal. 303 // the nodes sent from NodesChanged signal.
304 DeviceStatus CheckDeviceStatus(const AudioDevice& device); 304 DeviceStatus CheckDeviceStatus(const AudioDevice& device);
305 305
306 void NotifyActiveNodeChanged(bool is_input); 306 void NotifyActiveNodeChanged(bool is_input);
307 307
308 scoped_refptr<AudioDevicesPrefHandler> audio_pref_handler_; 308 scoped_refptr<AudioDevicesPrefHandler> audio_pref_handler_;
309 ObserverList<AudioObserver> observers_; 309 base::ObserverList<AudioObserver> observers_;
310 310
311 // Audio data and state. 311 // Audio data and state.
312 AudioDeviceMap audio_devices_; 312 AudioDeviceMap audio_devices_;
313 313
314 AudioDevicePriorityQueue input_devices_pq_; 314 AudioDevicePriorityQueue input_devices_pq_;
315 AudioDevicePriorityQueue output_devices_pq_; 315 AudioDevicePriorityQueue output_devices_pq_;
316 316
317 bool output_mute_on_; 317 bool output_mute_on_;
318 bool input_mute_on_; 318 bool input_mute_on_;
319 int output_volume_; 319 int output_volume_;
320 int input_gain_; 320 int input_gain_;
321 uint64_t active_output_node_id_; 321 uint64_t active_output_node_id_;
322 uint64_t active_input_node_id_; 322 uint64_t active_input_node_id_;
323 bool has_alternative_input_; 323 bool has_alternative_input_;
324 bool has_alternative_output_; 324 bool has_alternative_output_;
325 325
326 bool output_mute_locked_; 326 bool output_mute_locked_;
327 327
328 // Failures are not logged at startup, since CRAS may not be running yet. 328 // Failures are not logged at startup, since CRAS may not be running yet.
329 bool log_errors_; 329 bool log_errors_;
330 330
331 base::WeakPtrFactory<CrasAudioHandler> weak_ptr_factory_; 331 base::WeakPtrFactory<CrasAudioHandler> weak_ptr_factory_;
332 332
333 DISALLOW_COPY_AND_ASSIGN(CrasAudioHandler); 333 DISALLOW_COPY_AND_ASSIGN(CrasAudioHandler);
334 }; 334 };
335 335
336 } // namespace chromeos 336 } // namespace chromeos
337 337
338 #endif // CHROMEOS_AUDIO_CRAS_AUDIO_HANDLER_H_ 338 #endif // CHROMEOS_AUDIO_CRAS_AUDIO_HANDLER_H_
OLDNEW
« no previous file with comments | « chromeos/audio/audio_devices_pref_handler_impl.h ('k') | chromeos/cert_loader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698