Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1388)

Side by Side Diff: chrome/common/extensions/extension.h

Issue 8296017: Revert 105659 - Delay network requests on startup if any webRequest or webNavigation extensions a... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/common/extensions/extension.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/common/extensions/extension.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698