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

Unified Diff: sky/tools/debugger/prompt/trace_collector.h

Issue 883983004: Rename SkyDebugger to KioskWM and move to /services (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Rename to KioskWM per discussion with jamesr Created 5 years, 11 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
Index: sky/tools/debugger/prompt/trace_collector.h
diff --git a/sky/tools/debugger/prompt/trace_collector.h b/sky/tools/debugger/prompt/trace_collector.h
deleted file mode 100644
index 773a4021442c665fcc8b266be9c7946d03cb0a17..0000000000000000000000000000000000000000
--- a/sky/tools/debugger/prompt/trace_collector.h
+++ /dev/null
@@ -1,40 +0,0 @@
-// Copyright 2014 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 SKY_TOOLS_DEBUGGER_PROMPT_TRACE_COLLECTOR_H_
-#define SKY_TOOLS_DEBUGGER_PROMPT_TRACE_COLLECTOR_H_
-
-#include <vector>
-
-#include "base/callback.h"
-#include "mojo/common/data_pipe_drainer.h"
-
-namespace sky {
-namespace debugger {
-
-class TraceCollector : public mojo::common::DataPipeDrainer::Client {
- public:
- typedef base::Callback<void(std::string)> TraceCallback;
-
- explicit TraceCollector(mojo::ScopedDataPipeConsumerHandle source);
- ~TraceCollector();
-
- void GetTrace(TraceCallback callback);
-
- private:
- void OnDataAvailable(const void* data, size_t num_bytes) override;
- void OnDataComplete() override;
-
- std::string GetTraceAsString();
-
- mojo::common::DataPipeDrainer drainer_;
- std::vector<char> trace_;
- bool is_complete_;
- TraceCallback callback_;
-};
-
-} // namespace debugger
-} // namespace sky
-
-#endif // SKY_TOOLS_DEBUGGER_PROMPT_TRACE_COLLECTOR_H_

Powered by Google App Engine
This is Rietveld 408576698