| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 CHROME_BROWSER_EXTENSIONS_EXTENSION_UTIL_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_UTIL_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_UTIL_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_UTIL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 11 #include "url/gurl.h" | 11 #include "url/gurl.h" |
| 12 | 12 |
| 13 namespace base { | 13 namespace base { |
| 14 class DictionaryValue; | 14 class DictionaryValue; |
| 15 } | 15 } |
| 16 | 16 |
| 17 namespace content { | 17 namespace content { |
| 18 class BrowserContext; | 18 class BrowserContext; |
| 19 } | 19 } |
| 20 | 20 |
| 21 namespace gfx { | 21 namespace gfx { |
| 22 class ImageSkia; | 22 class ImageSkia; |
| 23 } | 23 } |
| 24 | 24 |
| 25 class Profile; |
| 26 |
| 25 namespace extensions { | 27 namespace extensions { |
| 26 | 28 |
| 27 class Extension; | 29 class Extension; |
| 28 struct ExtensionInfo; | 30 struct ExtensionInfo; |
| 29 class PermissionSet; | 31 class PermissionSet; |
| 30 | 32 |
| 31 namespace util { | 33 namespace util { |
| 32 | 34 |
| 33 // Returns true if |extension_id| can run in an incognito window. | 35 // Returns true if |extension_id| can run in an incognito window. |
| 34 bool IsIncognitoEnabled(const std::string& extension_id, | 36 bool IsIncognitoEnabled(const std::string& extension_id, |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 // have one). | 130 // have one). |
| 129 const gfx::ImageSkia& GetDefaultExtensionIcon(); | 131 const gfx::ImageSkia& GetDefaultExtensionIcon(); |
| 130 const gfx::ImageSkia& GetDefaultAppIcon(); | 132 const gfx::ImageSkia& GetDefaultAppIcon(); |
| 131 | 133 |
| 132 // Returns true if the bookmark apps feature is enabled. | 134 // Returns true if the bookmark apps feature is enabled. |
| 133 // | 135 // |
| 134 // TODO(benwells): http://crbug.com/441128: Remove this entirely once the | 136 // TODO(benwells): http://crbug.com/441128: Remove this entirely once the |
| 135 // feature is stable. | 137 // feature is stable. |
| 136 bool IsNewBookmarkAppsEnabled(); | 138 bool IsNewBookmarkAppsEnabled(); |
| 137 | 139 |
| 140 // Returns true for custodian-installed extensions in a supervised profile. |
| 141 bool IsExtensionSupervised(const Extension* extension, Profile* profile); |
| 142 |
| 138 } // namespace util | 143 } // namespace util |
| 139 } // namespace extensions | 144 } // namespace extensions |
| 140 | 145 |
| 141 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_UTIL_H_ | 146 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_UTIL_H_ |
| OLD | NEW |