summaryrefslogtreecommitdiff
path: root/chromium/extensions/common/activation_sequence.h
blob: af0583e9eade3e02f5dc3e9209a5540573692b12 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright 2020 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 EXTENSIONS_COMMON_ACTIVATION_SEQUENCE_H_
#define EXTENSIONS_COMMON_ACTIVATION_SEQUENCE_H_

#include "base/types/strong_alias.h"

namespace extensions {

// Unique identifier for an extension's activation->deactivation span.
//
// Applies to Service Worker based extensions. This is used to detect if a
// PendingTask for an extension expired at the time of executing the task, due
// to extension activation after deactivation.
using ActivationSequence =
    ::base::StrongAlias<class ActivationSequenceTag, int>;

}  // namespace extensions

#endif  // EXTENSIONS_COMMON_ACTIVATION_SEQUENCE_H_