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

Unified Diff: mojo/common/trace_controller_impl.h

Issue 1284293003: Rename tracing interfaces. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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 | « mojo/common/dart/lib/tracing_helper.dart ('k') | mojo/common/trace_controller_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/common/trace_controller_impl.h
diff --git a/mojo/common/trace_controller_impl.h b/mojo/common/trace_controller_impl.h
deleted file mode 100644
index 482f709947dfccfd027fd6a6767766bdee717ab5..0000000000000000000000000000000000000000
--- a/mojo/common/trace_controller_impl.h
+++ /dev/null
@@ -1,47 +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_COMMON_TRACING_CONTROLLER_IMPL_H_
-#define MOJO_COMMON_TRACING_CONTROLLER_IMPL_H_
-
-#include "base/memory/ref_counted_memory.h"
-#include "mojo/public/cpp/bindings/interface_request.h"
-#include "mojo/public/cpp/bindings/strong_binding.h"
-#include "mojo/services/tracing/public/interfaces/tracing.mojom.h"
-
-namespace mojo {
-
-class TraceControllerImpl : public tracing::TraceController {
- public:
- explicit TraceControllerImpl(
- InterfaceRequest<tracing::TraceController> request);
- ~TraceControllerImpl() override;
-
- // Set to true if base::trace_event::TraceLog is enabled externally to this
- // class. If this is set to true this class will save the collector but not
- // enable tracing when it receives a StartTracing message from the tracing
- // service.
- void set_tracing_already_started(bool tracing_already_started) {
- tracing_already_started_ = tracing_already_started;
- }
-
- private:
- // tracing::TraceController implementation:
- void StartTracing(const String& categories,
- tracing::TraceDataCollectorPtr collector) override;
- void StopTracing() override;
-
- void SendChunk(const scoped_refptr<base::RefCountedString>& events_str,
- bool has_more_events);
-
- bool tracing_already_started_;
- tracing::TraceDataCollectorPtr collector_;
- StrongBinding<tracing::TraceController> binding_;
-
- DISALLOW_COPY_AND_ASSIGN(TraceControllerImpl);
-};
-
-} // namespace mojo
-
-#endif // MOJO_COMMON_TRACING_CONTROLLER_IMPL_H_
« no previous file with comments | « mojo/common/dart/lib/tracing_helper.dart ('k') | mojo/common/trace_controller_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698