mirror of
				https://bitbucket.org/chromiumembedded/cef
				synced 2025-06-05 21:39:12 +02:00 
			
		
		
		
	Frame identifiers have changed from int64_t to string type. This is due to https://crbug.com/1502660 which removes access to frame routing IDs in the renderer process. New cross-process frame identifiers are 160-bit values (32-bit child process ID + 128-bit local frame token) and most easily represented as strings. All other frame-related expectations and behaviors remain the same.
		
			
				
	
	
		
			31 lines
		
	
	
		
			940 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
		
			940 B
		
	
	
	
		
			C++
		
	
	
	
	
	
// 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_
 | 
						|
 | 
						|
#include <optional>
 | 
						|
#include <string>
 | 
						|
 | 
						|
#include "third_party/blink/public/common/tokens/tokens.h"
 | 
						|
 | 
						|
namespace blink {
 | 
						|
class WebLocalFrame;
 | 
						|
}  // namespace blink
 | 
						|
 | 
						|
namespace render_frame_util {
 | 
						|
 | 
						|
std::string GetIdentifier(blink::WebLocalFrame* frame);
 | 
						|
std::string GetName(blink::WebLocalFrame* frame);
 | 
						|
 | 
						|
// Parses |identifier| and returns a frame token appropriate to this renderer
 | 
						|
// process, or std::nullopt.
 | 
						|
std::optional<blink::LocalFrameToken> ParseFrameTokenFromIdentifier(
 | 
						|
    const std::string& identifier);
 | 
						|
 | 
						|
}  // namespace render_frame_util
 | 
						|
 | 
						|
#endif  // CEF_LIBCEF_RENDERER_RENDER_FRAME_UTIL_H_
 |