| 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 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 311 } | 311 } |
| 312 PermissionsParser* permissions_parser() { return permissions_parser_.get(); } | 312 PermissionsParser* permissions_parser() { return permissions_parser_.get(); } |
| 313 const PermissionsParser* permissions_parser() const { | 313 const PermissionsParser* permissions_parser() const { |
| 314 return permissions_parser_.get(); | 314 return permissions_parser_.get(); |
| 315 } | 315 } |
| 316 | 316 |
| 317 const PermissionsData* permissions_data() const { | 317 const PermissionsData* permissions_data() const { |
| 318 return permissions_data_.get(); | 318 return permissions_data_.get(); |
| 319 } | 319 } |
| 320 | 320 |
| 321 // Returns a hash for the extension id. |
| 322 std::string HashedIdInHex() const; |
| 323 |
| 321 // Appends |new_warning[s]| to install_warnings_. | 324 // Appends |new_warning[s]| to install_warnings_. |
| 322 void AddInstallWarning(const InstallWarning& new_warning); | 325 void AddInstallWarning(const InstallWarning& new_warning); |
| 323 void AddInstallWarnings(const std::vector<InstallWarning>& new_warnings); | 326 void AddInstallWarnings(const std::vector<InstallWarning>& new_warnings); |
| 324 const std::vector<InstallWarning>& install_warnings() const { | 327 const std::vector<InstallWarning>& install_warnings() const { |
| 325 return install_warnings_; | 328 return install_warnings_; |
| 326 } | 329 } |
| 327 const extensions::Manifest* manifest() const { | 330 const extensions::Manifest* manifest() const { |
| 328 return manifest_.get(); | 331 return manifest_.get(); |
| 329 } | 332 } |
| 330 bool wants_file_access() const { return wants_file_access_; } | 333 bool wants_file_access() const { return wants_file_access_; } |
| (...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 578 | 581 |
| 579 UpdatedExtensionPermissionsInfo( | 582 UpdatedExtensionPermissionsInfo( |
| 580 const Extension* extension, | 583 const Extension* extension, |
| 581 const PermissionSet* permissions, | 584 const PermissionSet* permissions, |
| 582 Reason reason); | 585 Reason reason); |
| 583 }; | 586 }; |
| 584 | 587 |
| 585 } // namespace extensions | 588 } // namespace extensions |
| 586 | 589 |
| 587 #endif // EXTENSIONS_COMMON_EXTENSION_H_ | 590 #endif // EXTENSIONS_COMMON_EXTENSION_H_ |
| OLD | NEW |