Cast: Stop logging kVideoFrameSentToEncoder and rename a couple events.
[chromium-blink-merge.git] / content / public / child / resource_dispatcher_delegate.h
blob1c6168824fca49ed13084c5eeac6f3519643d434
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_
8 #include <string>
10 #include "content/common/content_export.h"
11 #include "webkit/common/resource_type.h"
13 class GURL;
15 namespace content {
17 class RequestPeer;
19 // Interface that allows observing request events and optionally replacing the
20 // peer.
21 class CONTENT_EXPORT ResourceDispatcherDelegate {
22 public:
23 virtual ~ResourceDispatcherDelegate() {}
25 virtual RequestPeer* OnRequestComplete(
26 RequestPeer* current_peer,
27 ResourceType::Type resource_type,
28 int error_code) = 0;
30 virtual RequestPeer* OnReceivedResponse(
31 RequestPeer* current_peer,
32 const std::string& mime_type,
33 const GURL& url) = 0;
36 } // namespace content
38 #endif // CONTENT_PUBLIC_CHILD_RESOURCE_DISPATCHER_DELEGATE_H_