| 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 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 351 | 351 |
| 352 // Type-related queries. | 352 // Type-related queries. |
| 353 bool is_app() const; | 353 bool is_app() const; |
| 354 bool is_platform_app() const; | 354 bool is_platform_app() const; |
| 355 bool is_hosted_app() const; | 355 bool is_hosted_app() const; |
| 356 bool is_legacy_packaged_app() const; | 356 bool is_legacy_packaged_app() const; |
| 357 bool is_extension() const; | 357 bool is_extension() const; |
| 358 bool is_shared_module() const; | 358 bool is_shared_module() const; |
| 359 bool is_theme() const; | 359 bool is_theme() const; |
| 360 | 360 |
| 361 bool can_be_incognito_enabled() const; | |
| 362 | |
| 363 void AddWebExtentPattern(const URLPattern& pattern); | 361 void AddWebExtentPattern(const URLPattern& pattern); |
| 364 const URLPatternSet& web_extent() const { return extent_; } | 362 const URLPatternSet& web_extent() const { return extent_; } |
| 365 | 363 |
| 366 private: | 364 private: |
| 367 friend class base::RefCountedThreadSafe<Extension>; | 365 friend class base::RefCountedThreadSafe<Extension>; |
| 368 | 366 |
| 369 // Chooses the extension ID for an extension based on a variety of criteria. | 367 // Chooses the extension ID for an extension based on a variety of criteria. |
| 370 // The chosen ID will be set in |manifest|. | 368 // The chosen ID will be set in |manifest|. |
| 371 static bool InitExtensionID(extensions::Manifest* manifest, | 369 static bool InitExtensionID(extensions::Manifest* manifest, |
| 372 const base::FilePath& path, | 370 const base::FilePath& path, |
| (...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 580 | 578 |
| 581 UpdatedExtensionPermissionsInfo( | 579 UpdatedExtensionPermissionsInfo( |
| 582 const Extension* extension, | 580 const Extension* extension, |
| 583 const PermissionSet* permissions, | 581 const PermissionSet* permissions, |
| 584 Reason reason); | 582 Reason reason); |
| 585 }; | 583 }; |
| 586 | 584 |
| 587 } // namespace extensions | 585 } // namespace extensions |
| 588 | 586 |
| 589 #endif // EXTENSIONS_COMMON_EXTENSION_H_ | 587 #endif // EXTENSIONS_COMMON_EXTENSION_H_ |
| OLD | NEW |