Index: mojo/services/tracing/tracing_app.h |
diff --git a/mojo/services/tracing/tracing_app.h b/mojo/services/tracing/tracing_app.h |
index f652c29c96181e5e5b75a20e12f401a30d16f180..23a1f5cef956b252d8ebf4a395a8b636069b60a1 100644 |
--- a/mojo/services/tracing/tracing_app.h |
+++ b/mojo/services/tracing/tracing_app.h |
@@ -20,7 +20,9 @@ class TraceDataSink; |
class TracingApp : public mojo::ApplicationDelegate, |
public mojo::InterfaceFactory<TraceCoordinator>, |
- public TraceCoordinator { |
+ public TraceCoordinator, |
+ public mojo::InterfaceFactory<StartupPerformanceController>, |
+ public StartupPerformanceController { |
public: |
TracingApp(); |
~TracingApp() override; |
@@ -34,17 +36,35 @@ class TracingApp : public mojo::ApplicationDelegate, |
void Create(mojo::ApplicationConnection* connection, |
mojo::InterfaceRequest<TraceCoordinator> request) override; |
+ // mojo::InterfaceFactory<StartupPerformanceController> implementation. |
+ void Create( |
+ mojo::ApplicationConnection* connection, |
+ mojo::InterfaceRequest<StartupPerformanceController> request) override; |
+ |
// tracing::TraceCoordinator implementation. |
void Start(mojo::ScopedDataPipeProducerHandle stream, |
const mojo::String& categories) override; |
void StopAndFlush() override; |
+ // tracing::StartupPerformanceController implementation. |
+ void SetShellProcessCreationTime(int64 time) override; |
+ void SetBrowserMessageLoopStartTime(int64 time) override; |
+ void SetBrowserWindowDisplayTime(int64 time) override; |
+ void SetBrowserOpenTabsTime(int64 time) override; |
+ void SetFirstWebContentsMainFrameLoadTime(int64 time) override; |
+ void SetFirstVisuallyNonEmptyLayoutTime(int64 time) override; |
+ void GetStartupPerformanceTimes( |
+ const GetStartupPerformanceTimesCallback& callback) override; |
+ |
void AllDataCollected(); |
scoped_ptr<TraceDataSink> sink_; |
ScopedVector<CollectorImpl> collector_impls_; |
mojo::WeakInterfacePtrSet<TraceController> controller_ptrs_; |
mojo::WeakBindingSet<TraceCoordinator> coordinator_bindings_; |
+ mojo::WeakBindingSet<StartupPerformanceController> |
+ startup_performance_controller_bindings_; |
+ StartupPerformanceTimes startup_performance_times_; |
DISALLOW_COPY_AND_ASSIGN(TracingApp); |
}; |