OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "content/browser/histogram_internals_request_job.h" | 5 #include "content/browser/histogram_internals_request_job.h" |
6 | 6 |
7 #include "base/metrics/histogram.h" | 7 #include "base/metrics/histogram.h" |
| 8 #include "base/metrics/statistics_recorder.h" |
8 #include "content/browser/histogram_synchronizer.h" | 9 #include "content/browser/histogram_synchronizer.h" |
9 #include "googleurl/src/gurl.h" | 10 #include "googleurl/src/gurl.h" |
10 #include "net/base/escape.h" | 11 #include "net/base/escape.h" |
11 #include "net/url_request/url_request.h" | 12 #include "net/url_request/url_request.h" |
12 | 13 |
13 namespace content { | 14 namespace content { |
14 | 15 |
15 HistogramInternalsRequestJob::HistogramInternalsRequestJob( | 16 HistogramInternalsRequestJob::HistogramInternalsRequestJob( |
16 net::URLRequest* request) : net::URLRequestSimpleJob(request) { | 17 net::URLRequest* request) : net::URLRequestSimpleJob(request) { |
17 const std::string& spec = request->url().possibly_invalid_spec(); | 18 const std::string& spec = request->url().possibly_invalid_spec(); |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 std::string* data) const { | 64 std::string* data) const { |
64 mime_type->assign("text/html"); | 65 mime_type->assign("text/html"); |
65 charset->assign("UTF8"); | 66 charset->assign("UTF8"); |
66 | 67 |
67 data->clear(); | 68 data->clear(); |
68 AboutHistogram(data, path_); | 69 AboutHistogram(data, path_); |
69 return true; | 70 return true; |
70 } | 71 } |
71 | 72 |
72 } // namespace content | 73 } // namespace content |
OLD | NEW |