mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Correct implementation of the ability to observe and modify resource redirects (issue #346).
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@419 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@@ -8,14 +8,11 @@
|
||||
|
||||
#include "include/cef.h"
|
||||
#include "base/message_loop_proxy.h"
|
||||
#include "net/url_request/url_request.h"
|
||||
#include <string>
|
||||
|
||||
class GURL;
|
||||
|
||||
namespace net {
|
||||
class URLRequest;
|
||||
};
|
||||
|
||||
class BrowserResourceLoaderBridge {
|
||||
public:
|
||||
// May only be called after Init.
|
||||
@@ -32,6 +29,10 @@ class BrowserResourceLoaderBridge {
|
||||
static CefRefPtr<CefBrowser> GetBrowserForRequest(net::URLRequest* request);
|
||||
|
||||
static scoped_refptr<base::MessageLoopProxy> GetCacheThread();
|
||||
|
||||
// Used for intercepting URL redirects. Only one interceptor will be created
|
||||
// and its lifespan is controlled by the BrowserRequestContext.
|
||||
static net::URLRequest::Interceptor* CreateRequestInterceptor();
|
||||
};
|
||||
|
||||
#endif // _BROWSER_RESOURCE_LOADER_BRIDGE_H
|
||||
|
Reference in New Issue
Block a user