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

Unified Diff: net/url_request/url_request_context_storage.h

Issue 2956023003: Add enable_reporting to fix size regression in Cronet. (Closed)
Patch Set: Move build_config header back to top, to fix windows Created 3 years, 6 months 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_context_builder.cc ('k') | net/url_request/url_request_context_storage.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_storage.h
diff --git a/net/url_request/url_request_context_storage.h b/net/url_request/url_request_context_storage.h
index 3f46e471c6d54168ec5e31865a9a11914925abd5..9384bea3f0ffe4ed3dc0dddabca944b9ae69cafb 100644
--- a/net/url_request/url_request_context_storage.h
+++ b/net/url_request/url_request_context_storage.h
@@ -9,7 +9,9 @@
#include "base/macros.h"
#include "base/memory/ref_counted.h"
+#include "build/buildflag.h"
#include "net/base/net_export.h"
+#include "net/net_features.h"
namespace net {
@@ -79,8 +81,11 @@ class NET_EXPORT URLRequestContextStorage {
void set_http_user_agent_settings(
std::unique_ptr<HttpUserAgentSettings> http_user_agent_settings);
void set_sdch_manager(std::unique_ptr<SdchManager> sdch_manager);
+
+#if BUILDFLAG(ENABLE_REPORTING)
void set_reporting_service(
std::unique_ptr<ReportingService> reporting_service);
+#endif // BUILDFLAG(ENABLE_REPORTING)
// Everything else can be access through the URLRequestContext, but this
// cannot. Having an accessor for it makes usage a little cleaner.
@@ -119,7 +124,9 @@ class NET_EXPORT URLRequestContextStorage {
std::unique_ptr<URLRequestJobFactory> job_factory_;
std::unique_ptr<URLRequestThrottlerManager> throttler_manager_;
std::unique_ptr<SdchManager> sdch_manager_;
+#if BUILDFLAG(ENABLE_REPORTING)
std::unique_ptr<ReportingService> reporting_service_;
+#endif // BUILDFLAG(ENABLE_REPORTING)
DISALLOW_COPY_AND_ASSIGN(URLRequestContextStorage);
};
« no previous file with comments | « net/url_request/url_request_context_builder.cc ('k') | net/url_request/url_request_context_storage.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698