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

Side by Side Diff: device/hid/input_service_linux.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
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 DEVICE_HID_INPUT_SERVICE_LINUX_H_ 5 #ifndef DEVICE_HID_INPUT_SERVICE_LINUX_H_
6 #define DEVICE_HID_INPUT_SERVICE_LINUX_H_ 6 #define DEVICE_HID_INPUT_SERVICE_LINUX_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 void WillDestroyCurrentMessageLoop() override; 77 void WillDestroyCurrentMessageLoop() override;
78 78
79 protected: 79 protected:
80 80
81 void AddDevice(const InputDeviceInfo& info); 81 void AddDevice(const InputDeviceInfo& info);
82 void RemoveDevice(const std::string& id); 82 void RemoveDevice(const std::string& id);
83 83
84 bool CalledOnValidThread() const; 84 bool CalledOnValidThread() const;
85 85
86 DeviceMap devices_; 86 DeviceMap devices_;
87 ObserverList<Observer> observers_; 87 base::ObserverList<Observer> observers_;
88 88
89 private: 89 private:
90 friend struct base::DefaultDeleter<InputServiceLinux>; 90 friend struct base::DefaultDeleter<InputServiceLinux>;
91 91
92 base::ThreadChecker thread_checker_; 92 base::ThreadChecker thread_checker_;
93 93
94 DISALLOW_COPY_AND_ASSIGN(InputServiceLinux); 94 DISALLOW_COPY_AND_ASSIGN(InputServiceLinux);
95 }; 95 };
96 96
97 } // namespace device 97 } // namespace device
98 98
99 #endif // DEVICE_HID_INPUT_SERVICE_LINUX_H_ 99 #endif // DEVICE_HID_INPUT_SERVICE_LINUX_H_
OLDNEW
« no previous file with comments | « device/hid/hid_service.h ('k') | device/media_transfer_protocol/media_transfer_protocol_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698