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