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:
Marshall Greenblatt
2011-10-07 10:13:04 +00:00
parent 4bacca6998
commit 7a3154c9ba
11 changed files with 76 additions and 21 deletions

View File

@@ -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();
};