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 | |
430 // Returns the Homepage URL for this extension. If homepage_url was not | 425 // Returns the Homepage URL for this extension. If homepage_url was not |
431 // specified in the manifest, this returns the Google Gallery URL. For | 426 // specified in the manifest, this returns the Google Gallery URL. For |
432 // third-party extensions, this returns a blank GURL. | 427 // third-party extensions, this returns a blank GURL. |
433 GURL GetHomepageURL() const; | 428 GURL GetHomepageURL() const; |
434 | 429 |
435 // Returns a list of paths (relative to the extension dir) for images that | 430 // Returns a list of paths (relative to the extension dir) for images that |
436 // the browser might load (like themes and page action icons). | 431 // the browser might load (like themes and page action icons). |
437 std::set<FilePath> GetBrowserImages() const; | 432 std::set<FilePath> GetBrowserImages() const; |
438 | 433 |
439 // Get an extension icon as a resource or URL. | 434 // Get an extension icon as a resource or URL. |
(...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
928 // only contain the removed permissions. | 923 // only contain the removed permissions. |
929 const ExtensionPermissionSet* permissions; | 924 const ExtensionPermissionSet* permissions; |
930 | 925 |
931 UpdatedExtensionPermissionsInfo( | 926 UpdatedExtensionPermissionsInfo( |
932 const Extension* extension, | 927 const Extension* extension, |
933 const ExtensionPermissionSet* permissions, | 928 const ExtensionPermissionSet* permissions, |
934 Reason reason); | 929 Reason reason); |
935 }; | 930 }; |
936 | 931 |
937 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ | 932 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ |
OLD | NEW |