summaryrefslogtreecommitdiff
path: root/chromium/content/public/browser/guest_mode.h
blob: 058f280cafbf4d047d6b444f9910a18e4edda89b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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_