OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_COMMON_EXTENSIONS_EXTENSION_H_ | 5 #ifndef CHROME_COMMON_EXTENSIONS_EXTENSION_H_ |
6 #define CHROME_COMMON_EXTENSIONS_EXTENSION_H_ | 6 #define CHROME_COMMON_EXTENSIONS_EXTENSION_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 #include <map> | 10 #include <map> |
(...skipping 516 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
527 // Returns true if the extension should be synced. | 527 // Returns true if the extension should be synced. |
528 bool IsSyncable() const; | 528 bool IsSyncable() const; |
529 | 529 |
530 // Returns true if the extension should be displayed in the launcher. | 530 // Returns true if the extension should be displayed in the launcher. |
531 bool ShouldDisplayInLauncher() const; | 531 bool ShouldDisplayInLauncher() const; |
532 | 532 |
533 // Returns true if the extension should be displayed in the extension | 533 // Returns true if the extension should be displayed in the extension |
534 // settings page (i.e. chrome://extensions). | 534 // settings page (i.e. chrome://extensions). |
535 bool ShouldDisplayInExtensionSettings() const; | 535 bool ShouldDisplayInExtensionSettings() const; |
536 | 536 |
| 537 // Returns true if the extension has a content script declared at |url|. |
| 538 bool HasContentScriptAtURL(const GURL& url) const; |
| 539 |
537 // Accessors: | 540 // Accessors: |
538 | 541 |
539 const FilePath& path() const { return path_; } | 542 const FilePath& path() const { return path_; } |
540 const GURL& url() const { return extension_url_; } | 543 const GURL& url() const { return extension_url_; } |
541 Location location() const; | 544 Location location() const; |
542 const std::string& id() const; | 545 const std::string& id() const; |
543 const Version* version() const { return version_.get(); } | 546 const Version* version() const { return version_.get(); } |
544 const std::string VersionString() const; | 547 const std::string VersionString() const; |
545 const std::string& name() const { return name_; } | 548 const std::string& name() const { return name_; } |
546 const std::string& non_localized_name() const { return non_localized_name_; } | 549 const std::string& non_localized_name() const { return non_localized_name_; } |
(...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1115 // only contain the removed permissions. | 1118 // only contain the removed permissions. |
1116 const ExtensionPermissionSet* permissions; | 1119 const ExtensionPermissionSet* permissions; |
1117 | 1120 |
1118 UpdatedExtensionPermissionsInfo( | 1121 UpdatedExtensionPermissionsInfo( |
1119 const Extension* extension, | 1122 const Extension* extension, |
1120 const ExtensionPermissionSet* permissions, | 1123 const ExtensionPermissionSet* permissions, |
1121 Reason reason); | 1124 Reason reason); |
1122 }; | 1125 }; |
1123 | 1126 |
1124 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ | 1127 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ |
OLD | NEW |