Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(396)

Side by Side Diff: extensions/browser/extension_util.h

Issue 1497193002: Remove all the ephemeral apps code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Tests Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef EXTENSIONS_BROWSER_EXTENSION_UTIL_H_ 5 #ifndef EXTENSIONS_BROWSER_EXTENSION_UTIL_H_
6 #define EXTENSIONS_BROWSER_EXTENSION_UTIL_H_ 6 #define EXTENSIONS_BROWSER_EXTENSION_UTIL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 class GURL; 10 class GURL;
11 11
12 namespace content { 12 namespace content {
13 class BrowserContext; 13 class BrowserContext;
14 } 14 }
15 15
16 namespace extensions { 16 namespace extensions {
17 class Extension; 17 class Extension;
18 struct ExtensionInfo; 18 struct ExtensionInfo;
19 19
20 namespace util { 20 namespace util {
21 21
22 // TODO(tmdiep): Move functions from 22 // TODO(benwells): Move functions from
23 // chrome/browser/extensions/extension_util.h/cc that are only dependent on 23 // chrome/browser/extensions/extension_util.h/cc that are only dependent on
24 // extensions/ here. 24 // extensions/ here.
25 25
26 // Returns true if |extension_id| identifies an extension that is installed
27 // permanently and not ephemerally.
28 bool IsExtensionInstalledPermanently(const std::string& extension_id,
29 content::BrowserContext* context);
30
31 // Returns true if |extension_id| identifies an ephemeral app.
32 bool IsEphemeralApp(const std::string& extension_id,
33 content::BrowserContext* context);
34
35 // Returns true if the extension has isolated storage. 26 // Returns true if the extension has isolated storage.
36 bool HasIsolatedStorage(const ExtensionInfo& info); 27 bool HasIsolatedStorage(const ExtensionInfo& info);
37 28
38 // Returns true if the site URL corresponds to an extension or app and has 29 // Returns true if the site URL corresponds to an extension or app and has
39 // isolated storage. 30 // isolated storage.
40 bool SiteHasIsolatedStorage(const GURL& extension_site_url, 31 bool SiteHasIsolatedStorage(const GURL& extension_site_url,
41 content::BrowserContext* context); 32 content::BrowserContext* context);
42 33
43 // Returns true if the extension can be enabled in incognito mode. 34 // Returns true if the extension can be enabled in incognito mode.
44 bool CanBeIncognitoEnabled(const Extension* extension); 35 bool CanBeIncognitoEnabled(const Extension* extension);
45 36
46 } // namespace util 37 } // namespace util
47 } // namespace extensions 38 } // namespace extensions
48 39
49 #endif // EXTENSIONS_BROWSER_EXTENSION_UTIL_H_ 40 #endif // EXTENSIONS_BROWSER_EXTENSION_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698