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

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

Issue 8515027: Define the public version of the browser side RenderProcessHost interface. This interface is not ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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_message_service.cc
===================================================================
--- chrome/browser/extensions/extension_message_service.cc (revision 110571)
+++ chrome/browser/extensions/extension_message_service.cc (working copy)
@@ -17,11 +17,11 @@
#include "chrome/common/extensions/extension.h"
#include "chrome/common/extensions/extension_messages.h"
#include "content/browser/child_process_security_policy.h"
-#include "content/browser/renderer_host/render_process_host.h"
#include "content/browser/renderer_host/render_view_host.h"
#include "content/browser/tab_contents/tab_contents.h"
#include "content/public/browser/notification_service.h"
#include "content/public/browser/notification_types.h"
+#include "content/public/browser/render_process_host.h"
// Since we have 2 ports for every channel, we just index channels by half the
// port ID.
@@ -94,7 +94,7 @@
port.routing_id, target_port_id, message));
}
-static RenderProcessHost* GetExtensionProcess(Profile* profile,
+static content::RenderProcessHost* GetExtensionProcess(Profile* profile,
const std::string& extension_id) {
SiteInstance* site_instance =
profile->GetExtensionProcessManager()->GetSiteInstanceForURL(
@@ -153,10 +153,11 @@
const std::string& source_extension_id,
const std::string& target_extension_id,
const std::string& channel_name) {
- RenderProcessHost* source = RenderProcessHost::FromID(source_process_id);
+ content::RenderProcessHost* source =
+ content::RenderProcessHost::FromID(source_process_id);
if (!source)
return;
- Profile* profile = Profile::FromBrowserContext(source->browser_context());
+ Profile* profile = Profile::FromBrowserContext(source->GetBrowserContext());
// Note: we use the source's profile here. If the source is an incognito
// process, we will use the incognito EPM to find the right extension process,
@@ -183,10 +184,11 @@
int source_process_id, int source_routing_id, int receiver_port_id,
int tab_id, const std::string& extension_id,
const std::string& channel_name) {
- RenderProcessHost* source = RenderProcessHost::FromID(source_process_id);
+ content::RenderProcessHost* source =
+ content::RenderProcessHost::FromID(source_process_id);
if (!source)
return;
- Profile* profile = Profile::FromBrowserContext(source->browser_context());
+ Profile* profile = Profile::FromBrowserContext(source->GetBrowserContext());
TabContentsWrapper* contents = NULL;
MessagePort receiver;
@@ -345,8 +347,8 @@
switch (type) {
case content::NOTIFICATION_RENDERER_PROCESS_TERMINATED:
case content::NOTIFICATION_RENDERER_PROCESS_CLOSED: {
- RenderProcessHost* renderer =
- content::Source<RenderProcessHost>(source).ptr();
+ content::RenderProcessHost* renderer =
+ content::Source<content::RenderProcessHost>(source).ptr();
OnSenderClosed(renderer);
break;
}
« no previous file with comments | « chrome/browser/extensions/extension_message_handler.cc ('k') | chrome/browser/extensions/extension_permissions_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698