OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CONTENT_BROWSER_HISTOGRAM_INTERNALS_REQUEST_JOB_H_ |
| 6 #define CONTENT_BROWSER_HISTOGRAM_INTERNALS_REQUEST_JOB_H_ |
| 7 #pragma once |
| 8 |
| 9 #include <string> |
| 10 |
| 11 #include "base/basictypes.h" |
| 12 #include "net/url_request/url_request_simple_job.h" |
| 13 |
| 14 namespace content { |
| 15 |
| 16 class HistogramInternalsRequestJob : public net::URLRequestSimpleJob { |
| 17 public: |
| 18 explicit HistogramInternalsRequestJob(net::URLRequest* request); |
| 19 |
| 20 virtual bool GetData(std::string* mime_type, |
| 21 std::string* charset, |
| 22 std::string* data) const OVERRIDE; |
| 23 |
| 24 protected: |
| 25 virtual ~HistogramInternalsRequestJob() {} |
| 26 |
| 27 private: |
| 28 // The string to select histograms which have |path_| as a substring. |
| 29 std::string path_; |
| 30 |
| 31 DISALLOW_IMPLICIT_CONSTRUCTORS(HistogramInternalsRequestJob); |
| 32 }; |
| 33 |
| 34 } // namespace content |
| 35 |
| 36 #endif // CONTENT_BROWSER_HISTOGRAM_INTERNALS_REQUEST_JOB_H_ |
OLD | NEW |