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

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

Issue 8308003: Revert 105661 - Revert 105659 - Delay network requests on startup if any webRequest or webNavigat... (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
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
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_
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