OLD | NEW |
---|---|
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 EXTENSIONS_COMMON_EXTENSION_H_ | 5 #ifndef EXTENSIONS_COMMON_EXTENSION_H_ |
6 #define EXTENSIONS_COMMON_EXTENSION_H_ | 6 #define EXTENSIONS_COMMON_EXTENSION_H_ |
7 | 7 |
8 #include <algorithm> | 8 #include <algorithm> |
9 #include <iosfwd> | 9 #include <iosfwd> |
10 #include <map> | 10 #include <map> |
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
252 | 252 |
253 // Returns true if the extension should be displayed in the extension | 253 // Returns true if the extension should be displayed in the extension |
254 // settings page (i.e. chrome://extensions). | 254 // settings page (i.e. chrome://extensions). |
255 bool ShouldDisplayInExtensionSettings() const; | 255 bool ShouldDisplayInExtensionSettings() const; |
256 | 256 |
257 // Returns true if the extension should not be shown anywhere. This is | 257 // Returns true if the extension should not be shown anywhere. This is |
258 // mostly the same as the extension being a component extension, but also | 258 // mostly the same as the extension being a component extension, but also |
259 // includes non-component apps that are hidden from the app launcher and ntp. | 259 // includes non-component apps that are hidden from the app launcher and ntp. |
260 bool ShouldNotBeVisible() const; | 260 bool ShouldNotBeVisible() const; |
261 | 261 |
262 // Returns true if the extension is considered a Developer Mode extension. | |
263 bool IsDevModeExtension() const; | |
not at google - send to devlin
2013/12/04 17:25:13
I think this belongs in extension_util.h if anywhe
Finnur
2013/12/05 23:55:56
Sure. Done.
| |
264 | |
262 // Get the manifest data associated with the key, or NULL if there is none. | 265 // Get the manifest data associated with the key, or NULL if there is none. |
263 // Can only be called after InitValue is finished. | 266 // Can only be called after InitValue is finished. |
264 ManifestData* GetManifestData(const std::string& key) const; | 267 ManifestData* GetManifestData(const std::string& key) const; |
265 | 268 |
266 // Sets |data| to be associated with the key. Takes ownership of |data|. | 269 // Sets |data| to be associated with the key. Takes ownership of |data|. |
267 // Can only be called before InitValue is finished. Not thread-safe; | 270 // Can only be called before InitValue is finished. Not thread-safe; |
268 // all SetManifestData calls should be on only one thread. | 271 // all SetManifestData calls should be on only one thread. |
269 void SetManifestData(const std::string& key, ManifestData* data); | 272 void SetManifestData(const std::string& key, ManifestData* data); |
270 | 273 |
271 // Accessors: | 274 // Accessors: |
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
531 | 534 |
532 UpdatedExtensionPermissionsInfo( | 535 UpdatedExtensionPermissionsInfo( |
533 const Extension* extension, | 536 const Extension* extension, |
534 const PermissionSet* permissions, | 537 const PermissionSet* permissions, |
535 Reason reason); | 538 Reason reason); |
536 }; | 539 }; |
537 | 540 |
538 } // namespace extensions | 541 } // namespace extensions |
539 | 542 |
540 #endif // EXTENSIONS_COMMON_EXTENSION_H_ | 543 #endif // EXTENSIONS_COMMON_EXTENSION_H_ |
OLD | NEW |