Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(131)

Unified Diff: extensions/browser/extension_api_frame_id_map.h

Issue 2002763003: webRequest: reliably determine tabId (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@webRequest-testing-unload
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 62330626df9d875e431caad66f480b852d4d1d58..bd2652dea7bc5ad5df248ec7924314855b03c683 100644
--- a/extensions/browser/extension_api_frame_id_map.h
+++ b/extensions/browser/extension_api_frame_id_map.h
@@ -97,6 +97,11 @@ class ExtensionApiFrameIdMap {
// Get the extension API frame ID for the parent of |navigation_handle|.
static int GetParentFrameId(content::NavigationHandle* navigation_handle);
+ // Get the tab and window ID for a |rfh|.
+ static void GetTabAndWindowId(content::RenderFrameHost* rfh,
+ int* tab_id_out,
+ int* window_id_out);
+
// Find the current RenderFrameHost for a given WebContents and extension
// frame ID.
// Returns nullptr if not found.

Powered by Google App Engine
This is Rietveld 408576698