| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef SKY_TOOLS_DEBUGGER_PROMPT_TRACE_COLLECTOR_H_ | 5 #ifndef SKY_TOOLS_DEBUGGER_TRACE_COLLECTOR_H_ |
| 6 #define SKY_TOOLS_DEBUGGER_PROMPT_TRACE_COLLECTOR_H_ | 6 #define SKY_TOOLS_DEBUGGER_TRACE_COLLECTOR_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| 11 #include "mojo/common/data_pipe_drainer.h" | 11 #include "mojo/common/data_pipe_drainer.h" |
| 12 | 12 |
| 13 namespace sky { | 13 namespace sky { |
| 14 namespace debugger { | 14 namespace debugger { |
| 15 | 15 |
| 16 class TraceCollector : public mojo::common::DataPipeDrainer::Client { | 16 class TraceCollector : public mojo::common::DataPipeDrainer::Client { |
| (...skipping 13 matching lines...) Expand all Loading... |
| 30 | 30 |
| 31 mojo::common::DataPipeDrainer drainer_; | 31 mojo::common::DataPipeDrainer drainer_; |
| 32 std::vector<char> trace_; | 32 std::vector<char> trace_; |
| 33 bool is_complete_; | 33 bool is_complete_; |
| 34 TraceCallback callback_; | 34 TraceCallback callback_; |
| 35 }; | 35 }; |
| 36 | 36 |
| 37 } // namespace debugger | 37 } // namespace debugger |
| 38 } // namespace sky | 38 } // namespace sky |
| 39 | 39 |
| 40 #endif // SKY_TOOLS_DEBUGGER_PROMPT_TRACE_COLLECTOR_H_ | 40 #endif // SKY_TOOLS_DEBUGGER_TRACE_COLLECTOR_H_ |
| OLD | NEW |