blob: 37f8216517025cd04c2fbf9ff5c21a53bc022b99 [file] [log] [blame]
// Copyright 2017 The Chromium 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 THIRD_PARTY_BLINK_RENDERER_CORE_FRAME_FRAME_LIFECYCLE_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_FRAME_FRAME_LIFECYCLE_H_
#include "base/macros.h"
namespace blink {
class FrameLifecycle {
public:
enum State {
kAttached,
kDetaching,
kDetached,
};
FrameLifecycle();
State GetState() const { return state_; }
void AdvanceTo(State);
private:
State state_;
DISALLOW_COPY_AND_ASSIGN(FrameLifecycle);
};
} // namespace blink
#endif // THIRD_PARTY_BLINK_RENDERER_CORE_FRAME_FRAME_LIFECYCLE_H_