| OLD | NEW |
| 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; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 bool HasIsolatedStorage(const ExtensionInfo& info); | 28 bool HasIsolatedStorage(const ExtensionInfo& info); |
| 29 | 29 |
| 30 // Returns true if the site URL corresponds to an extension or app and has | 30 // Returns true if the site URL corresponds to an extension or app and has |
| 31 // isolated storage. | 31 // isolated storage. |
| 32 bool SiteHasIsolatedStorage(const GURL& extension_site_url, | 32 bool SiteHasIsolatedStorage(const GURL& extension_site_url, |
| 33 content::BrowserContext* context); | 33 content::BrowserContext* context); |
| 34 | 34 |
| 35 // Returns true if the extension can be enabled in incognito mode. | 35 // Returns true if the extension can be enabled in incognito mode. |
| 36 bool CanBeIncognitoEnabled(const Extension* extension); | 36 bool CanBeIncognitoEnabled(const Extension* extension); |
| 37 | 37 |
| 38 // Returns true if |extension_id| can run in an incognito window. |
| 39 bool IsIncognitoEnabled(const std::string& extension_id, |
| 40 content::BrowserContext* context); |
| 41 |
| 38 content::StoragePartition* GetStoragePartitionForExtensionId( | 42 content::StoragePartition* GetStoragePartitionForExtensionId( |
| 39 const std::string& extension_id, | 43 const std::string& extension_id, |
| 40 content::BrowserContext* browser_context); | 44 content::BrowserContext* browser_context); |
| 41 | 45 |
| 42 } // namespace util | 46 } // namespace util |
| 43 } // namespace extensions | 47 } // namespace extensions |
| 44 | 48 |
| 45 #endif // EXTENSIONS_BROWSER_EXTENSION_UTIL_H_ | 49 #endif // EXTENSIONS_BROWSER_EXTENSION_UTIL_H_ |
| OLD | NEW |