| Index: content/browser/content_resource_dispatcher_host.h
|
| diff --git a/content/browser/content_resource_dispatcher_host.h b/content/browser/content_resource_dispatcher_host.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..039bfd8c8b7df188b67032dc26d164340d1914e3
|
| --- /dev/null
|
| +++ b/content/browser/content_resource_dispatcher_host.h
|
| @@ -0,0 +1,41 @@
|
| +// Copyright 2016 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_BROWSER_CONTENT_RESOURCE_DISPATCHER_HOST_H_
|
| +#define CONTENT_BROWSER_CONTENT_RESOURCE_DISPATCHER_HOST_H_
|
| +
|
| +#include "base/macros.h"
|
| +#include "content/browser/content_resource_dispatcher_host_delegate.h"
|
| +#include "content/public/browser/resource_dispatcher_host.h"
|
| +
|
| +namespace content {
|
| +
|
| +class ResourceDispatcherHostImpl;
|
| +
|
| +// Wrapper around ResourceDispatcherHostImpl that wraps a
|
| +// ContentResourceDispatcherHostDelegate around the
|
| +// ResourceDispatcherHostDelegate supplied by the content client.
|
| +class ContentResourceDispatcherHost : public ResourceDispatcherHost {
|
| + public:
|
| + ContentResourceDispatcherHost();
|
| + ~ContentResourceDispatcherHost() override;
|
| +
|
| + void SetChild(ResourceDispatcherHostImpl* child);
|
| +
|
| + // ResourceDispatcherHost:
|
| + void SetDelegate(ResourceDispatcherHostDelegate* delegate) override;
|
| + void SetAllowCrossOriginAuthPrompt(bool value) override;
|
| + void ClearLoginDelegateForRequest(net::URLRequest* request) override;
|
| +
|
| + private:
|
| + ResourceDispatcherHostImpl* child_;
|
| + std::unique_ptr<ContentResourceDispatcherHostDelegate>
|
| + content_resource_dispatcher_host_delegate_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(ContentResourceDispatcherHost);
|
| +};
|
| +
|
| +} // content
|
| +
|
| +#endif // CONTENT_BROWSER_CONTENT_RESOURCE_DISPATCHER_HOST_H_
|
|
|