| Index: extensions/browser/extension_api_frame_id_map.h
|
| diff --git a/extensions/browser/extension_api_frame_id_map.h b/extensions/browser/extension_api_frame_id_map.h
|
| index c3af8b3da24a9db946b1df8cd90af3200d683525..f1fffe4dca8c048c6d85a91f343a7b63e8ab8e38 100644
|
| --- a/extensions/browser/extension_api_frame_id_map.h
|
| +++ b/extensions/browser/extension_api_frame_id_map.h
|
| @@ -14,6 +14,7 @@
|
| #include "base/synchronization/lock.h"
|
|
|
| namespace content {
|
| +class NavigationHandle;
|
| class RenderFrameHost;
|
| class WebContents;
|
| } // namespace content
|
| @@ -53,9 +54,15 @@ class ExtensionApiFrameIdMap {
|
| // Get the extension API frame ID for |rfh|.
|
| static int GetFrameId(content::RenderFrameHost* rfh);
|
|
|
| + // Get the extension API frame ID for |navigation_handle|.
|
| + static int GetFrameId(content::NavigationHandle* navigation_handle);
|
| +
|
| // Get the extension API frame ID for the parent of |rfh|.
|
| static int GetParentFrameId(content::RenderFrameHost* rfh);
|
|
|
| + // Get the extension API frame ID for the parent of |navigation_handle|.
|
| + static int GetParentFrameId(content::NavigationHandle* navigation_handle);
|
| +
|
| // Find the current RenderFrameHost for a given WebContents and extension
|
| // frame ID.
|
| // Returns nullptr if not found.
|
|
|