2015-02-14 00:17:08 +01:00
|
|
|
// Copyright (c) 2015 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.
|
|
|
|
|
2015-11-26 03:53:12 +01:00
|
|
|
#ifndef CEF_LIBCEF_BROWSER_NET_URL_REQUEST_CONTEXT_H_
|
|
|
|
#define CEF_LIBCEF_BROWSER_NET_URL_REQUEST_CONTEXT_H_
|
2015-02-14 00:17:08 +01:00
|
|
|
#pragma once
|
|
|
|
|
2016-09-01 13:24:30 +02:00
|
|
|
#include "base/logging.h"
|
2015-02-14 00:17:08 +01:00
|
|
|
#include "net/url_request/url_request_context.h"
|
|
|
|
|
|
|
|
// Owns URLRequest instances and provides access to network-related
|
|
|
|
// functionality. Life span is controlled by CefURLRequestContextGetter*. Only
|
|
|
|
// accessed on the IO thread. URLRequest objects are created via ResourceContext
|
|
|
|
// and URLFetcher. All URLRequest objects must be destroyed before this object
|
|
|
|
// is destroyed. See browser_context.h for an object relationship diagram.
|
|
|
|
class CefURLRequestContext : public net::URLRequestContext {
|
|
|
|
public:
|
|
|
|
CefURLRequestContext();
|
|
|
|
~CefURLRequestContext() override;
|
|
|
|
|
2016-09-01 13:24:30 +02:00
|
|
|
#if DCHECK_IS_ON()
|
2015-02-14 00:17:08 +01:00
|
|
|
// Simple tracking of allocated objects.
|
2017-05-17 11:29:28 +02:00
|
|
|
static base::AtomicRefCount DebugObjCt;
|
2015-02-14 00:17:08 +01:00
|
|
|
#endif
|
|
|
|
|
|
|
|
private:
|
|
|
|
DISALLOW_COPY_AND_ASSIGN(CefURLRequestContext);
|
|
|
|
};
|
|
|
|
|
2015-11-26 03:53:12 +01:00
|
|
|
#endif // CEF_LIBCEF_BROWSER_NET_URL_REQUEST_CONTEXT_H_
|