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

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

Issue 1151573010: Pull Sky debugger up to services/debugger. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 7 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 | « sky/tools/debugger/debugger.cc ('k') | sky/tools/debugger/trace_collector.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/tools/debugger/trace_collector.h
diff --git a/sky/tools/debugger/trace_collector.h b/sky/tools/debugger/trace_collector.h
deleted file mode 100644
index 8c6c322f6e8ee99c4f65e826755dabcca4dc09e8..0000000000000000000000000000000000000000
--- a/sky/tools/debugger/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_TRACE_COLLECTOR_H_
-#define SKY_TOOLS_DEBUGGER_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() override;
-
- 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_TRACE_COLLECTOR_H_
« no previous file with comments | « sky/tools/debugger/debugger.cc ('k') | sky/tools/debugger/trace_collector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698