| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "components/html_viewer/stats_collection_controller.h" | 5 #include "components/html_viewer/stats_collection_controller.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/metrics/histogram.h" | 9 #include "base/metrics/histogram.h" |
| 10 #include "base/metrics/statistics_recorder.h" | 10 #include "base/metrics/statistics_recorder.h" |
| 11 #include "base/time/time.h" | 11 #include "base/time/time.h" |
| 12 #include "components/startup_metric_utils/startup_metric_utils.h" | 12 #include "components/startup_metric_utils/browser/startup_metric_utils.h" |
| 13 #include "gin/handle.h" | 13 #include "gin/handle.h" |
| 14 #include "gin/object_template_builder.h" | 14 #include "gin/object_template_builder.h" |
| 15 #include "mojo/application/public/cpp/application_impl.h" | 15 #include "mojo/application/public/cpp/application_impl.h" |
| 16 #include "mojo/services/tracing/public/cpp/switches.h" | 16 #include "mojo/services/tracing/public/cpp/switches.h" |
| 17 #include "third_party/WebKit/public/web/WebKit.h" | 17 #include "third_party/WebKit/public/web/WebKit.h" |
| 18 #include "third_party/WebKit/public/web/WebLocalFrame.h" | 18 #include "third_party/WebKit/public/web/WebLocalFrame.h" |
| 19 | 19 |
| 20 namespace html_viewer { | 20 namespace html_viewer { |
| 21 | 21 |
| 22 namespace { | 22 namespace { |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 histogram->WriteJSON(&histogram_json); | 153 histogram->WriteJSON(&histogram_json); |
| 154 return histogram_json; | 154 return histogram_json; |
| 155 } | 155 } |
| 156 | 156 |
| 157 std::string StatsCollectionController::GetBrowserHistogram( | 157 std::string StatsCollectionController::GetBrowserHistogram( |
| 158 const std::string& histogram_name) { | 158 const std::string& histogram_name) { |
| 159 return GetHistogram(histogram_name); | 159 return GetHistogram(histogram_name); |
| 160 } | 160 } |
| 161 | 161 |
| 162 } // namespace html_viewer | 162 } // namespace html_viewer |
| OLD | NEW |