2015-02-13 23:17:08 +00:00
|
|
|
// Copyright (c) 2015 The Chromium Authors. All rights reserved.
|
2012-04-03 01:34:16 +00:00
|
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
|
|
// found in the LICENSE file.
|
|
|
|
|
2015-11-25 21:53:12 -05:00
|
|
|
#ifndef CEF_LIBCEF_BROWSER_NET_URL_REQUEST_CONTEXT_GETTER_H_
|
|
|
|
#define CEF_LIBCEF_BROWSER_NET_URL_REQUEST_CONTEXT_GETTER_H_
|
2012-04-03 01:34:16 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "net/url_request/url_request_context_getter.h"
|
|
|
|
|
|
|
|
namespace net {
|
|
|
|
class HostResolver;
|
|
|
|
}
|
|
|
|
|
2015-02-13 23:17:08 +00: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 01:34:16 +00:00
|
|
|
class CefURLRequestContextGetter : public net::URLRequestContextGetter {
|
|
|
|
public:
|
2015-02-13 23:17:08 +00:00
|
|
|
CefURLRequestContextGetter() {}
|
2012-04-03 01:34:16 +00:00
|
|
|
|
2015-02-13 23:17:08 +00:00
|
|
|
// Called from CefResourceContext::GetHostResolver().
|
|
|
|
virtual net::HostResolver* GetHostResolver() const = 0;
|
2012-06-28 17:21:18 +00:00
|
|
|
|
2012-04-03 01:34:16 +00:00
|
|
|
private:
|
|
|
|
DISALLOW_COPY_AND_ASSIGN(CefURLRequestContextGetter);
|
|
|
|
};
|
|
|
|
|
2015-11-25 21:53:12 -05:00
|
|
|
#endif // CEF_LIBCEF_BROWSER_NET_URL_REQUEST_CONTEXT_GETTER_H_
|