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

Side by Side Diff: device/nfc/nfc_adapter_chromeos.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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 DEVICE_NFC_NFC_ADAPTER_CHROMEOS_H_ 5 #ifndef DEVICE_NFC_NFC_ADAPTER_CHROMEOS_H_
6 #define DEVICE_NFC_NFC_ADAPTER_CHROMEOS_H_ 6 #define DEVICE_NFC_NFC_ADAPTER_CHROMEOS_H_
7 7
8 #include "base/memory/weak_ptr.h" 8 #include "base/memory/weak_ptr.h"
9 #include "base/observer_list.h" 9 #include "base/observer_list.h"
10 #include "chromeos/dbus/nfc_adapter_client.h" 10 #include "chromeos/dbus/nfc_adapter_client.h"
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 // Called by dbus:: on completion of the D-Bus method call to stop polling. 91 // Called by dbus:: on completion of the D-Bus method call to stop polling.
92 void OnStopPolling(const base::Closure& callback); 92 void OnStopPolling(const base::Closure& callback);
93 void OnStopPollingError(const ErrorCallback& error_callback, 93 void OnStopPollingError(const ErrorCallback& error_callback,
94 const std::string& error_name, 94 const std::string& error_name,
95 const std::string& error_message); 95 const std::string& error_message);
96 96
97 // Object path of the adapter that we are currently tracking. 97 // Object path of the adapter that we are currently tracking.
98 dbus::ObjectPath object_path_; 98 dbus::ObjectPath object_path_;
99 99
100 // List of observers interested in event notifications from us. 100 // List of observers interested in event notifications from us.
101 ObserverList<device::NfcAdapter::Observer> observers_; 101 base::ObserverList<device::NfcAdapter::Observer> observers_;
102 102
103 // Note: This should remain the last member so it'll be destroyed and 103 // Note: This should remain the last member so it'll be destroyed and
104 // invalidate its weak pointers before any other members are destroyed. 104 // invalidate its weak pointers before any other members are destroyed.
105 base::WeakPtrFactory<NfcAdapterChromeOS> weak_ptr_factory_; 105 base::WeakPtrFactory<NfcAdapterChromeOS> weak_ptr_factory_;
106 106
107 DISALLOW_COPY_AND_ASSIGN(NfcAdapterChromeOS); 107 DISALLOW_COPY_AND_ASSIGN(NfcAdapterChromeOS);
108 }; 108 };
109 109
110 } // namespace chromeos 110 } // namespace chromeos
111 111
112 #endif // DEVICE_NFC_NFC_ADAPTER_CHROMEOS_H_ 112 #endif // DEVICE_NFC_NFC_ADAPTER_CHROMEOS_H_
OLDNEW
« no previous file with comments | « device/media_transfer_protocol/media_transfer_protocol_manager.cc ('k') | device/nfc/nfc_peer_chromeos.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698