mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Pass the originating browser to CefSchemeHandlerFactory::Create() (issue #362).
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@305 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@@ -6,11 +6,16 @@
|
||||
#ifndef _BROWSER_RESOURCE_LOADER_BRIDGE_H
|
||||
#define _BROWSER_RESOURCE_LOADER_BRIDGE_H
|
||||
|
||||
#include <string>
|
||||
#include "include/cef.h"
|
||||
#include "base/message_loop_proxy.h"
|
||||
#include <string>
|
||||
|
||||
class GURL;
|
||||
|
||||
namespace net {
|
||||
class URLRequest;
|
||||
};
|
||||
|
||||
class BrowserResourceLoaderBridge {
|
||||
public:
|
||||
// May only be called after Init.
|
||||
@@ -21,6 +26,11 @@ class BrowserResourceLoaderBridge {
|
||||
const GURL& first_party_for_cookies);
|
||||
static void SetAcceptAllCookies(bool accept_all_cookies);
|
||||
|
||||
// Return the CefBrowser associated with the specified request. The browser
|
||||
// will be NULL in cases where the request was initiated using the
|
||||
// CefWebURLRequest API.
|
||||
static CefRefPtr<CefBrowser> GetBrowserForRequest(net::URLRequest* request);
|
||||
|
||||
static scoped_refptr<base::MessageLoopProxy> GetCacheThread();
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user