30 lines
931 B
C
30 lines
931 B
C
|
// 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>
|
||
|
#include "net/url_request/url_request_context.h"
|
||
|
|
||
|
class BrowserRequestContext;
|
||
|
class CefBrowserImpl;
|
||
|
|
||
|
// A basic URLRequestContext that only provides an in-memory cookie store.
|
||
|
class BrowserRequestContextProxy : public net::URLRequestContext {
|
||
|
public:
|
||
|
// Use an in-memory cache
|
||
|
BrowserRequestContextProxy(BrowserRequestContext* context,
|
||
|
CefBrowserImpl* browser);
|
||
|
|
||
|
virtual const std::string& GetUserAgent(const GURL& url) const OVERRIDE;
|
||
|
|
||
|
private:
|
||
|
BrowserRequestContext* context_;
|
||
|
CefBrowserImpl* browser_;
|
||
|
};
|
||
|
|
||
|
#endif // CEF_LIBCEF_BROWSER_REQUEST_CONTEXT_PROXY_H_
|