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

Unified Diff: mojo/services/tracing/tracing_app.h

Issue 1878893002: Move //mojo/services tracing & catalog to //services (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@63move
Patch Set: . Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/services/tracing/trace_recorder_impl.cc ('k') | mojo/services/tracing/tracing_app.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/tracing/tracing_app.h
diff --git a/mojo/services/tracing/tracing_app.h b/mojo/services/tracing/tracing_app.h
deleted file mode 100644
index 740b31ff31dc2d314631cbb9c09cf15c6a943b5f..0000000000000000000000000000000000000000
--- a/mojo/services/tracing/tracing_app.h
+++ /dev/null
@@ -1,81 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef MOJO_SERVICES_TRACING_TRACING_APP_H_
-#define MOJO_SERVICES_TRACING_TRACING_APP_H_
-
-#include <stdint.h>
-
-#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
-#include "base/memory/scoped_vector.h"
-#include "mojo/public/cpp/bindings/binding_set.h"
-#include "mojo/public/cpp/bindings/interface_ptr_set.h"
-#include "mojo/public/cpp/bindings/strong_binding.h"
-#include "mojo/services/tracing/public/interfaces/tracing.mojom.h"
-#include "mojo/services/tracing/trace_data_sink.h"
-#include "mojo/services/tracing/trace_recorder_impl.h"
-#include "services/shell/public/cpp/interface_factory.h"
-#include "services/shell/public/cpp/shell_client.h"
-
-namespace tracing {
-
-class TracingApp
- : public mojo::ShellClient,
- public mojo::InterfaceFactory<TraceCollector>,
- public TraceCollector,
- public mojo::InterfaceFactory<StartupPerformanceDataCollector>,
- public StartupPerformanceDataCollector {
- public:
- TracingApp();
- ~TracingApp() override;
-
- private:
- // mojo::ShellClient implementation.
- bool AcceptConnection(mojo::Connection* connection) override;
- bool ShellConnectionLost() override;
-
- // mojo::InterfaceFactory<TraceCollector> implementation.
- void Create(mojo::Connection* connection,
- mojo::InterfaceRequest<TraceCollector> request) override;
-
- // mojo::InterfaceFactory<StartupPerformanceDataCollector> implementation.
- void Create(
- mojo::Connection* connection,
- mojo::InterfaceRequest<StartupPerformanceDataCollector> request) override;
-
- // tracing::TraceCollector implementation.
- void Start(mojo::ScopedDataPipeProducerHandle stream,
- const mojo::String& categories) override;
- void StopAndFlush() override;
-
- // StartupPerformanceDataCollector implementation.
- void SetShellProcessCreationTime(int64_t time) override;
- void SetShellMainEntryPointTime(int64_t time) override;
- void SetBrowserMessageLoopStartTicks(int64_t ticks) override;
- void SetBrowserWindowDisplayTicks(int64_t ticks) override;
- void SetBrowserOpenTabsTimeDelta(int64_t delta) override;
- void SetFirstWebContentsMainFrameLoadTicks(int64_t ticks) override;
- void SetFirstVisuallyNonEmptyLayoutTicks(int64_t ticks) override;
- void GetStartupPerformanceTimes(
- const GetStartupPerformanceTimesCallback& callback) override;
-
- void AllDataCollected();
-
- scoped_ptr<TraceDataSink> sink_;
- ScopedVector<TraceRecorderImpl> recorder_impls_;
- mojo::InterfacePtrSet<TraceProvider> provider_ptrs_;
- mojo::Binding<TraceCollector> collector_binding_;
- mojo::BindingSet<StartupPerformanceDataCollector>
- startup_performance_data_collector_bindings_;
- StartupPerformanceTimes startup_performance_times_;
- bool tracing_active_;
- mojo::String tracing_categories_;
-
- DISALLOW_COPY_AND_ASSIGN(TracingApp);
-};
-
-} // namespace tracing
-
-#endif // MOJO_SERVICES_TRACING_TRACING_APP_H_
« no previous file with comments | « mojo/services/tracing/trace_recorder_impl.cc ('k') | mojo/services/tracing/tracing_app.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698