2012-06-28 19:21:18 +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.
|
|
|
|
|
2015-11-26 03:53:12 +01:00
|
|
|
#ifndef CEF_LIBCEF_BROWSER_NET_URL_REQUEST_CONTEXT_PROXY_H_
|
|
|
|
#define CEF_LIBCEF_BROWSER_NET_URL_REQUEST_CONTEXT_PROXY_H_
|
2012-06-28 19:21:18 +02:00
|
|
|
#pragma once
|
|
|
|
|
2017-08-04 00:55:19 +02:00
|
|
|
#include "include/cef_request_context.h"
|
2013-09-03 18:43:31 +02:00
|
|
|
#include "include/cef_request_context_handler.h"
|
2015-11-26 03:53:12 +01:00
|
|
|
#include "libcef/browser/net/url_request_context.h"
|
2013-09-03 18:43:31 +02:00
|
|
|
|
2012-06-28 19:21:18 +02:00
|
|
|
class CefBrowserHostImpl;
|
2016-03-16 03:55:59 +01:00
|
|
|
class CefCookieStoreProxy;
|
2015-02-14 00:17:08 +01:00
|
|
|
class CefURLRequestContextImpl;
|
2012-06-28 19:21:18 +02:00
|
|
|
|
2015-02-14 00:17:08 +01:00
|
|
|
// URLRequestContext implementation for a particular CefRequestContext. Life
|
|
|
|
// span is controlled by CefURLRequestContextGetterProxy. Only accessed on the
|
|
|
|
// IO thread. See browser_context.h for an object relationship diagram.
|
|
|
|
class CefURLRequestContextProxy : public CefURLRequestContext {
|
2012-06-28 19:21:18 +02:00
|
|
|
public:
|
2015-02-14 00:17:08 +01:00
|
|
|
// The |parent| pointer is kept alive by CefURLRequestContextGetterProxy
|
|
|
|
// which has a ref to the owning CefURLRequestContextGetterImpl. It is
|
|
|
|
// guaranteed to outlive this object.
|
|
|
|
CefURLRequestContextProxy(CefURLRequestContextImpl* parent,
|
|
|
|
CefRefPtr<CefRequestContextHandler> handler);
|
2014-11-12 20:25:15 +01:00
|
|
|
~CefURLRequestContextProxy() override;
|
2012-06-28 19:21:18 +02:00
|
|
|
|
|
|
|
private:
|
2016-04-27 22:38:52 +02:00
|
|
|
std::unique_ptr<CefCookieStoreProxy> cookie_store_proxy_;
|
2012-06-28 19:21:18 +02:00
|
|
|
|
|
|
|
DISALLOW_COPY_AND_ASSIGN(CefURLRequestContextProxy);
|
|
|
|
};
|
|
|
|
|
2015-11-26 03:53:12 +01:00
|
|
|
#endif // CEF_LIBCEF_BROWSER_NET_URL_REQUEST_CONTEXT_PROXY_H_
|