#include "dbus/exported_object.h"
#include <stdint.h>
#include <utility>
#include "base/containers/contains.h"
#include "base/functional/bind.h"
#include "base/logging.h"
#include "base/memory/ref_counted.h"
#include "base/task/sequenced_task_runner.h"
#include "base/task/task_runner.h"
#include "base/threading/thread_restrictions.h"
#include "dbus/bus.h"
#include "dbus/error.h"
#include "dbus/message.h"
#include "dbus/object_path.h"
#include "dbus/scoped_dbus_error.h"
#include "dbus/util.h"
namespace dbus {
ExportedObject::ExportedObject(Bus* bus,
const ObjectPath& object_path)
: … { … }
ExportedObject::~ExportedObject() { … }
bool ExportedObject::ExportMethodAndBlock(
const std::string& interface_name,
const std::string& method_name,
const MethodCallCallback& method_call_callback) { … }
bool ExportedObject::UnexportMethodAndBlock(const std::string& interface_name,
const std::string& method_name) { … }
void ExportedObject::ExportMethod(
const std::string& interface_name,
const std::string& method_name,
const MethodCallCallback& method_call_callback,
OnExportedCallback on_exported_callback) { … }
void ExportedObject::UnexportMethod(
const std::string& interface_name,
const std::string& method_name,
OnUnexportedCallback on_unexported_callback) { … }
void ExportedObject::SendSignal(Signal* signal) { … }
void ExportedObject::Unregister() { … }
void ExportedObject::ExportMethodInternal(
const std::string& interface_name,
const std::string& method_name,
const MethodCallCallback& method_call_callback,
OnExportedCallback on_exported_callback) { … }
void ExportedObject::UnexportMethodInternal(
const std::string& interface_name,
const std::string& method_name,
OnUnexportedCallback on_unexported_callback) { … }
void ExportedObject::OnExported(OnExportedCallback on_exported_callback,
const std::string& interface_name,
const std::string& method_name,
bool success) { … }
void ExportedObject::OnUnexported(OnExportedCallback on_unexported_callback,
const std::string& interface_name,
const std::string& method_name,
bool success) { … }
void ExportedObject::SendSignalInternal(DBusMessage* signal_message) { … }
bool ExportedObject::Register() { … }
DBusHandlerResult ExportedObject::HandleMessage(
DBusConnection* connection,
DBusMessage* raw_message) { … }
void ExportedObject::RunMethod(const MethodCallCallback& method_call_callback,
std::unique_ptr<MethodCall> method_call) { … }
void ExportedObject::SendResponse(std::unique_ptr<MethodCall> method_call,
std::unique_ptr<Response> response) { … }
void ExportedObject::OnMethodCompleted(std::unique_ptr<MethodCall> method_call,
std::unique_ptr<Response> response) { … }
void ExportedObject::OnUnregistered(DBusConnection* connection) { … }
DBusHandlerResult ExportedObject::HandleMessageThunk(
DBusConnection* connection,
DBusMessage* raw_message,
void* user_data) { … }
void ExportedObject::OnUnregisteredThunk(DBusConnection *connection,
void* user_data) { … }
}