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

Side by Side Diff: services/debugger/trace_collector.h

Issue 1533563004: Remove defunct skydb debugger. (Closed) Base URL: git@github.com:domokit/mojo.git@cl-2b
Patch Set: rebase Created 5 years 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 unified diff | Download patch
« no previous file with comments | « services/debugger/debugger.cc ('k') | services/debugger/trace_collector.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef SERVICES_DEBUGGER_TRACE_COLLECTOR_H_
6 #define SERVICES_DEBUGGER_TRACE_COLLECTOR_H_
7
8 #include <vector>
9
10 #include "base/callback.h"
11 #include "mojo/data_pipe_utils/data_pipe_drainer.h"
12
13 namespace debugger {
14
15 class TraceCollector : public mojo::common::DataPipeDrainer::Client {
16 public:
17 typedef base::Callback<void(std::string)> TraceCallback;
18
19 explicit TraceCollector(mojo::ScopedDataPipeConsumerHandle source);
20 ~TraceCollector() override;
21
22 void GetTrace(TraceCallback callback);
23
24 private:
25 void OnDataAvailable(const void* data, size_t num_bytes) override;
26 void OnDataComplete() override;
27
28 std::string GetTraceAsString();
29
30 mojo::common::DataPipeDrainer drainer_;
31 std::vector<char> trace_;
32 bool is_complete_;
33 TraceCallback callback_;
34 };
35
36 } // namespace debugger
37
38 #endif // SERVICES_DEBUGGER_TRACE_COLLECTOR_H_
OLDNEW
« no previous file with comments | « services/debugger/debugger.cc ('k') | services/debugger/trace_collector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698