summaryrefslogtreecommitdiffstats
path: root/extensions/browser/extension_util.h
blob: 8fd456eca9f3873f86851fbbc7fe80e69969adc2 (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
30
31
32
// Copyright 2014 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_BROWSER_EXTENSION_UTIL_H_
#define EXTENSIONS_BROWSER_EXTENSION_UTIL_H_

#include <string>

namespace content {
class BrowserContext;
}

namespace extensions {
namespace util {

// TODO(tmdiep): Move functions from chrome/browser/extension_util.h/cc that are
// only dependent on extensions/ here.

// Returns true if |extension_id| identifies an extension that is installed
// permanently and not ephemerally.
bool IsExtensionInstalledPermanently(const std::string& extension_id,
                                     content::BrowserContext* context);

// Returns true if |extension_id| identifies an ephemeral app.
bool IsEphemeralApp(const std::string& extension_id,
                    content::BrowserContext* context);

}  // namespace util
}  // namespace extensions

#endif  // EXTENSIONS_BROWSER_EXTENSION_UTIL_H_