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

Side by Side Diff: services/tracing/recorder.cc

Issue 2852183002: Delete the tracing service (Closed)
Patch Set: Created 3 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 unified diff | Download patch
« no previous file with comments | « services/tracing/recorder.h ('k') | services/tracing/service.h » ('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 2015 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 #include "services/tracing/recorder.h"
6
7 namespace tracing {
8
9 Recorder::Recorder(mojom::RecorderRequest request, DataSink* sink)
10 : sink_(sink), binding_(this, std::move(request)) {}
11 Recorder::~Recorder() {}
12
13 void Recorder::TryRead() {
14 binding_.WaitForIncomingMethodCall(MojoDeadline(0));
15 }
16
17 mojo::Handle Recorder::RecorderHandle() const {
18 return binding_.handle();
19 }
20
21 void Recorder::Record(const std::string& json) {
22 sink_->AddChunk(json);
23 }
24
25 } // namespace tracing
OLDNEW
« no previous file with comments | « services/tracing/recorder.h ('k') | services/tracing/service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698