// Copyright 2021 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_THROTTLE_HANDLE_H_ #define CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_THROTTLE_HANDLE_H_ #include "base/functional/callback.h" #include "base/memory/scoped_refptr.h" namespace content { // A simple class that holds the callback that unthrottles either a SW or a // navigation. It is refcounted and runs `throttle_callback` when destroyed. class DevToolsThrottleHandle : public base::RefCounted<DevToolsThrottleHandle> { … }; } // namespace content #endif // CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_THROTTLE_HANDLE_H_