mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2024-12-11 09:08:06 +01:00
cf5665ca3e
- Windows: Reset the window procedure in the WebWidgetHost destructor to avoid crashes if messages are delivered after the window is destroyed. - Add thread-related DCHECKS in browser_resource_loader_bridge.cc. git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@650 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
31 lines
953 B
C++
31 lines
953 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 "include/cef_base.h"
|
|
#include "net/url_request/url_request_context.h"
|
|
|
|
class BrowserRequestContext;
|
|
class CefBrowserImpl;
|
|
|
|
// A URLRequestContext implementation that proxies cookie requests to the
|
|
// client.
|
|
class BrowserRequestContextProxy : public net::URLRequestContext {
|
|
public:
|
|
BrowserRequestContextProxy(BrowserRequestContext* context,
|
|
CefBrowserImpl* browser);
|
|
|
|
virtual const std::string& GetUserAgent(const GURL& url) const OVERRIDE;
|
|
|
|
private:
|
|
BrowserRequestContext* context_;
|
|
CefRefPtr<CefBrowserImpl> browser_;
|
|
};
|
|
|
|
#endif // CEF_LIBCEF_BROWSER_REQUEST_CONTEXT_PROXY_H_
|