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

Side by Side Diff: content/public/browser/guest_mode.cc

Issue 2165523004: Force MimeHandlerView to always use BrowserPlugin (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed typos Created 4 years, 3 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 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 "content/public/browser/guest_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 bool GuestMode::IsInnerWebContentsUsingCrossProcessFrames(
16 WebContents* web_contents) {
17 if (!BrowserPluginGuestMode::UseCrossProcessFramesForGuests())
18 return false;
19 BrowserPluginGuest* browser_plugin_guest =
20 static_cast<WebContentsImpl*>(web_contents)->GetBrowserPluginGuest();
21 return browser_plugin_guest &&
22 browser_plugin_guest->can_use_cross_process_frames();
23 }
24
25 // static
26 bool GuestMode::ForInnerWebContentsUsingCrossProcessFrames(
27 RenderViewHost* rvh) {
28 return IsInnerWebContentsUsingCrossProcessFrames(
29 WebContents::FromRenderViewHost(rvh));
30 }
31
32 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698