mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Remove usage of FrameTreeNode IDs (see issue #2421)
With the introduction of prerendering in Chromium it is now possible for RenderFrameHosts (RFH) to move between FrameTrees. As a consequence we can no longer rely on FrameTreeNode IDs to uniquely identify a RFH over its lifespan. We must now switch to using GlobalRenderFrameHostId (child_id, frame_routing_id) instead for that purpose. Additionally, we simplify existing code by using the GlobalRenderFrameHostId struct in all places that previously used a (render_process_id, render_frame_id) pair, since these concepts are equivalent. See https://crbug.com/1179502#c8 for additional background.
This commit is contained in:
@ -14,6 +14,10 @@
|
||||
|
||||
#include "content/public/browser/browser_thread.h"
|
||||
|
||||
namespace content {
|
||||
struct GlobalRenderFrameHostId;
|
||||
}
|
||||
|
||||
class GURL;
|
||||
|
||||
// Stores state that will be accessed on the IO thread. Life span is controlled
|
||||
@ -26,17 +30,11 @@ class CefIOThreadState : public base::RefCountedThreadSafe<
|
||||
CefIOThreadState();
|
||||
|
||||
// See comments in CefRequestContextHandlerMap.
|
||||
void AddHandler(int render_process_id,
|
||||
int render_frame_id,
|
||||
int frame_tree_node_id,
|
||||
void AddHandler(const content::GlobalRenderFrameHostId& global_id,
|
||||
CefRefPtr<CefRequestContextHandler> handler);
|
||||
void RemoveHandler(int render_process_id,
|
||||
int render_frame_id,
|
||||
int frame_tree_node_id);
|
||||
void RemoveHandler(const content::GlobalRenderFrameHostId& global_id);
|
||||
CefRefPtr<CefRequestContextHandler> GetHandler(
|
||||
int render_process_id,
|
||||
int render_frame_id,
|
||||
int frame_tree_node_id,
|
||||
const content::GlobalRenderFrameHostId& global_id,
|
||||
bool require_frame_match) const;
|
||||
|
||||
// Manage scheme handler factories associated with this context.
|
||||
|
Reference in New Issue
Block a user