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

Unified Diff: chrome/browser/guest_view/chrome_content_browser_client_guest_view_part.cc

Issue 1602663003: Framelet Prototype 2016 using Mojo IPC Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Disabled oilpan Created 4 years, 11 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/guest_view/chrome_content_browser_client_guest_view_part.cc
diff --git a/chrome/browser/guest_view/chrome_content_browser_client_guest_view_part.cc b/chrome/browser/guest_view/chrome_content_browser_client_guest_view_part.cc
new file mode 100644
index 0000000000000000000000000000000000000000..91d818092c3e21895119c6f0b5fd47c6411129bd
--- /dev/null
+++ b/chrome/browser/guest_view/chrome_content_browser_client_guest_view_part.cc
@@ -0,0 +1,24 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/guest_view/chrome_content_browser_client_guest_view_part.h"
+
+#include "chrome/browser/guest_view/chrome_guest_view_message_filter.h"
+
+namespace chrome {
+
+ChromeContentBrowserClientGuestViewPart::
+ ChromeContentBrowserClientGuestViewPart() {}
+
+ChromeContentBrowserClientGuestViewPart::
+ ~ChromeContentBrowserClientGuestViewPart() {}
+
+void ChromeContentBrowserClientGuestViewPart::RenderProcessWillLaunch(
+ content::RenderProcessHost* host) {
+ int id = host->GetID();
+ Profile* profile = Profile::FromBrowserContext(host->GetBrowserContext());
+ host->AddFilter(new ChromeGuestViewMessageFilter(id, profile));
+}
+
+} // namespace chrome

Powered by Google App Engine
This is Rietveld 408576698