2012-06-25 21:21:27 +00:00
|
|
|
// Copyright (c) 2012 The Chromium Embedded Framework 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 CEF_LIBCEF_BROWSER_RESOURCE_DISPATCHER_HOST_DELEGATE_H_
|
|
|
|
#define CEF_LIBCEF_BROWSER_RESOURCE_DISPATCHER_HOST_DELEGATE_H_
|
|
|
|
#pragma once
|
|
|
|
|
2013-01-14 19:21:17 +00:00
|
|
|
#include "base/compiler_specific.h"
|
2012-06-25 21:21:27 +00:00
|
|
|
#include "content/public/browser/resource_dispatcher_host_delegate.h"
|
|
|
|
|
|
|
|
// Implements ResourceDispatcherHostDelegate.
|
|
|
|
class CefResourceDispatcherHostDelegate
|
|
|
|
: public content::ResourceDispatcherHostDelegate {
|
|
|
|
public:
|
|
|
|
CefResourceDispatcherHostDelegate();
|
2014-11-12 19:25:15 +00:00
|
|
|
~CefResourceDispatcherHostDelegate() override;
|
2012-06-25 21:21:27 +00:00
|
|
|
|
|
|
|
// ResourceDispatcherHostDelegate methods.
|
2014-11-12 19:25:15 +00:00
|
|
|
void RequestBeginning(
|
2013-09-12 17:44:54 +00:00
|
|
|
net::URLRequest* request,
|
|
|
|
content::ResourceContext* resource_context,
|
2014-07-02 18:25:22 +00:00
|
|
|
content::AppCacheService* appcache_service,
|
2014-09-04 17:53:40 +00:00
|
|
|
content::ResourceType resource_type,
|
2014-11-12 19:25:15 +00:00
|
|
|
ScopedVector<content::ResourceThrottle>* throttles) override;
|
|
|
|
bool HandleExternalProtocol(const GURL& url,
|
|
|
|
int child_id,
|
|
|
|
int route_id) override;
|
|
|
|
void OnRequestRedirected(
|
2013-04-18 17:58:23 +00:00
|
|
|
const GURL& redirect_url,
|
|
|
|
net::URLRequest* request,
|
|
|
|
content::ResourceContext* resource_context,
|
2014-11-12 19:25:15 +00:00
|
|
|
content::ResourceResponse* response) override;
|
2012-06-25 21:21:27 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
DISALLOW_COPY_AND_ASSIGN(CefResourceDispatcherHostDelegate);
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // CEF_LIBCEF_BROWSER_RESOURCE_DISPATCHER_HOST_DELEGATE_H_
|