Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(526)

Unified Diff: net/url_request/url_request_context.h

Issue 2414883005: TEMP DO NOT LAND (Closed)
Patch Set: tmp Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/url_request/url_request.cc ('k') | net/url_request/url_request_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
};
« no previous file with comments | « net/url_request/url_request.cc ('k') | net/url_request/url_request_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698