diff options
author | pam@chromium.org <pam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-15 10:59:34 +0000 |
---|---|---|
committer | pam@chromium.org <pam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-15 10:59:34 +0000 |
commit | 801b010696aa39c2583bc1a220733261facf7439 (patch) | |
tree | 22c5d3d729ee423e109c1cb812a250a0bad0b1ea /net | |
parent | db63d20c9289e5b1caacbe0a8a47b5a3a0eb9908 (diff) | |
download | chromium_src-801b010696aa39c2583bc1a220733261facf7439.zip chromium_src-801b010696aa39c2583bc1a220733261facf7439.tar.gz chromium_src-801b010696aa39c2583bc1a220733261facf7439.tar.bz2 |
Delay network requests on startup if any webRequest or webNavigation extensions are enabled.
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
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105659 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net')
-rw-r--r-- | net/url_request/url_request.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/url_request/url_request.h b/net/url_request/url_request.h index a66c012..6b23f54 100644 --- a/net/url_request/url_request.h +++ b/net/url_request/url_request.h @@ -38,6 +38,7 @@ class ResourceDispatcherHostTest; class TestAutomationProvider; class URLRequestAutomationJob; class UserScriptListenerTest; +class NetworkDelayListenerTest; // Temporary layering violation to allow existing users of a deprecated // interface. @@ -175,6 +176,7 @@ class NET_EXPORT URLRequest : NON_EXPORTED_BASE(public base::NonThreadSafe) { friend class ::ResourceDispatcherHostTest; friend class ::TestAutomationProvider; friend class ::UserScriptListenerTest; + friend class ::NetworkDelayListenerTest; friend class ::URLRequestAutomationJob; friend class TestInterceptor; friend class URLRequestFilter; |