summaryrefslogtreecommitdiffstats
path: root/chrome/common/extensions/extension.h
diff options
context:
space:
mode:
authorpam@chromium.org <pam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-15 22:09:53 +0000
committerpam@chromium.org <pam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-15 22:09:53 +0000
commitb6cf240f37f8e953558b1c24bff3568debc76d3f (patch)
treedad9fa103eb311f2ec030bfbe4f5b8a8a69c5033 /chrome/common/extensions/extension.h
parent034837b1ac16b04ea7022d142f6a06f86984b41b (diff)
downloadchromium_src-b6cf240f37f8e953558b1c24bff3568debc76d3f.zip
chromium_src-b6cf240f37f8e953558b1c24bff3568debc76d3f.tar.gz
chromium_src-b6cf240f37f8e953558b1c24bff3568debc76d3f.tar.bz2
Revert 105661 - Revert 105659 - Delay network requests on startup if any webRequest or webNavigation extensions are enabled.
[Relanding 105659. This will re-cause failures in chrome_frame_net_tests, to be fixed in the next CL.] Add a webRequest extension API permission, used to tell when an extension uses that API and therefore wants to delay startup. Use the "tabs" warning for it. Also clean up the UserScriptListener, which never released requests individually and so doesn't need to track them individually either, and makes the RequestQueue handle bulk releases by its delegates instead. BUG=99450 TEST=unit_tests.exe --gtest_filter=NetworkDelayListenerTest.* Review URL: http://codereview.chromium.org/8205001 TBR=pam@chromium.org Review URL: http://codereview.chromium.org/8296017 TBR=pam@chromium.org Review URL: http://codereview.chromium.org/8308003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105686 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/extensions/extension.h')
-rw-r--r--chrome/common/extensions/extension.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/common/extensions/extension.h b/chrome/common/extensions/extension.h
index 4eaf58b..bdf493f 100644
--- a/chrome/common/extensions/extension.h
+++ b/chrome/common/extensions/extension.h
@@ -422,6 +422,11 @@ class Extension : public base::RefCountedThreadSafe<Extension> {
// Whether context menu should be shown for page and browser actions.
bool ShowConfigureContextMenus() const;
+ // Whether network requests should be delayed on browser startup until the
+ // extension's background page has loaded, even if the extension doesn't
+ // explicitly request a delay.
+ bool ImplicitlyDelaysNetworkStartup() const;
+
// Returns the Homepage URL for this extension. If homepage_url was not
// specified in the manifest, this returns the Google Gallery URL. For
// third-party extensions, this returns a blank GURL.