Index: chrome/browser/renderer_host/resource_dispatcher_host.h |
=================================================================== |
--- chrome/browser/renderer_host/resource_dispatcher_host.h (revision 40221) |
+++ chrome/browser/renderer_host/resource_dispatcher_host.h (working copy) |
@@ -274,6 +274,14 @@ |
IncrementOutstandingRequestsMemoryCost); |
FRIEND_TEST(ResourceDispatcherHostTest, |
CalculateApproximateMemoryCost); |
+ FRIEND_TEST(ApplyExtensionMessageFilterPolicyTest, WrongScheme); |
+ FRIEND_TEST(ApplyExtensionMessageFilterPolicyTest, GoodScheme); |
+ FRIEND_TEST(ApplyExtensionMessageFilterPolicyTest, |
+ GoodSchemeWithSecurityFilter); |
+ FRIEND_TEST(ApplyExtensionMessageFilterPolicyTest, |
+ GoodSchemeWrongResourceType); |
+ FRIEND_TEST(ApplyExtensionMessageFilterPolicyTest, |
+ WrongSchemeResourceAndFilter); |
class ShutdownTask; |
@@ -402,6 +410,13 @@ |
// Returns true if the message passed in is a resource related message. |
static bool IsResourceDispatcherHostMessage(const IPC::Message&); |
+ // Applies FilterPolicy::FILTER_EXTENSION_MESSAGES to all text/css requests |
+ // that have "chrome-extension://" scheme. |
+ static void ApplyExtensionMessageFilterPolicy( |
+ const GURL& url, |
+ const ResourceType::Type& resource_type, |
+ ResourceDispatcherHostRequestInfo* request_info); |
+ |
PendingRequestList pending_requests_; |
// A timer that periodically calls UpdateLoadStates while pending_requests_ |