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

Side by Side Diff: components/startup_metric_utils/browser/startup_metric_host_impl.h

Issue 2851173004: Eliminate bind callback that doesn't take a BindSourceInfo parameter. (Closed)
Patch Set: . Created 3 years, 7 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
OLDNEW
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 13
14 namespace service_manager {
15 struct BindSourceInfo;
16 }
17
14 namespace startup_metric_utils { 18 namespace startup_metric_utils {
15 19
16 class StartupMetricHostImpl : public mojom::StartupMetricHost { 20 class StartupMetricHostImpl : public mojom::StartupMetricHost {
17 public: 21 public:
18 StartupMetricHostImpl(); 22 StartupMetricHostImpl();
19 ~StartupMetricHostImpl() override; 23 ~StartupMetricHostImpl() override;
20 24
21 static void Create(mojom::StartupMetricHostRequest request); 25 static void Create(const service_manager::BindSourceInfo& source_info,
26 mojom::StartupMetricHostRequest request);
22 27
23 private: 28 private:
24 void RecordRendererMainEntryTime( 29 void RecordRendererMainEntryTime(
25 base::TimeTicks renderer_main_entry_time) override; 30 base::TimeTicks renderer_main_entry_time) override;
26 31
27 DISALLOW_COPY_AND_ASSIGN(StartupMetricHostImpl); 32 DISALLOW_COPY_AND_ASSIGN(StartupMetricHostImpl);
28 }; 33 };
29 34
30 } // namespace startup_metric_utils 35 } // namespace startup_metric_utils
31 36
32 #endif // COMPONENTS_STARTUP_METRIC_UTILS_BROWSER_STARTUP_METRIC_HOST_IMPL_H_ 37 #endif // COMPONENTS_STARTUP_METRIC_UTILS_BROWSER_STARTUP_METRIC_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698