diff options
Diffstat (limited to 'content/common/resource_dispatcher_delegate.h')
-rw-r--r-- | content/common/resource_dispatcher_delegate.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/content/common/resource_dispatcher_delegate.h b/content/common/resource_dispatcher_delegate.h new file mode 100644 index 0000000..c19ed57 --- /dev/null +++ b/content/common/resource_dispatcher_delegate.h @@ -0,0 +1,30 @@ +// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef CONTENT_COMMON_RESOURCE_DISPATCHER_DELEGATE_H_ +#define CONTENT_COMMON_RESOURCE_DISPATCHER_DELEGATE_H_ +#pragma once + +#include "content/common/content_export.h" +#include "webkit/glue/resource_loader_bridge.h" + +// Interface that allows observing request events and optionally replacing the +// peer. +class CONTENT_EXPORT ResourceDispatcherDelegate { + public: + ResourceDispatcherDelegate(); + virtual ~ResourceDispatcherDelegate(); + + virtual webkit_glue::ResourceLoaderBridge::Peer* OnRequestComplete( + webkit_glue::ResourceLoaderBridge::Peer* current_peer, + ResourceType::Type resource_type, + const net::URLRequestStatus& status); + + virtual webkit_glue::ResourceLoaderBridge::Peer* OnReceivedResponse( + webkit_glue::ResourceLoaderBridge::Peer* current_peer, + const std::string& mime_type, + const GURL& url); +}; + +#endif // CONTENT_COMMON_RESOURCE_DISPATCHER_DELEGATE_H_ |