• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef EXTENSIONS_BROWSER_EXTENSION_UTIL_H_
6 #define EXTENSIONS_BROWSER_EXTENSION_UTIL_H_
7 
8 #include <string>
9 
10 namespace content {
11 class BrowserContext;
12 }
13 
14 namespace extensions {
15 namespace util {
16 
17 // TODO(tmdiep): Move functions from chrome/browser/extension_util.h/cc that are
18 // only dependent on extensions/ here.
19 
20 // Returns true if |extension_id| identifies an extension that is installed
21 // permanently and not ephemerally.
22 bool IsExtensionInstalledPermanently(const std::string& extension_id,
23                                      content::BrowserContext* context);
24 
25 // Returns true if |extension_id| identifies an ephemeral app.
26 bool IsEphemeralApp(const std::string& extension_id,
27                     content::BrowserContext* context);
28 
29 }  // namespace util
30 }  // namespace extensions
31 
32 #endif  // EXTENSIONS_BROWSER_EXTENSION_UTIL_H_
33