| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 357 // there is a content script that matches all hosts, if there is a host | 357 // there is a content script that matches all hosts, if there is a host |
| 358 // permission grants access to all hosts (like <all_urls>) or an api | 358 // permission grants access to all hosts (like <all_urls>) or an api |
| 359 // permission that effectively grants access to all hosts (e.g. proxy, | 359 // permission that effectively grants access to all hosts (e.g. proxy, |
| 360 // network, etc.) | 360 // network, etc.) |
| 361 bool HasEffectiveAccessToAllHosts() const; | 361 bool HasEffectiveAccessToAllHosts() const; |
| 362 | 362 |
| 363 // Whether the extension effectively has all permissions (for example, by | 363 // Whether the extension effectively has all permissions (for example, by |
| 364 // having an NPAPI plugin). | 364 // having an NPAPI plugin). |
| 365 bool HasFullPermissions() const; | 365 bool HasFullPermissions() const; |
| 366 | 366 |
| 367 // Whether context menu should be shown for page and browser actions. |
| 368 bool ShowConfigureContextMenus() const; |
| 369 |
| 367 // Returns the Homepage URL for this extension. If homepage_url was not | 370 // Returns the Homepage URL for this extension. If homepage_url was not |
| 368 // specified in the manifest, this returns the Google Gallery URL. For | 371 // specified in the manifest, this returns the Google Gallery URL. For |
| 369 // third-party extensions, this returns a blank GURL. | 372 // third-party extensions, this returns a blank GURL. |
| 370 GURL GetHomepageURL() const; | 373 GURL GetHomepageURL() const; |
| 371 | 374 |
| 372 // Returns a list of paths (relative to the extension dir) for images that | 375 // Returns a list of paths (relative to the extension dir) for images that |
| 373 // the browser might load (like themes and page action icons). | 376 // the browser might load (like themes and page action icons). |
| 374 std::set<FilePath> GetBrowserImages() const; | 377 std::set<FilePath> GetBrowserImages() const; |
| 375 | 378 |
| 376 // Get an extension icon as a resource or URL. | 379 // Get an extension icon as a resource or URL. |
| (...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 769 // Was the extension already disabled? | 772 // Was the extension already disabled? |
| 770 bool already_disabled; | 773 bool already_disabled; |
| 771 | 774 |
| 772 // The extension being unloaded - this should always be non-NULL. | 775 // The extension being unloaded - this should always be non-NULL. |
| 773 const Extension* extension; | 776 const Extension* extension; |
| 774 | 777 |
| 775 UnloadedExtensionInfo(const Extension* extension, Reason reason); | 778 UnloadedExtensionInfo(const Extension* extension, Reason reason); |
| 776 }; | 779 }; |
| 777 | 780 |
| 778 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ | 781 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ |
| OLD | NEW |