mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
- Move to a unified thread model for CEF based on the CEF2 implementation.
- Add the ability to post user-defined tasks for execution on CEF threads (issue #25). - Update the CEF swap image. git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@90 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@@ -73,6 +73,13 @@ BrowserRequestContext::~BrowserRequestContext() {
|
||||
delete static_cast<net::StaticCookiePolicy*>(cookie_policy_);
|
||||
}
|
||||
|
||||
void BrowserRequestContext::SetAcceptAllCookies(bool accept_all_cookies) {
|
||||
net::StaticCookiePolicy::Type policy_type = accept_all_cookies ?
|
||||
net::StaticCookiePolicy::ALLOW_ALL_COOKIES :
|
||||
net::StaticCookiePolicy::BLOCK_THIRD_PARTY_COOKIES;
|
||||
static_cast<net::StaticCookiePolicy*>(cookie_policy())->set_type(policy_type);
|
||||
}
|
||||
|
||||
const std::string& BrowserRequestContext::GetUserAgent(
|
||||
const GURL& url) const {
|
||||
return webkit_glue::GetUserAgent(url);
|
||||
|
Reference in New Issue
Block a user