#include "perfetto/ext/ipc/service_proxy.h"
#include <utility>
#include "perfetto/base/logging.h"
#include "perfetto/ext/base/weak_ptr.h"
#include "perfetto/ext/ipc/service_descriptor.h"
#include "src/ipc/client_impl.h"
#include "protos/perfetto/ipc/wire_protocol.gen.h"
namespace perfetto {
namespace ipc {
ServiceProxy::ServiceProxy(EventListener* event_listener)
: … { … }
ServiceProxy::~ServiceProxy() { … }
void ServiceProxy::InitializeBinding(
base::WeakPtr<Client> client,
ServiceID service_id,
std::map<std::string, MethodID> remote_method_ids) { … }
void ServiceProxy::BeginInvoke(const std::string& method_name,
const ProtoMessage& request,
DeferredBase reply,
int fd) { … }
void ServiceProxy::EndInvoke(RequestID request_id,
std::unique_ptr<ProtoMessage> result,
bool has_more) { … }
void ServiceProxy::OnConnect(bool success) { … }
void ServiceProxy::OnDisconnect() { … }
base::WeakPtr<ServiceProxy> ServiceProxy::GetWeakPtr() const { … }
}
}