#include "dbus/object_manager.h"
#include <stddef.h>
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/location.h"
#include "base/logging.h"
#include "base/metrics/histogram.h"
#include "base/strings/stringprintf.h"
#include "dbus/bus.h"
#include "dbus/dbus_statistics.h"
#include "dbus/error.h"
#include "dbus/message.h"
#include "dbus/object_proxy.h"
#include "dbus/property.h"
#include "dbus/util.h"
namespace dbus {
ObjectManager::Object::Object()
: … { … }
ObjectManager::Object::~Object() = default;
scoped_refptr<ObjectManager> ObjectManager::Create(
Bus* bus,
const std::string& service_name,
const ObjectPath& object_path) { … }
ObjectManager::ObjectManager(Bus* bus,
const std::string& service_name,
const ObjectPath& object_path)
: … { … }
ObjectManager::~ObjectManager() { … }
void ObjectManager::RegisterInterface(const std::string& interface_name,
Interface* interface) { … }
void ObjectManager::UnregisterInterface(const std::string& interface_name) { … }
bool ObjectManager::IsInterfaceRegisteredForTesting(
const std::string& interface_name) const { … }
std::vector<ObjectPath> ObjectManager::GetObjects() { … }
std::vector<ObjectPath> ObjectManager::GetObjectsWithInterface(
const std::string& interface_name) { … }
ObjectProxy* ObjectManager::GetObjectProxy(const ObjectPath& object_path) { … }
PropertySet* ObjectManager::GetProperties(const ObjectPath& object_path,
const std::string& interface_name) { … }
void ObjectManager::GetManagedObjects() { … }
void ObjectManager::CleanUp() { … }
bool ObjectManager::SetupMatchRuleAndFilter() { … }
void ObjectManager::OnSetupMatchRuleAndFilterComplete(bool success) { … }
DBusHandlerResult ObjectManager::HandleMessageThunk(DBusConnection* connection,
DBusMessage* raw_message,
void* user_data) { … }
DBusHandlerResult ObjectManager::HandleMessage(DBusConnection* connection,
DBusMessage* raw_message) { … }
void ObjectManager::NotifyPropertiesChanged(
const dbus::ObjectPath object_path,
Signal* signal) { … }
void ObjectManager::NotifyPropertiesChangedHelper(
const dbus::ObjectPath object_path,
Signal* signal) { … }
void ObjectManager::OnGetManagedObjects(Response* response) { … }
void ObjectManager::InterfacesAddedReceived(Signal* signal) { … }
void ObjectManager::InterfacesAddedConnected(const std::string& interface_name,
const std::string& signal_name,
bool success) { … }
void ObjectManager::InterfacesRemovedReceived(Signal* signal) { … }
void ObjectManager::InterfacesRemovedConnected(
const std::string& interface_name,
const std::string& signal_name,
bool success) { … }
void ObjectManager::UpdateObject(const ObjectPath& object_path,
MessageReader* reader) { … }
void ObjectManager::AddInterface(const ObjectPath& object_path,
const std::string& interface_name,
MessageReader* reader) { … }
void ObjectManager::RemoveInterface(const ObjectPath& object_path,
const std::string& interface_name) { … }
void ObjectManager::UpdateServiceNameOwner(const std::string& new_owner) { … }
void ObjectManager::NameOwnerChanged(const std::string& old_owner,
const std::string& new_owner) { … }
}