| 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 MOJO_SERVICES_TRACING_TRACING_APP_H_ | 5 #ifndef MOJO_SERVICES_TRACING_TRACING_APP_H_ |
| 6 #define MOJO_SERVICES_TRACING_TRACING_APP_H_ | 6 #define MOJO_SERVICES_TRACING_TRACING_APP_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/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 12 #include "base/memory/scoped_vector.h" | 12 #include "base/memory/scoped_vector.h" |
| 13 #include "mojo/public/cpp/bindings/binding_set.h" |
| 14 #include "mojo/public/cpp/bindings/interface_ptr_set.h" |
| 13 #include "mojo/public/cpp/bindings/strong_binding.h" | 15 #include "mojo/public/cpp/bindings/strong_binding.h" |
| 14 #include "mojo/public/cpp/bindings/weak_binding_set.h" | |
| 15 #include "mojo/public/cpp/bindings/weak_interface_ptr_set.h" | |
| 16 #include "mojo/services/tracing/public/interfaces/tracing.mojom.h" | 16 #include "mojo/services/tracing/public/interfaces/tracing.mojom.h" |
| 17 #include "mojo/services/tracing/trace_data_sink.h" | 17 #include "mojo/services/tracing/trace_data_sink.h" |
| 18 #include "mojo/services/tracing/trace_recorder_impl.h" | 18 #include "mojo/services/tracing/trace_recorder_impl.h" |
| 19 #include "mojo/shell/public/cpp/interface_factory.h" | 19 #include "mojo/shell/public/cpp/interface_factory.h" |
| 20 #include "mojo/shell/public/cpp/shell_client.h" | 20 #include "mojo/shell/public/cpp/shell_client.h" |
| 21 | 21 |
| 22 namespace tracing { | 22 namespace tracing { |
| 23 | 23 |
| 24 class TracingApp | 24 class TracingApp |
| 25 : public mojo::ShellClient, | 25 : public mojo::ShellClient, |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 void SetBrowserOpenTabsTimeDelta(int64_t delta) override; | 57 void SetBrowserOpenTabsTimeDelta(int64_t delta) override; |
| 58 void SetFirstWebContentsMainFrameLoadTicks(int64_t ticks) override; | 58 void SetFirstWebContentsMainFrameLoadTicks(int64_t ticks) override; |
| 59 void SetFirstVisuallyNonEmptyLayoutTicks(int64_t ticks) override; | 59 void SetFirstVisuallyNonEmptyLayoutTicks(int64_t ticks) override; |
| 60 void GetStartupPerformanceTimes( | 60 void GetStartupPerformanceTimes( |
| 61 const GetStartupPerformanceTimesCallback& callback) override; | 61 const GetStartupPerformanceTimesCallback& callback) override; |
| 62 | 62 |
| 63 void AllDataCollected(); | 63 void AllDataCollected(); |
| 64 | 64 |
| 65 scoped_ptr<TraceDataSink> sink_; | 65 scoped_ptr<TraceDataSink> sink_; |
| 66 ScopedVector<TraceRecorderImpl> recorder_impls_; | 66 ScopedVector<TraceRecorderImpl> recorder_impls_; |
| 67 mojo::WeakInterfacePtrSet<TraceProvider> provider_ptrs_; | 67 mojo::InterfacePtrSet<TraceProvider> provider_ptrs_; |
| 68 mojo::Binding<TraceCollector> collector_binding_; | 68 mojo::Binding<TraceCollector> collector_binding_; |
| 69 mojo::WeakBindingSet<StartupPerformanceDataCollector> | 69 mojo::BindingSet<StartupPerformanceDataCollector> |
| 70 startup_performance_data_collector_bindings_; | 70 startup_performance_data_collector_bindings_; |
| 71 StartupPerformanceTimes startup_performance_times_; | 71 StartupPerformanceTimes startup_performance_times_; |
| 72 bool tracing_active_; | 72 bool tracing_active_; |
| 73 mojo::String tracing_categories_; | 73 mojo::String tracing_categories_; |
| 74 | 74 |
| 75 DISALLOW_COPY_AND_ASSIGN(TracingApp); | 75 DISALLOW_COPY_AND_ASSIGN(TracingApp); |
| 76 }; | 76 }; |
| 77 | 77 |
| 78 } // namespace tracing | 78 } // namespace tracing |
| 79 | 79 |
| 80 #endif // MOJO_SERVICES_TRACING_TRACING_APP_H_ | 80 #endif // MOJO_SERVICES_TRACING_TRACING_APP_H_ |
| OLD | NEW |