| Index: net/url_request/url_request_context.h
|
| diff --git a/net/url_request/url_request_context.h b/net/url_request/url_request_context.h
|
| index 0158d9aca17282fb5153f318f65d596a3c5fb6ef..e493de0766872728c8ef51d37c7e8eb2867c3b46 100644
|
| --- a/net/url_request/url_request_context.h
|
| +++ b/net/url_request/url_request_context.h
|
| @@ -24,6 +24,8 @@
|
| #include "net/ssl/ssl_config_service.h"
|
| #include "net/url_request/url_request.h"
|
|
|
| +#include "base/trace_event/memory_dump_provider.h"
|
| +
|
| namespace net {
|
| class CertVerifier;
|
| class ChannelIDService;
|
| @@ -51,10 +53,11 @@ class URLRequestThrottlerManager;
|
| // URLRequestContext rather than creating a new one, as guaranteeing that the
|
| // URLRequestContext is destroyed before its members can be difficult.
|
| class NET_EXPORT URLRequestContext
|
| - : NON_EXPORTED_BASE(public base::NonThreadSafe) {
|
| + : NON_EXPORTED_BASE(public base::NonThreadSafe),
|
| + public base::trace_event::MemoryDumpProvider {
|
| public:
|
| URLRequestContext();
|
| - virtual ~URLRequestContext();
|
| + ~URLRequestContext() override;
|
|
|
| // Copies the state from |other| into this context.
|
| void CopyFrom(const URLRequestContext* other);
|
| @@ -128,6 +131,7 @@ class NET_EXPORT URLRequestContext
|
| HttpTransactionFactory* http_transaction_factory() const {
|
| return http_transaction_factory_;
|
| }
|
| +
|
| void set_http_transaction_factory(HttpTransactionFactory* factory) {
|
| http_transaction_factory_ = factory;
|
| }
|
| @@ -230,6 +234,14 @@ class NET_EXPORT URLRequestContext
|
|
|
| bool enable_brotli() const { return enable_brotli_; }
|
|
|
| + void set_name_string(const std::string& name_string){
|
| + name_string_ = name_string;
|
| + }
|
| +
|
| + // MemoryDumpProvider implementation:
|
| + bool OnMemoryDump(const base::trace_event::MemoryDumpArgs& args,
|
| + base::trace_event::ProcessMemoryDump* pmd) override;
|
| +
|
| private:
|
| // ---------------------------------------------------------------------------
|
| // Important: When adding any new members below, consider whether they need to
|
| @@ -269,6 +281,8 @@ class NET_EXPORT URLRequestContext
|
| // Enables Brotli Content-Encoding support.
|
| bool enable_brotli_;
|
|
|
| + std::string name_string_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(URLRequestContext);
|
| };
|
|
|
|
|