From 801b010696aa39c2583bc1a220733261facf7439 Mon Sep 17 00:00:00 2001 From: "pam@chromium.org" Date: Sat, 15 Oct 2011 10:59:34 +0000 Subject: 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 --- net/url_request/url_request.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'net') 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; -- cgit v1.1