OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "chrome/browser/guest_view/chrome_content_browser_client_guest_view_par
t.h" |
| 6 |
| 7 #include "chrome/browser/guest_view/chrome_guest_view_message_filter.h" |
| 8 |
| 9 namespace chrome { |
| 10 |
| 11 ChromeContentBrowserClientGuestViewPart:: |
| 12 ChromeContentBrowserClientGuestViewPart() {} |
| 13 |
| 14 ChromeContentBrowserClientGuestViewPart:: |
| 15 ~ChromeContentBrowserClientGuestViewPart() {} |
| 16 |
| 17 void ChromeContentBrowserClientGuestViewPart::RenderProcessWillLaunch( |
| 18 content::RenderProcessHost* host) { |
| 19 int id = host->GetID(); |
| 20 Profile* profile = Profile::FromBrowserContext(host->GetBrowserContext()); |
| 21 host->AddFilter(new ChromeGuestViewMessageFilter(id, profile)); |
| 22 } |
| 23 |
| 24 } // namespace chrome |
OLD | NEW |