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

Unified Diff: chrome/browser/extensions/extension_renderer_state.h

Issue 132233022: Fix chrome.webRequest.onBeforeRequest for requests coming from NPAPI plugin processes. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync Created 6 years, 11 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: chrome/browser/extensions/extension_renderer_state.h
===================================================================
--- chrome/browser/extensions/extension_renderer_state.h (revision 245717)
+++ chrome/browser/extensions/extension_renderer_state.h (working copy)
@@ -15,6 +15,10 @@
class WebViewGuest;
+namespace content {
+class ResourceRequestInfo;
+}
+
// This class keeps track of renderer state for use on the IO thread. All
// methods should be called on the IO thread except for Init and Shutdown.
class ExtensionRendererState {
@@ -39,10 +43,10 @@
bool GetWebViewInfo(int guest_process_id, int guest_routing_id,
WebViewInfo* webview_info);
- // Looks up the tab and window ID for a given render view. Returns true
- // if we have the IDs in our map. Called on the IO thread.
+ // Looks up the tab and window ID for a given request. Returns true if we have
+ // the IDs in our map. Called on the IO thread.
bool GetTabAndWindowId(
- int render_process_host_id, int routing_id, int* tab_id, int* window_id);
+ const content::ResourceRequestInfo* info, int* tab_id, int* window_id);
// Returns true if the given renderer is used by webviews.
bool IsWebViewRenderer(int render_process_id);
« no previous file with comments | « chrome/browser/extensions/api/web_request/web_request_api.cc ('k') | chrome/browser/extensions/extension_renderer_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698