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

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

Issue 107183002: Move more of the plugin code in the renderer to use RenderFrame instead of RenderView. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: review comments Created 7 years 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.cc
===================================================================
--- chrome/browser/extensions/extension_renderer_state.cc (revision 238847)
+++ chrome/browser/extensions/extension_renderer_state.cc (working copy)
@@ -212,6 +212,16 @@
return false;
}
+bool ExtensionRendererState::IsWebViewRenderer(int render_process_id) {
+ DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
+ for (WebViewInfoMap::iterator i = webview_info_map_.begin();
+ i != webview_info_map_.end(); ++i) {
+ if (i->first.first == render_process_id)
+ return true;
+ }
+ return false;
+}
+
void ExtensionRendererState::AddWebView(int guest_process_id,
int guest_routing_id,
const WebViewInfo& webview_info) {
« no previous file with comments | « chrome/browser/extensions/extension_renderer_state.h ('k') | chrome/browser/plugins/chrome_plugin_service_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698