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/ap_manager_client.h" | 5 #include "chromeos/dbus/ap_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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 const std::string& property_name); | 104 const std::string& property_name); |
105 | 105 |
106 void OnObjectPathDBusMethod(const ObjectPathDBusMethodCallback& callback, | 106 void OnObjectPathDBusMethod(const ObjectPathDBusMethodCallback& callback, |
107 dbus::Response* response); | 107 dbus::Response* response); |
108 void OnStringDBusMethod(const StringDBusMethodCallback& callback, | 108 void OnStringDBusMethod(const StringDBusMethodCallback& callback, |
109 dbus::Response* response); | 109 dbus::Response* response); |
110 void OnVoidDBusMethod(const VoidDBusMethodCallback& callback, | 110 void OnVoidDBusMethod(const VoidDBusMethodCallback& callback, |
111 dbus::Response* response); | 111 dbus::Response* response); |
112 | 112 |
113 // List of observers interested in event notifications from us. | 113 // List of observers interested in event notifications from us. |
114 ObserverList<Observer> observers_; | 114 base::ObserverList<Observer> observers_; |
115 dbus::ObjectManager* object_manager_; | 115 dbus::ObjectManager* object_manager_; |
116 base::WeakPtrFactory<ApManagerClientImpl> weak_ptr_factory_; | 116 base::WeakPtrFactory<ApManagerClientImpl> weak_ptr_factory_; |
117 | 117 |
118 DISALLOW_COPY_AND_ASSIGN(ApManagerClientImpl); | 118 DISALLOW_COPY_AND_ASSIGN(ApManagerClientImpl); |
119 }; | 119 }; |
120 | 120 |
121 ApManagerClientImpl::ApManagerClientImpl() | 121 ApManagerClientImpl::ApManagerClientImpl() |
122 : object_manager_(nullptr), weak_ptr_factory_(this) { | 122 : object_manager_(nullptr), weak_ptr_factory_(this) { |
123 } | 123 } |
124 | 124 |
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
479 | 479 |
480 ApManagerClient::~ApManagerClient() { | 480 ApManagerClient::~ApManagerClient() { |
481 } | 481 } |
482 | 482 |
483 // static | 483 // static |
484 ApManagerClient* ApManagerClient::Create() { | 484 ApManagerClient* ApManagerClient::Create() { |
485 return new ApManagerClientImpl(); | 485 return new ApManagerClientImpl(); |
486 } | 486 } |
487 | 487 |
488 } // namespace chromeos | 488 } // namespace chromeos |
OLD | NEW |