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

Unified Diff: content/browser/histogram_internals_request_job.h

Issue 2658163002: Merge histograms from providers into StatisticsRecorder for display. (Closed)
Patch Set: rebased Created 3 years, 11 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 | « components/metrics/metrics_service.cc ('k') | content/browser/histogram_internals_request_job.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/histogram_internals_request_job.h
diff --git a/content/browser/histogram_internals_request_job.h b/content/browser/histogram_internals_request_job.h
index 63ce622e405a9a80bd4a61523d2ccd64d19aecde..475188d7c3afa5609f50cf39dfc4f4118723bd9c 100644
--- a/content/browser/histogram_internals_request_job.h
+++ b/content/browser/histogram_internals_request_job.h
@@ -8,6 +8,7 @@
#include <string>
#include "base/macros.h"
+#include "base/memory/weak_ptr.h"
#include "net/url_request/url_request_simple_job.h"
namespace content {
@@ -17,17 +18,24 @@ class HistogramInternalsRequestJob : public net::URLRequestSimpleJob {
HistogramInternalsRequestJob(net::URLRequest* request,
net::NetworkDelegate* network_delegate);
+ // net::URLRequestSimpleJob:
+ void Start() override;
int GetData(std::string* mime_type,
std::string* charset,
std::string* data,
const net::CompletionCallback& callback) const override;
private:
- ~HistogramInternalsRequestJob() override {}
+ ~HistogramInternalsRequestJob() override;
+
+ // Starts the real URL request.
+ void StartUrlRequest();
// The string to select histograms which have |path_| as a substring.
std::string path_;
+ base::WeakPtrFactory<HistogramInternalsRequestJob> weak_factory_;
+
DISALLOW_IMPLICIT_CONSTRUCTORS(HistogramInternalsRequestJob);
};
« no previous file with comments | « components/metrics/metrics_service.cc ('k') | content/browser/histogram_internals_request_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698