#include "components/services/patch/public/cpp/patch.h"
#include <string>
#include <utility>
#include "base/files/file.h"
#include "base/files/file_path.h"
#include "base/files/file_util.h"
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_refptr.h"
#include "base/task/sequenced_task_runner.h"
#include "mojo/public/cpp/bindings/remote.h"
namespace patch {
namespace {
class PatchParams : public base::RefCounted<PatchParams> { … };
void PatchDone(scoped_refptr<PatchParams> params, int result) { … }
}
void PuffPatch(mojo::PendingRemote<mojom::FilePatcher> file_patcher,
base::File input_file,
base::File patch_file,
base::File output_file,
base::OnceCallback<void(int)> callback) { … }
}