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

Unified Diff: content/public/browser/guest_mode.h

Issue 2165523004: Force MimeHandlerView to always use BrowserPlugin (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Two quick fixes (One outstanding from lfg@'s comments) 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 side-by-side diff with in-line comments
Download patch
Index: content/public/browser/guest_mode.h
diff --git a/content/public/browser/guest_mode.h b/content/public/browser/guest_mode.h
new file mode 100644
index 0000000000000000000000000000000000000000..0e3e357ff2ff61197284dda12dc452d37c08fbdd
--- /dev/null
+++ b/content/public/browser/guest_mode.h
@@ -0,0 +1,27 @@
+// Copyright 2016 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.
+
+#ifndef CONTENT_PUBLIC_BROWSER_GUEST_MODE_H_
+#define CONTENT_PUBLIC_BROWSER_GUEST_MODE_H_
+
+#include "base/macros.h"
+#include "content/common/content_export.h"
+
+namespace content {
+
+class WebContents;
+
+namespace guest_mode {
Charlie Reis 2016/09/07 00:22:29 Hmm, I'm not a fan of introducing a new namespace
EhsanK 2016/09/08 18:14:58 That one lives in content/public/common while this
Charlie Reis 2016/09/15 20:56:10 Yes, let's at least use the same pattern, even if
EhsanK 2016/09/21 21:34:53 Sure. I am calling the class GuestMode now.
+
+// TODO(ekaramad): This method is temporarily added to provide a workaround for
+// BrowserPlugin-based MimeHandlerView to coexit with the rest of guests when
Charlie Reis 2016/09/07 00:22:29 nit: coexist
EhsanK 2016/09/08 18:14:58 Acknowledged.
+// they are OOPIF-based. This will be removed once https://crbug.com/642826 is
+// fixed.
+bool CONTENT_EXPORT IsCrossProcessFrameGuest(WebContents* web_contents);
Charlie Reis 2016/09/07 00:22:29 I'm finding this confusing, both in name and how i
EhsanK 2016/09/08 18:14:58 Hmm, this method is supposed to return true when |
EhsanK 2016/09/08 18:14:58 As lfg@ was suggesting offline, on the renderer si
Charlie Reis 2016/09/15 20:56:10 Yes, maybe we can have a renderer-side version for
EhsanK 2016/09/21 21:34:53 1- GuestViewIframeContainer, which cannot have a n
Charlie Reis 2016/09/21 22:18:21 The property we're looking for is that these place
EhsanK 2016/09/22 22:55:43 Thanks for clarification/suggestions. I removed th
+
+} // namespace guest_mode
+
+} // namespace content
+
+#endif // CONTENT_PUBLIC_BROWSER_GUEST_MODE_H_

Powered by Google App Engine
This is Rietveld 408576698