1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CONTENT_PUBLIC_CHILD_RESOURCE_DISPATCHER_DELEGATE_H_
6 #define CONTENT_PUBLIC_CHILD_RESOURCE_DISPATCHER_DELEGATE_H_
10 #include "content/common/content_export.h"
11 #include "content/public/common/resource_type.h"
19 // Interface that allows observing request events and optionally replacing the
21 class CONTENT_EXPORT ResourceDispatcherDelegate {
23 virtual ~ResourceDispatcherDelegate() {}
25 virtual RequestPeer* OnRequestComplete(RequestPeer* current_peer,
26 ResourceType resource_type,
29 virtual RequestPeer* OnReceivedResponse(RequestPeer* current_peer,
30 const std::string& mime_type,
34 } // namespace content
36 #endif // CONTENT_PUBLIC_CHILD_RESOURCE_DISPATCHER_DELEGATE_H_