summaryrefslogtreecommitdiff
path: root/chromium/content/common/frame_delete_intention.h
blob: f30103c3656e79b177e32251c4667de2dfd591c8 (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
// Copyright 2019 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_COMMON_FRAME_DELETE_INTENTION_H_
#define CONTENT_COMMON_FRAME_DELETE_INTENTION_H_

namespace content {

enum class FrameDeleteIntention {
  // The frame being deleted isn't a (speculative) main frame.
  kNotMainFrame,
  // The frame being deleted is a speculative main frame, and it is being
  // deleted as part of the shutdown for that WebContents. The entire RenderView
  // etc will be destroyed by a separate IPC sent later.
  kSpeculativeMainFrameForShutdown,
  // The frame being deleted is a speculative main frame, and it is being
  // deleted because the speculative navigation was cancelled. This is not part
  // of shutdown.
  kSpeculativeMainFrameForNavigationCancelled,

  kMaxValue = kSpeculativeMainFrameForNavigationCancelled
};

}  // namespace content

#endif  // CONTENT_COMMON_FRAME_DELETE_INTENTION_H_