OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
415 | 415 |
416 // Sets the active |permissions|. | 416 // Sets the active |permissions|. |
417 void SetActivePermissions(const ExtensionPermissionSet* permissions) const; | 417 void SetActivePermissions(const ExtensionPermissionSet* permissions) const; |
418 | 418 |
419 // Gets the extension's active permission set. | 419 // Gets the extension's active permission set. |
420 scoped_refptr<const ExtensionPermissionSet> GetActivePermissions() const; | 420 scoped_refptr<const ExtensionPermissionSet> GetActivePermissions() const; |
421 | 421 |
422 // Whether context menu should be shown for page and browser actions. | 422 // Whether context menu should be shown for page and browser actions. |
423 bool ShowConfigureContextMenus() const; | 423 bool ShowConfigureContextMenus() const; |
424 | 424 |
| 425 // Whether network requests should be delayed on browser startup until the |
| 426 // extension's background page has loaded, even if the extension doesn't |
| 427 // explicitly request a delay. |
| 428 bool ImplicitlyDelaysNetworkStartup() const; |
| 429 |
425 // Returns the Homepage URL for this extension. If homepage_url was not | 430 // Returns the Homepage URL for this extension. If homepage_url was not |
426 // specified in the manifest, this returns the Google Gallery URL. For | 431 // specified in the manifest, this returns the Google Gallery URL. For |
427 // third-party extensions, this returns a blank GURL. | 432 // third-party extensions, this returns a blank GURL. |
428 GURL GetHomepageURL() const; | 433 GURL GetHomepageURL() const; |
429 | 434 |
430 // Returns a list of paths (relative to the extension dir) for images that | 435 // Returns a list of paths (relative to the extension dir) for images that |
431 // the browser might load (like themes and page action icons). | 436 // the browser might load (like themes and page action icons). |
432 std::set<FilePath> GetBrowserImages() const; | 437 std::set<FilePath> GetBrowserImages() const; |
433 | 438 |
434 // Get an extension icon as a resource or URL. | 439 // Get an extension icon as a resource or URL. |
(...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
923 // only contain the removed permissions. | 928 // only contain the removed permissions. |
924 const ExtensionPermissionSet* permissions; | 929 const ExtensionPermissionSet* permissions; |
925 | 930 |
926 UpdatedExtensionPermissionsInfo( | 931 UpdatedExtensionPermissionsInfo( |
927 const Extension* extension, | 932 const Extension* extension, |
928 const ExtensionPermissionSet* permissions, | 933 const ExtensionPermissionSet* permissions, |
929 Reason reason); | 934 Reason reason); |
930 }; | 935 }; |
931 | 936 |
932 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ | 937 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ |
OLD | NEW |