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

Unified Diff: chrome/browser/tab_contents/render_view_host_delegate_helper.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/tab_contents/render_view_host_delegate_helper.cc
===================================================================
--- chrome/browser/tab_contents/render_view_host_delegate_helper.cc (revision 110303)
+++ chrome/browser/tab_contents/render_view_host_delegate_helper.cc (working copy)
@@ -31,7 +31,6 @@
#include "content/browser/gpu/gpu_data_manager.h"
#include "content/browser/gpu/gpu_process_host.h"
#include "content/browser/renderer_host/render_view_host.h"
-#include "content/browser/renderer_host/render_process_host.h"
#include "content/browser/renderer_host/render_widget_fullscreen_host.h"
#include "content/browser/renderer_host/render_widget_host.h"
#include "content/browser/renderer_host/render_widget_host_view.h"
@@ -42,6 +41,7 @@
#include "content/browser/tab_contents/tab_contents_view.h"
#include "content/browser/webui/web_ui.h"
#include "content/public/browser/notification_service.h"
+#include "content/public/browser/render_process_host.h"
#include "content/common/view_messages.h"
#include "net/base/network_change_notifier.h"
@@ -118,7 +118,7 @@
// Ensure that we're trying to open this from the extension's process.
extensions::ProcessMap* process_map = extensions_service->process_map();
if (!site->GetProcess() ||
- !process_map->Contains(extension->id(), site->GetProcess()->id())) {
+ !process_map->Contains(extension->id(), site->GetProcess()->GetID())) {
return NULL;
}
@@ -334,7 +334,7 @@
WebPreferences RenderViewHostDelegateHelper::GetWebkitPrefs(
RenderViewHost* rvh) {
Profile* profile = Profile::FromBrowserContext(
- rvh->process()->browser_context());
+ rvh->process()->GetBrowserContext());
PrefService* prefs = profile->GetPrefs();
WebPreferences web_prefs;
@@ -538,7 +538,7 @@
DCHECK(!web_prefs.default_encoding.empty());
if (ChildProcessSecurityPolicy::GetInstance()->HasWebUIBindings(
- rvh->process()->id())) {
+ rvh->process()->GetID())) {
web_prefs.loads_images_automatically = true;
web_prefs.javascript_enabled = true;
}

Powered by Google App Engine
This is Rietveld 408576698