| 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 #ifndef COMPONENTS_STARTUP_METRIC_UTILS_BROWSER_STARTUP_METRIC_HOST_IMPL_H_ | 5 #ifndef COMPONENTS_STARTUP_METRIC_UTILS_BROWSER_STARTUP_METRIC_HOST_IMPL_H_ |
| 6 #define COMPONENTS_STARTUP_METRIC_UTILS_BROWSER_STARTUP_METRIC_HOST_IMPL_H_ | 6 #define COMPONENTS_STARTUP_METRIC_UTILS_BROWSER_STARTUP_METRIC_HOST_IMPL_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "base/time/time.h" | 11 #include "base/time/time.h" |
| 12 #include "components/startup_metric_utils/common/startup_metric.mojom.h" | 12 #include "components/startup_metric_utils/common/startup_metric.mojom.h" |
| 13 #include "mojo/public/cpp/bindings/strong_binding.h" | |
| 14 | 13 |
| 15 namespace startup_metric_utils { | 14 namespace startup_metric_utils { |
| 16 | 15 |
| 17 class StartupMetricHostImpl : public mojom::StartupMetricHost { | 16 class StartupMetricHostImpl : public mojom::StartupMetricHost { |
| 18 public: | 17 public: |
| 18 StartupMetricHostImpl(); |
| 19 ~StartupMetricHostImpl() override; |
| 20 |
| 19 static void Create(mojom::StartupMetricHostRequest request); | 21 static void Create(mojom::StartupMetricHostRequest request); |
| 20 | 22 |
| 21 private: | 23 private: |
| 22 explicit StartupMetricHostImpl(mojom::StartupMetricHostRequest request); | |
| 23 ~StartupMetricHostImpl() override; | |
| 24 | |
| 25 void RecordRendererMainEntryTime( | 24 void RecordRendererMainEntryTime( |
| 26 base::TimeTicks renderer_main_entry_time) override; | 25 base::TimeTicks renderer_main_entry_time) override; |
| 27 | 26 |
| 28 mojo::StrongBinding<mojom::StartupMetricHost> binding_; | |
| 29 | |
| 30 DISALLOW_COPY_AND_ASSIGN(StartupMetricHostImpl); | 27 DISALLOW_COPY_AND_ASSIGN(StartupMetricHostImpl); |
| 31 }; | 28 }; |
| 32 | 29 |
| 33 } // namespace startup_metric_utils | 30 } // namespace startup_metric_utils |
| 34 | 31 |
| 35 #endif // COMPONENTS_STARTUP_METRIC_UTILS_BROWSER_STARTUP_METRIC_HOST_IMPL_H_ | 32 #endif // COMPONENTS_STARTUP_METRIC_UTILS_BROWSER_STARTUP_METRIC_HOST_IMPL_H_ |
| OLD | NEW |