OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/leadership_daemon_manager_client.h" | 5 #include "chromeos/dbus/leadership_daemon_manager_client.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
10 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 const std::string& property_name); | 86 const std::string& property_name); |
87 | 87 |
88 void OnObjectPathDBusMethod(const ObjectPathDBusMethodCallback& callback, | 88 void OnObjectPathDBusMethod(const ObjectPathDBusMethodCallback& callback, |
89 dbus::Response* response); | 89 dbus::Response* response); |
90 void OnStringDBusMethod(const StringDBusMethodCallback& callback, | 90 void OnStringDBusMethod(const StringDBusMethodCallback& callback, |
91 dbus::Response* response); | 91 dbus::Response* response); |
92 void OnVoidDBusMethod(const VoidDBusMethodCallback& callback, | 92 void OnVoidDBusMethod(const VoidDBusMethodCallback& callback, |
93 dbus::Response* response); | 93 dbus::Response* response); |
94 | 94 |
95 // List of observers interested in event notifications from us. | 95 // List of observers interested in event notifications from us. |
96 ObserverList<Observer> observers_; | 96 base::ObserverList<Observer> observers_; |
97 dbus::ObjectManager* object_manager_; | 97 dbus::ObjectManager* object_manager_; |
98 base::WeakPtrFactory<LeadershipDaemonManagerClientImpl> weak_ptr_factory_; | 98 base::WeakPtrFactory<LeadershipDaemonManagerClientImpl> weak_ptr_factory_; |
99 | 99 |
100 DISALLOW_COPY_AND_ASSIGN(LeadershipDaemonManagerClientImpl); | 100 DISALLOW_COPY_AND_ASSIGN(LeadershipDaemonManagerClientImpl); |
101 }; | 101 }; |
102 | 102 |
103 LeadershipDaemonManagerClientImpl::LeadershipDaemonManagerClientImpl() | 103 LeadershipDaemonManagerClientImpl::LeadershipDaemonManagerClientImpl() |
104 : object_manager_(nullptr), weak_ptr_factory_(this) { | 104 : object_manager_(nullptr), weak_ptr_factory_(this) { |
105 } | 105 } |
106 | 106 |
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
383 | 383 |
384 LeadershipDaemonManagerClient::~LeadershipDaemonManagerClient() { | 384 LeadershipDaemonManagerClient::~LeadershipDaemonManagerClient() { |
385 } | 385 } |
386 | 386 |
387 // static | 387 // static |
388 LeadershipDaemonManagerClient* LeadershipDaemonManagerClient::Create() { | 388 LeadershipDaemonManagerClient* LeadershipDaemonManagerClient::Create() { |
389 return new LeadershipDaemonManagerClientImpl(); | 389 return new LeadershipDaemonManagerClientImpl(); |
390 } | 390 } |
391 | 391 |
392 } // namespace chromeos | 392 } // namespace chromeos |
OLD | NEW |