2017-07-06 22:39:37 +02:00
|
|
|
// Copyright (c) 2012 The Chromium Embedded Framework Authors.
|
|
|
|
// Portions copyright (c) 2011 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 CEF_LIBCEF_RENDERER_RENDER_FRAME_UTIL_H_
|
|
|
|
#define CEF_LIBCEF_RENDERER_RENDER_FRAME_UTIL_H_
|
|
|
|
|
2024-01-26 03:12:43 +01:00
|
|
|
#include <optional>
|
2017-07-06 22:39:37 +02:00
|
|
|
#include <string>
|
|
|
|
|
2024-01-26 03:12:43 +01:00
|
|
|
#include "third_party/blink/public/common/tokens/tokens.h"
|
|
|
|
|
2017-07-06 22:39:37 +02:00
|
|
|
namespace blink {
|
2017-07-27 01:19:27 +02:00
|
|
|
class WebLocalFrame;
|
2024-01-26 03:12:43 +01:00
|
|
|
} // namespace blink
|
2017-07-06 22:39:37 +02:00
|
|
|
|
|
|
|
namespace render_frame_util {
|
|
|
|
|
2024-01-26 03:12:43 +01:00
|
|
|
std::string GetIdentifier(blink::WebLocalFrame* frame);
|
2018-03-28 19:30:15 +02:00
|
|
|
std::string GetName(blink::WebLocalFrame* frame);
|
2017-07-06 22:39:37 +02:00
|
|
|
|
2024-01-26 03:12:43 +01:00
|
|
|
// Parses |identifier| and returns a frame token appropriate to this renderer
|
|
|
|
// process, or std::nullopt.
|
|
|
|
std::optional<blink::LocalFrameToken> ParseFrameTokenFromIdentifier(
|
|
|
|
const std::string& identifier);
|
|
|
|
|
2017-07-27 01:19:27 +02:00
|
|
|
} // namespace render_frame_util
|
2017-07-06 22:39:37 +02:00
|
|
|
|
|
|
|
#endif // CEF_LIBCEF_RENDERER_RENDER_FRAME_UTIL_H_
|