| 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 "mojo/services/tracing/tracing_app.h" | 5 #include "mojo/services/tracing/tracing_app.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <utility> | 10 #include <utility> |
| 11 | 11 |
| 12 #include "base/bind.h" | 12 #include "base/bind.h" |
| 13 #include "base/logging.h" | 13 #include "base/logging.h" |
| 14 #include "base/message_loop/message_loop.h" | 14 #include "base/message_loop/message_loop.h" |
| 15 #include "mojo/application/public/cpp/application_connection.h" | 15 #include "mojo/shell/public/cpp/application_connection.h" |
| 16 | 16 |
| 17 namespace tracing { | 17 namespace tracing { |
| 18 | 18 |
| 19 TracingApp::TracingApp() : collector_binding_(this), tracing_active_(false) { | 19 TracingApp::TracingApp() : collector_binding_(this), tracing_active_(false) { |
| 20 } | 20 } |
| 21 | 21 |
| 22 TracingApp::~TracingApp() { | 22 TracingApp::~TracingApp() { |
| 23 } | 23 } |
| 24 | 24 |
| 25 bool TracingApp::ConfigureIncomingConnection( | 25 bool TracingApp::ConfigureIncomingConnection( |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 const GetStartupPerformanceTimesCallback& callback) { | 171 const GetStartupPerformanceTimesCallback& callback) { |
| 172 callback.Run(startup_performance_times_.Clone()); | 172 callback.Run(startup_performance_times_.Clone()); |
| 173 } | 173 } |
| 174 | 174 |
| 175 void TracingApp::AllDataCollected() { | 175 void TracingApp::AllDataCollected() { |
| 176 recorder_impls_.clear(); | 176 recorder_impls_.clear(); |
| 177 sink_.reset(); | 177 sink_.reset(); |
| 178 } | 178 } |
| 179 | 179 |
| 180 } // namespace tracing | 180 } // namespace tracing |
| OLD | NEW |