cef/libcef/common/waitable_event_impl.h
Marshall Greenblatt 49a34d9160 Apply new Chromium style for #include sorting
Add "cef/" prefix for CEF #includes in libcef/ directory.

Sort #includes by following
https://google.github.io/styleguide/cppguide.html#Names_and_Order_of_Includes
2024-05-01 14:34:32 -04:00

33 lines
987 B
C++

// Copyright 2016 The Chromium Embedded Framework Authors. All rights
// reserved. Use of this source code is governed by a BSD-style license that can
// be found in the LICENSE file.
#ifndef CEF_LIBCEF_COMMON_WAITABLE_EVENT_IMPL_H_
#define CEF_LIBCEF_COMMON_WAITABLE_EVENT_IMPL_H_
#pragma once
#include "base/synchronization/waitable_event.h"
#include "cef/include/cef_waitable_event.h"
class CefWaitableEventImpl : public CefWaitableEvent {
public:
CefWaitableEventImpl(bool automatic_reset, bool initially_signaled);
CefWaitableEventImpl(const CefWaitableEventImpl&) = delete;
CefWaitableEventImpl& operator=(const CefWaitableEventImpl&) = delete;
// CefWaitableEvent methods:
void Reset() override;
void Signal() override;
bool IsSignaled() override;
void Wait() override;
bool TimedWait(int64_t max_ms) override;
private:
base::WaitableEvent event_;
IMPLEMENT_REFCOUNTING(CefWaitableEventImpl);
};
#endif // CEF_LIBCEF_COMMON_WAITABLE_EVENT_IMPL_H_