| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #include "services/tracing/tracing_app.h" | 5 #include "services/tracing/tracing_app.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
| 10 #include "mojo/public/cpp/system/wait.h" |
| 10 | 11 |
| 11 namespace tracing { | 12 namespace tracing { |
| 12 | 13 |
| 13 TracingApp::TracingApp() : collector_binding_(this), tracing_active_(false) {} | 14 TracingApp::TracingApp() : collector_binding_(this), tracing_active_(false) {} |
| 14 | 15 |
| 15 TracingApp::~TracingApp() {} | 16 TracingApp::~TracingApp() {} |
| 16 | 17 |
| 17 bool TracingApp::ConfigureIncomingConnection( | 18 bool TracingApp::ConfigureIncomingConnection( |
| 18 mojo::ApplicationConnection* connection) { | 19 mojo::ApplicationConnection* connection) { |
| 19 connection->AddService<TraceCollector>(this); | 20 connection->AddService<TraceCollector>(this); |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 } | 125 } |
| 125 AllDataCollected(); | 126 AllDataCollected(); |
| 126 } | 127 } |
| 127 | 128 |
| 128 void TracingApp::AllDataCollected() { | 129 void TracingApp::AllDataCollected() { |
| 129 recorder_impls_.clear(); | 130 recorder_impls_.clear(); |
| 130 sink_.reset(); | 131 sink_.reset(); |
| 131 } | 132 } |
| 132 | 133 |
| 133 } // namespace tracing | 134 } // namespace tracing |
| OLD | NEW |