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

Unified Diff: services/tracing/public/cpp/trace_provider_impl.h

Issue 2208783002: Make Tracing Service not use outgoing InterfaceProvider, update conventions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 4 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 | « services/tracing/public/cpp/provider.cc ('k') | services/tracing/public/cpp/trace_provider_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/tracing/public/cpp/trace_provider_impl.h
diff --git a/services/tracing/public/cpp/trace_provider_impl.h b/services/tracing/public/cpp/trace_provider_impl.h
deleted file mode 100644
index 975781b4a2e52adc17bb9fd4e526ba03d0a79652..0000000000000000000000000000000000000000
--- a/services/tracing/public/cpp/trace_provider_impl.h
+++ /dev/null
@@ -1,51 +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 SERVICES_TRACING_PUBLIC_CPP_TRACE_PROVIDER_IMPL_H_
-#define SERVICES_TRACING_PUBLIC_CPP_TRACE_PROVIDER_IMPL_H_
-
-#include "base/macros.h"
-#include "base/memory/ref_counted_memory.h"
-#include "base/memory/weak_ptr.h"
-#include "mojo/public/cpp/bindings/binding.h"
-#include "mojo/public/cpp/bindings/interface_request.h"
-#include "services/tracing/public/interfaces/tracing.mojom.h"
-
-namespace mojo {
-
-class TraceProviderImpl : public tracing::TraceProvider {
- public:
- TraceProviderImpl();
- ~TraceProviderImpl() override;
-
- void Bind(InterfaceRequest<tracing::TraceProvider> request);
-
- // Enable tracing without waiting for an inbound connection. It will stop if
- // no TraceRecorder is sent within a set time.
- void ForceEnableTracing();
-
- private:
- // tracing::TraceProvider implementation:
- void StartTracing(const String& categories,
- tracing::TraceRecorderPtr recorder) override;
- void StopTracing() override;
-
- void SendChunk(const scoped_refptr<base::RefCountedString>& events_str,
- bool has_more_events);
-
- void DelayedStop();
- // Stop the collection of traces if no external connection asked for them yet.
- void StopIfForced();
-
- Binding<tracing::TraceProvider> binding_;
- bool tracing_forced_;
- tracing::TraceRecorderPtr recorder_;
-
- base::WeakPtrFactory<TraceProviderImpl> weak_factory_;
- DISALLOW_COPY_AND_ASSIGN(TraceProviderImpl);
-};
-
-} // namespace mojo
-
-#endif // SERVICES_TRACING_PUBLIC_CPP_TRACE_PROVIDER_IMPL_H_
« no previous file with comments | « services/tracing/public/cpp/provider.cc ('k') | services/tracing/public/cpp/trace_provider_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698