2012-03-22 23:08:05 +01: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.
|
|
|
|
|
|
|
|
#ifndef CEF_LIBCEF_BROWSER_REQUEST_CONTEXT_PROXY_H_
|
|
|
|
#define CEF_LIBCEF_BROWSER_REQUEST_CONTEXT_PROXY_H_
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <string>
|
2012-05-25 22:44:34 +02:00
|
|
|
#include "include/cef_base.h"
|
2012-03-22 23:08:05 +01:00
|
|
|
#include "net/url_request/url_request_context.h"
|
|
|
|
|
|
|
|
class BrowserRequestContext;
|
|
|
|
class CefBrowserImpl;
|
|
|
|
|
2012-05-25 22:44:34 +02:00
|
|
|
// A URLRequestContext implementation that proxies cookie requests to the
|
|
|
|
// client.
|
2012-03-22 23:08:05 +01:00
|
|
|
class BrowserRequestContextProxy : public net::URLRequestContext {
|
|
|
|
public:
|
|
|
|
BrowserRequestContextProxy(BrowserRequestContext* context,
|
|
|
|
CefBrowserImpl* browser);
|
|
|
|
|
|
|
|
private:
|
|
|
|
BrowserRequestContext* context_;
|
2012-05-25 22:44:34 +02:00
|
|
|
CefRefPtr<CefBrowserImpl> browser_;
|
2012-03-22 23:08:05 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // CEF_LIBCEF_BROWSER_REQUEST_CONTEXT_PROXY_H_
|