Loosen up heuristics for detecting account creation forms.
[chromium-blink-merge.git] / content / public / common / resource_dispatcher_delegate.h
blob43d174a8df385219efe1ec89deb2f2012845da42
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_COMMON_RESOURCE_DISPATCHER_DELEGATE_H_
6 #define CONTENT_PUBLIC_COMMON_RESOURCE_DISPATCHER_DELEGATE_H_
8 #include "content/common/content_export.h"
9 #include "webkit/glue/resource_loader_bridge.h"
11 namespace content {
13 // Interface that allows observing request events and optionally replacing the
14 // peer.
15 class CONTENT_EXPORT ResourceDispatcherDelegate {
16 public:
17 virtual ~ResourceDispatcherDelegate() {}
19 virtual webkit_glue::ResourceLoaderBridge::Peer* OnRequestComplete(
20 webkit_glue::ResourceLoaderBridge::Peer* current_peer,
21 ResourceType::Type resource_type,
22 int error_code) = 0;
24 virtual webkit_glue::ResourceLoaderBridge::Peer* OnReceivedResponse(
25 webkit_glue::ResourceLoaderBridge::Peer* current_peer,
26 const std::string& mime_type,
27 const GURL& url) = 0;
30 } // namespace content
32 #endif // CONTENT_PUBLIC_COMMON_RESOURCE_DISPATCHER_DELEGATE_H_