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

Unified Diff: chrome/browser/renderer_host/resource_message_filter.h

Issue 155707: Changed the extension.connect() API not to broadcast to all tabs. Added a (Closed)
Patch Set: review comments Created 11 years, 5 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/renderer_host/resource_message_filter.h
diff --git a/chrome/browser/renderer_host/resource_message_filter.h b/chrome/browser/renderer_host/resource_message_filter.h
index 613dd77d17b5ef5193a96a520ac3312bb194b9bc..7ac5b854768bf0c7672a56600be84c052705cb9d 100644
--- a/chrome/browser/renderer_host/resource_message_filter.h
+++ b/chrome/browser/renderer_host/resource_message_filter.h
@@ -33,6 +33,7 @@ class AppCacheDispatcherHost;
class AudioRendererHost;
class Clipboard;
class DOMStorageDispatcherHost;
+class ExtensionMessageService;
class Profile;
class RenderWidgetHelper;
class SpellChecker;
@@ -220,6 +221,9 @@ class ResourceMessageFilter : public IPC::ChannelProxy::MessageFilter,
void OnOpenChannelToExtension(int routing_id, const std::string& extension_id,
const std::string& channel_name, int* port_id);
+ void OnOpenChannelToTab(int routing_id, int tab_id,
+ const std::string& extension_id,
+ const std::string& channel_name, int* port_id);
void OnCloseIdleConnections();
void OnSetCacheMode(bool enabled);
@@ -279,8 +283,12 @@ class ResourceMessageFilter : public IPC::ChannelProxy::MessageFilter,
// A request context specific for media resources.
scoped_refptr<URLRequestContext> media_request_context_;
+ // A request context that holds a cookie store for chrome-extension URLs.
scoped_refptr<URLRequestContext> extensions_request_context_;
+ // Used for routing extension messages.
+ scoped_refptr<ExtensionMessageService> extensions_message_service_;
+
// A pointer to the profile associated with this filter.
//
// DANGER! Do not dereference this pointer! This class lives on the I/O thread
« no previous file with comments | « chrome/browser/renderer_host/render_widget_host.h ('k') | chrome/browser/renderer_host/resource_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698