blob: 573ba2f4afd814bdc22066b5a16352e25decf909 [file] [log] [blame]
// Copyright 2018 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_PLATFORM_SCHEDULER_MAIN_THREAD_FRAME_ORIGIN_TYPE_H_
#define THIRD_PARTY_BLINK_RENDERER_PLATFORM_SCHEDULER_MAIN_THREAD_FRAME_ORIGIN_TYPE_H_
namespace blink {
class FrameScheduler;
namespace scheduler {
// This enum is used for a histogram (RendererSchedulerFrameOriginType)
// and should not be renumbered.
enum class FrameOriginType {
kMainFrame = 0,
kSameOriginToMainFrame = 1,
kCrossOriginToMainFrame = 2,
// TODO(dcheng): Get rid of this and use the kMaxValue idiom.
kCount = 3,
};
FrameOriginType GetFrameOriginType(FrameScheduler* frame_scheduler);
const char* FrameOriginTypeToString(FrameOriginType origin);
} // namespace scheduler
} // namespace blink
#endif // THIRD_PARTY_BLINK_RENDERER_PLATFORM_SCHEDULER_MAIN_THREAD_FRAME_ORIGIN_TYPE_H_