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

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

Issue 2852183002: Delete the tracing service (Closed)
Patch Set: Created 3 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 | « services/tracing/public/cpp/BUILD.gn ('k') | services/tracing/public/cpp/provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/tracing/public/cpp/provider.h
diff --git a/services/tracing/public/cpp/provider.h b/services/tracing/public/cpp/provider.h
deleted file mode 100644
index 761efec36efcfaf5cfbbf07aa724c116b3326a0f..0000000000000000000000000000000000000000
--- a/services/tracing/public/cpp/provider.h
+++ /dev/null
@@ -1,62 +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_PROVIDER_H_
-#define SERVICES_TRACING_PUBLIC_CPP_PROVIDER_H_
-
-#include "base/command_line.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 service_manager {
-class Connector;
-}
-
-namespace tracing {
-
-class Provider : public mojom::Provider {
- public:
- Provider();
- ~Provider() override;
-
- void InitializeWithFactory(mojom::FactoryPtr* factory);
- void Initialize(service_manager::Connector* connector,
- const std::string& url);
-
- void Bind(mojom::ProviderRequest request);
-
- private:
- void InitializeWithFactoryInternal(mojom::FactoryPtr* factory);
-
- // mojom::Provider implementation:
- void StartTracing(const std::string& categories,
- mojom::RecorderPtr 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();
-
- // Enable tracing without waiting for an inbound connection. It will stop if
- // no TraceRecorder is sent within a set time.
- void ForceEnableTracing();
-
- mojo::Binding<mojom::Provider> binding_;
- bool tracing_forced_;
- mojom::RecorderPtr recorder_;
-
- base::WeakPtrFactory<Provider> weak_factory_;
- DISALLOW_COPY_AND_ASSIGN(Provider);
-};
-
-} // namespace tracing
-
-#endif // SERVICES_TRACING_PUBLIC_CPP_PROVIDER_H_
« no previous file with comments | « services/tracing/public/cpp/BUILD.gn ('k') | services/tracing/public/cpp/provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698