#ifndef CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_THROTTLE_HANDLE_H_
#define CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_THROTTLE_HANDLE_H_
#include "base/functional/callback.h"
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_refptr.h"
namespace content {
class DevToolsThrottleHandle : public base::RefCounted<DevToolsThrottleHandle> {
public:
explicit DevToolsThrottleHandle(base::OnceCallback<void()> throttle_callback);
DevToolsThrottleHandle(const DevToolsThrottleHandle&) = delete;
DevToolsThrottleHandle& operator=(const DevToolsThrottleHandle&) = delete;
private:
friend class base::RefCounted<DevToolsThrottleHandle>;
~DevToolsThrottleHandle();
base::OnceCallback<void()> throttle_callback_;
};
}
#endif