OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
lfg
2016/07/30 00:05:25
2016
EhsanK
2016/09/01 21:19:07
Done.
| |
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 "content/public/browser/browser_plugin_guest_delegate_mode.h" | |
6 | |
7 #include "content/browser/browser_plugin/browser_plugin_guest.h" | |
8 #include "content/browser/web_contents/web_contents_impl.h" | |
9 #include "content/public/browser/web_contents.h" | |
10 #include "content/public/common/browser_plugin_guest_mode.h" | |
11 | |
12 namespace content { | |
13 | |
14 // static | |
15 BrowserPluginGuestDelegateMode::DelegateMode | |
16 BrowserPluginGuestDelegateMode::DelegateModeFromWebContents( | |
17 content::WebContents* web_contents) { | |
18 BrowserPluginGuest* guest = | |
19 static_cast<WebContentsImpl*>(web_contents)->GetBrowserPluginGuest(); | |
20 | |
21 return !!guest ? guest->delegate_mode() : DelegateMode::NONE; | |
22 } | |
23 | |
24 } // namespace content | |
OLD | NEW |