1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
\r
2 // Use of this source code is governed by a BSD-style license that can be
\r
3 // found in the LICENSE file.
\r
5 #ifndef CONTENT_PUBLIC_CHILD_RESOURCE_DISPATCHER_DELEGATE_H_
\r
6 #define CONTENT_PUBLIC_CHILD_RESOURCE_DISPATCHER_DELEGATE_H_
\r
8 #include "content/common/content_export.h"
\r
9 #include "webkit/child/resource_loader_bridge.h"
\r
13 // Interface that allows observing request events and optionally replacing the
\r
15 class CONTENT_EXPORT ResourceDispatcherDelegate {
\r
17 virtual ~ResourceDispatcherDelegate() {}
\r
19 virtual webkit_glue::ResourceLoaderBridge::Peer* OnRequestComplete(
\r
20 webkit_glue::ResourceLoaderBridge::Peer* current_peer,
\r
21 ResourceType::Type resource_type,
\r
22 int error_code) = 0;
\r
24 virtual webkit_glue::ResourceLoaderBridge::Peer* OnReceivedResponse(
\r
25 webkit_glue::ResourceLoaderBridge::Peer* current_peer,
\r
26 const std::string& mime_type,
\r
27 const GURL& url) = 0;
\r
30 } // namespace content
\r
32 #endif // CONTENT_PUBLIC_CHILD_RESOURCE_DISPATCHER_DELEGATE_H_
\r