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

Unified Diff: content/browser/renderer_host/render_message_filter.cc

Issue 9369009: Make content::ResourceContext be a real interface like the rest of the Content API (i.e. don't ha... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync Created 8 years, 10 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: content/browser/renderer_host/render_message_filter.cc
===================================================================
--- content/browser/renderer_host/render_message_filter.cc (revision 121250)
+++ content/browser/renderer_host/render_message_filter.cc (working copy)
@@ -115,7 +115,7 @@
public PpapiPluginProcessHost::PluginClient {
public:
OpenChannelToPpapiPluginCallback(RenderMessageFilter* filter,
- const content::ResourceContext* context,
+ content::ResourceContext* context,
IPC::Message* reply_msg)
: RenderMessageCompletionCallback(filter, reply_msg),
context_(context) {
@@ -134,12 +134,12 @@
SendReplyAndDeleteThis();
}
- virtual const content::ResourceContext* GetResourceContext() {
+ virtual content::ResourceContext* GetResourceContext() {
return context_;
}
private:
- const content::ResourceContext* context_;
+ content::ResourceContext* context_;
};
class OpenChannelToPpapiBrokerCallback
@@ -183,7 +183,7 @@
public PluginProcessHost::Client {
public:
OpenChannelToNpapiPluginCallback(RenderMessageFilter* filter,
- const content::ResourceContext& context,
+ content::ResourceContext* context,
IPC::Message* reply_msg)
: RenderMessageCompletionCallback(filter, reply_msg),
context_(context),
@@ -195,7 +195,7 @@
return filter()->render_process_id();
}
- virtual const content::ResourceContext& GetResourceContext() OVERRIDE {
+ virtual content::ResourceContext* GetResourceContext() OVERRIDE {
return context_;
}
@@ -254,7 +254,7 @@
SendReplyAndDeleteThis();
}
- const content::ResourceContext& context_;
+ content::ResourceContext* context_;
webkit::WebPluginInfo info_;
PluginProcessHost* host_;
bool sent_plugin_channel_request_;
@@ -587,7 +587,7 @@
webkit::WebPluginInfo plugin(all_plugins[i]);
if (!filter || filter->ShouldUsePlugin(child_process_id,
routing_id,
- &resource_context_,
+ resource_context_,
GURL(),
GURL(),
&plugin)) {
@@ -634,7 +634,7 @@
plugin_service_->OpenChannelToPpapiPlugin(
path,
new OpenChannelToPpapiPluginCallback(
- this, &resource_context_, reply_msg));
+ this, resource_context_, reply_msg));
}
void RenderMessageFilter::OnOpenChannelToPpapiBroker(int routing_id,
@@ -861,7 +861,8 @@
}
void RenderMessageFilter::OnMediaLogEvent(const media::MediaLogEvent& event) {
- resource_context_.media_observer()->OnMediaEvent(render_process_id_, event);
+ resource_context_->GetMediaObserver()->OnMediaEvent(
+ render_process_id_, event);
}
void RenderMessageFilter::CheckPolicyForCookies(
« no previous file with comments | « content/browser/renderer_host/render_message_filter.h ('k') | content/browser/renderer_host/render_process_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698