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 |