| 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 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 | 7 |
| 8 #include <algorithm> | 8 #include <algorithm> |
| 9 #include <iosfwd> | 9 #include <iosfwd> |
| 10 #include <map> | 10 #include <map> |
| (...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 394 const char* list_error, | 394 const char* list_error, |
| 395 const char* value_error, | 395 const char* value_error, |
| 396 string16* error); | 396 string16* error); |
| 397 bool LoadLaunchContainer(string16* error); | 397 bool LoadLaunchContainer(string16* error); |
| 398 bool LoadLaunchURL(string16* error); | 398 bool LoadLaunchURL(string16* error); |
| 399 | 399 |
| 400 bool LoadSharedFeatures(string16* error); | 400 bool LoadSharedFeatures(string16* error); |
| 401 bool LoadDescription(string16* error); | 401 bool LoadDescription(string16* error); |
| 402 bool LoadManifestVersion(string16* error); | 402 bool LoadManifestVersion(string16* error); |
| 403 | 403 |
| 404 // Returns true if the extension has more than one "UI surface". For example, | |
| 405 // an extension that has a browser action and a page action. | |
| 406 bool HasMultipleUISurfaces() const; | |
| 407 | |
| 408 // Updates the launch URL and extents for the extension using the given | 404 // Updates the launch URL and extents for the extension using the given |
| 409 // |override_url|. | 405 // |override_url|. |
| 410 void OverrideLaunchUrl(const GURL& override_url); | 406 void OverrideLaunchUrl(const GURL& override_url); |
| 411 | 407 |
| 412 bool CheckMinimumChromeVersion(string16* error) const; | 408 bool CheckMinimumChromeVersion(string16* error) const; |
| 413 | 409 |
| 414 // Check that platform app features are valid. Called after InitFromValue. | 410 // Check that platform app features are valid. Called after InitFromValue. |
| 415 bool CheckPlatformAppFeatures(string16* error) const; | 411 bool CheckPlatformAppFeatures(string16* error) const; |
| 416 | 412 |
| 417 // Check that features don't conflict. Called after InitFromValue. | 413 // Check that features don't conflict. Called after InitFromValue. |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 582 | 578 |
| 583 UpdatedExtensionPermissionsInfo( | 579 UpdatedExtensionPermissionsInfo( |
| 584 const Extension* extension, | 580 const Extension* extension, |
| 585 const PermissionSet* permissions, | 581 const PermissionSet* permissions, |
| 586 Reason reason); | 582 Reason reason); |
| 587 }; | 583 }; |
| 588 | 584 |
| 589 } // namespace extensions | 585 } // namespace extensions |
| 590 | 586 |
| 591 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ | 587 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ |
| OLD | NEW |