| 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 <map> | 9 #include <map> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 493 // Returns true if this extension updates itself using the extension | 493 // Returns true if this extension updates itself using the extension |
| 494 // gallery. | 494 // gallery. |
| 495 bool UpdatesFromGallery() const; | 495 bool UpdatesFromGallery() const; |
| 496 | 496 |
| 497 // Returns true if this extension or app includes areas within |origin|. | 497 // Returns true if this extension or app includes areas within |origin|. |
| 498 bool OverlapsWithOrigin(const GURL& origin) const; | 498 bool OverlapsWithOrigin(const GURL& origin) const; |
| 499 | 499 |
| 500 // Returns the sync bucket to use for this extension. | 500 // Returns the sync bucket to use for this extension. |
| 501 SyncType GetSyncType() const; | 501 SyncType GetSyncType() const; |
| 502 | 502 |
| 503 // Returns true if the extension should be synced. |
| 504 bool IsSyncable() const; |
| 505 |
| 506 // Returns true if the extension should be displayed in the launcher. |
| 507 bool ShouldDisplayInLauncher() const; |
| 508 |
| 503 // Accessors: | 509 // Accessors: |
| 504 | 510 |
| 505 const FilePath& path() const { return path_; } | 511 const FilePath& path() const { return path_; } |
| 506 const GURL& url() const { return extension_url_; } | 512 const GURL& url() const { return extension_url_; } |
| 507 Location location() const { return location_; } | 513 Location location() const { return location_; } |
| 508 const std::string& id() const { return id_; } | 514 const std::string& id() const { return id_; } |
| 509 const Version* version() const { return version_.get(); } | 515 const Version* version() const { return version_.get(); } |
| 510 const std::string VersionString() const; | 516 const std::string VersionString() const; |
| 511 const std::string& name() const { return name_; } | 517 const std::string& name() const { return name_; } |
| 512 const std::string& public_key() const { return public_key_; } | 518 const std::string& public_key() const { return public_key_; } |
| (...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 958 // only contain the removed permissions. | 964 // only contain the removed permissions. |
| 959 const ExtensionPermissionSet* permissions; | 965 const ExtensionPermissionSet* permissions; |
| 960 | 966 |
| 961 UpdatedExtensionPermissionsInfo( | 967 UpdatedExtensionPermissionsInfo( |
| 962 const Extension* extension, | 968 const Extension* extension, |
| 963 const ExtensionPermissionSet* permissions, | 969 const ExtensionPermissionSet* permissions, |
| 964 Reason reason); | 970 Reason reason); |
| 965 }; | 971 }; |
| 966 | 972 |
| 967 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ | 973 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ |
| OLD | NEW |