2015-02-14 00:17:08 +01:00
|
|
|
// Copyright (c) 2015 The Chromium Authors. All rights reserved.
|
2012-04-03 03:34:16 +02:00
|
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
|
|
// found in the LICENSE file.
|
|
|
|
|
2015-11-26 03:53:12 +01:00
|
|
|
#ifndef CEF_LIBCEF_BROWSER_NET_URL_REQUEST_CONTEXT_GETTER_H_
|
|
|
|
#define CEF_LIBCEF_BROWSER_NET_URL_REQUEST_CONTEXT_GETTER_H_
|
2012-04-03 03:34:16 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "net/url_request/url_request_context_getter.h"
|
|
|
|
|
|
|
|
namespace net {
|
|
|
|
class HostResolver;
|
|
|
|
}
|
|
|
|
|
2015-02-14 00:17:08 +01:00
|
|
|
// Responsible for creating and owning the URLRequestContext and all network-
|
|
|
|
// related functionality. Life span is primarily controlled by
|
|
|
|
// CefResourceContext*. See browser_context.h for an object relationship
|
|
|
|
// diagram.
|
2012-04-03 03:34:16 +02:00
|
|
|
class CefURLRequestContextGetter : public net::URLRequestContextGetter {
|
|
|
|
public:
|
2015-02-14 00:17:08 +01:00
|
|
|
CefURLRequestContextGetter() {}
|
2012-04-03 03:34:16 +02:00
|
|
|
|
2015-02-14 00:17:08 +01:00
|
|
|
// Called from CefResourceContext::GetHostResolver().
|
|
|
|
virtual net::HostResolver* GetHostResolver() const = 0;
|
2012-06-28 19:21:18 +02:00
|
|
|
|
2012-04-03 03:34:16 +02:00
|
|
|
private:
|
|
|
|
DISALLOW_COPY_AND_ASSIGN(CefURLRequestContextGetter);
|
|
|
|
};
|
|
|
|
|
2015-11-26 03:53:12 +01:00
|
|
|
#endif // CEF_LIBCEF_BROWSER_NET_URL_REQUEST_CONTEXT_GETTER_H_
|