Chromium Code Reviews| 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 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 347 } | 347 } |
| 348 | 348 |
| 349 // Type-related queries. | 349 // Type-related queries. |
| 350 bool is_app() const; | 350 bool is_app() const; |
| 351 bool is_platform_app() const; | 351 bool is_platform_app() const; |
| 352 bool is_hosted_app() const; | 352 bool is_hosted_app() const; |
| 353 bool is_legacy_packaged_app() const; | 353 bool is_legacy_packaged_app() const; |
| 354 bool is_extension() const; | 354 bool is_extension() const; |
| 355 bool is_shared_module() const; | 355 bool is_shared_module() const; |
| 356 bool is_theme() const; | 356 bool is_theme() const; |
| 357 bool is_media_request_white_listed() const; | |
|
Sergey Ulanov
2015/05/07 01:05:49
I don't think the whitelist belongs in the extensi
changbin
2015/05/22 05:10:59
Thanks, i think it's done now:)
| |
| 357 | 358 |
| 358 bool can_be_incognito_enabled() const; | 359 bool can_be_incognito_enabled() const; |
| 359 | 360 |
| 360 void AddWebExtentPattern(const URLPattern& pattern); | 361 void AddWebExtentPattern(const URLPattern& pattern); |
| 361 const URLPatternSet& web_extent() const { return extent_; } | 362 const URLPatternSet& web_extent() const { return extent_; } |
| 362 | 363 |
| 363 private: | 364 private: |
| 364 friend class base::RefCountedThreadSafe<Extension>; | 365 friend class base::RefCountedThreadSafe<Extension>; |
| 365 | 366 |
| 366 // 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. |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 577 | 578 |
| 578 UpdatedExtensionPermissionsInfo( | 579 UpdatedExtensionPermissionsInfo( |
| 579 const Extension* extension, | 580 const Extension* extension, |
| 580 const PermissionSet* permissions, | 581 const PermissionSet* permissions, |
| 581 Reason reason); | 582 Reason reason); |
| 582 }; | 583 }; |
| 583 | 584 |
| 584 } // namespace extensions | 585 } // namespace extensions |
| 585 | 586 |
| 586 #endif // EXTENSIONS_COMMON_EXTENSION_H_ | 587 #endif // EXTENSIONS_COMMON_EXTENSION_H_ |
| OLD | NEW |