#ifndef COMPONENTS_CRONET_NATIVE_RUNNABLES_H_
#define COMPONENTS_CRONET_NATIVE_RUNNABLES_H_
#include "base/functional/callback.h"
#include "components/cronet/native/generated/cronet.idl_impl_interface.h"
namespace cronet {
class OnceClosureRunnable : public Cronet_Runnable {
public:
explicit OnceClosureRunnable(base::OnceClosure task);
OnceClosureRunnable(const OnceClosureRunnable&) = delete;
OnceClosureRunnable& operator=(const OnceClosureRunnable&) = delete;
~OnceClosureRunnable() override;
void Run() override;
private:
base::OnceClosure task_;
};
}
#endif