diff options
Diffstat (limited to 'net/url_request/url_request_context.h')
-rw-r--r-- | net/url_request/url_request_context.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/net/url_request/url_request_context.h b/net/url_request/url_request_context.h index 998e3fb..4e3b9c1 100644 --- a/net/url_request/url_request_context.h +++ b/net/url_request/url_request_context.h @@ -12,6 +12,7 @@ #pragma once #include "base/memory/ref_counted.h" +#include "base/memory/scoped_ptr.h" #include "base/threading/non_thread_safe.h" #include "net/base/net_api.h" #include "net/base/net_log.h" @@ -115,7 +116,7 @@ class NET_API URLRequestContext } // Gets the ftp transaction factory for this context. - FtpTransactionFactory* ftp_transaction_factory() { + FtpTransactionFactory* ftp_transaction_factory() const { return ftp_transaction_factory_; } void set_ftp_transaction_factory(FtpTransactionFactory* factory) { @@ -141,7 +142,7 @@ class NET_API URLRequestContext } // Gets the FTP authentication cache for this context. - FtpAuthCache* ftp_auth_cache() { return &ftp_auth_cache_; } + FtpAuthCache* ftp_auth_cache() const { return ftp_auth_cache_.get(); } // Gets the value of 'Accept-Charset' header field. const std::string& accept_charset() const { return accept_charset_; } @@ -196,7 +197,7 @@ class NET_API URLRequestContext NetworkDelegate* network_delegate_; scoped_refptr<CookieStore> cookie_store_; scoped_refptr<TransportSecurityState> transport_security_state_; - FtpAuthCache ftp_auth_cache_; + scoped_ptr<FtpAuthCache> ftp_auth_cache_; std::string accept_language_; std::string accept_charset_; // The charset of the referrer where this request comes from. It's not |