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

Side by Side Diff: content/public/common/browser_plugin_guest_mode.h

Issue 2165523004: Force MimeHandlerView to always use BrowserPlugin (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing lazyboy@'s and lfg@'s comments Created 4 years, 4 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
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_PUBLIC_COMMON_BROWSER_PLUGIN_GUEST_MODE_H_ 5 #ifndef CONTENT_PUBLIC_COMMON_BROWSER_PLUGIN_GUEST_MODE_H_
6 #define CONTENT_PUBLIC_COMMON_BROWSER_PLUGIN_GUEST_MODE_H_ 6 #define CONTENT_PUBLIC_COMMON_BROWSER_PLUGIN_GUEST_MODE_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "content/common/content_export.h" 9 #include "content/common/content_export.h"
10 10
11 namespace content { 11 namespace content {
12 12
13 class WebContents;
14
13 class CONTENT_EXPORT BrowserPluginGuestMode { 15 class CONTENT_EXPORT BrowserPluginGuestMode {
14 public: 16 public:
15 // Returns true if inner WebContents should be implemented in terms of cross- 17 // Returns true if inner WebContents should be implemented in terms of cross-
16 // process iframes. 18 // process iframes.
17 static bool UseCrossProcessFramesForGuests(); 19 static bool UseCrossProcessFramesForGuests();
18 20
21 // TODO(ekaramad): Remove the following method once MimeHandlerViewGuest uses
22 // OOPIF (https://crbug.com/563285).
23 // Returns true if the given |web_contents| is implemented in terms of
24 // cross-process iframes.
25 static bool UseCrossProcessFramesForWebContents(WebContents* web_contents);
26
19 private: 27 private:
20 BrowserPluginGuestMode(); // Not instantiable 28 BrowserPluginGuestMode(); // Not instantiable
21 29
22 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuestMode); 30 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuestMode);
23 }; 31 };
24 32
25 } // namespace 33 } // namespace
26 34
27 #endif // CONTENT_PUBLIC_COMMON_BROWSER_PLUGIN_GUEST_MODE_H_ 35 #endif // CONTENT_PUBLIC_COMMON_BROWSER_PLUGIN_GUEST_MODE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698