| OLD | NEW |
| 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 #include "chromeos/dbus/peer_daemon_manager_client.h" | 5 #include "chromeos/dbus/peer_daemon_manager_client.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 dbus::Response* response); | 83 dbus::Response* response); |
| 84 void OnVoidDBusMethod(const VoidDBusMethodCallback& callback, | 84 void OnVoidDBusMethod(const VoidDBusMethodCallback& callback, |
| 85 dbus::Response* response); | 85 dbus::Response* response); |
| 86 void OnManagerPropertyChanged(const std::string& property_name); | 86 void OnManagerPropertyChanged(const std::string& property_name); |
| 87 void OnServicePropertyChanged(const dbus::ObjectPath& object_path, | 87 void OnServicePropertyChanged(const dbus::ObjectPath& object_path, |
| 88 const std::string& property_name); | 88 const std::string& property_name); |
| 89 void OnPeerPropertyChanged(const dbus::ObjectPath& object_path, | 89 void OnPeerPropertyChanged(const dbus::ObjectPath& object_path, |
| 90 const std::string& property_name); | 90 const std::string& property_name); |
| 91 | 91 |
| 92 // List of observers interested in event notifications from us. | 92 // List of observers interested in event notifications from us. |
| 93 ObserverList<Observer> observers_; | 93 base::ObserverList<Observer> observers_; |
| 94 dbus::ObjectManager* object_manager_; | 94 dbus::ObjectManager* object_manager_; |
| 95 | 95 |
| 96 base::WeakPtrFactory<PeerDaemonManagerClientImpl> weak_ptr_factory_; | 96 base::WeakPtrFactory<PeerDaemonManagerClientImpl> weak_ptr_factory_; |
| 97 | 97 |
| 98 DISALLOW_COPY_AND_ASSIGN(PeerDaemonManagerClientImpl); | 98 DISALLOW_COPY_AND_ASSIGN(PeerDaemonManagerClientImpl); |
| 99 }; | 99 }; |
| 100 | 100 |
| 101 PeerDaemonManagerClientImpl::PeerDaemonManagerClientImpl() | 101 PeerDaemonManagerClientImpl::PeerDaemonManagerClientImpl() |
| 102 : object_manager_(nullptr), weak_ptr_factory_(this) { | 102 : object_manager_(nullptr), weak_ptr_factory_(this) { |
| 103 } | 103 } |
| (...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 417 | 417 |
| 418 PeerDaemonManagerClient::~PeerDaemonManagerClient() { | 418 PeerDaemonManagerClient::~PeerDaemonManagerClient() { |
| 419 } | 419 } |
| 420 | 420 |
| 421 // static | 421 // static |
| 422 PeerDaemonManagerClient* PeerDaemonManagerClient::Create() { | 422 PeerDaemonManagerClient* PeerDaemonManagerClient::Create() { |
| 423 return new PeerDaemonManagerClientImpl(); | 423 return new PeerDaemonManagerClientImpl(); |
| 424 } | 424 } |
| 425 | 425 |
| 426 } // namespace chromeos | 426 } // namespace chromeos |
| OLD | NEW |