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..058f280cafbf4d047d6b444f9910a18e4edda89b |
--- /dev/null |
+++ b/content/public/browser/guest_mode.h |
@@ -0,0 +1,29 @@ |
+// 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; |
+ |
+class CONTENT_EXPORT GuestMode { |
+ public: |
+ // Returns true if |web_contents| is an inner WebContents based on cross |
+ // process frames. |
+ static bool IsCrossProcessFrameGuest(WebContents* web_contents); |
+ |
+ private: |
+ GuestMode(); |
+ |
+ DISALLOW_COPY_AND_ASSIGN(GuestMode); |
+}; |
+ |
+} // namespace content |
+ |
+#endif // CONTENT_PUBLIC_BROWSER_GUEST_MODE_H_ |