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

Side by Side Diff: content/browser/histogram_internals_request_job.cc

Issue 10703037: Move StatisticsRecorder out of histogram.cc/h for further refactoring. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW
« no previous file with comments | « content/browser/browser_main_runner.cc ('k') | content/common/child_histogram_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698