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

Side by Side Diff: mojo/common/trace_controller_impl.cc

Issue 1139123006: Fork the mojo shell interfaces used by Mandoline. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixes Created 5 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
OLDNEW
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/common/trace_controller_impl.h" 5 #include "mojo/common/trace_controller_impl.h"
6 6
7 #include "base/trace_event/trace_event.h" 7 #include "base/trace_event/trace_event.h"
8 #include "third_party/mojo/src/mojo/public/cpp/application/application_connectio n.h" 8 #include "mojo/application/public/cpp/application_connection.h"
9 #include "third_party/mojo/src/mojo/public/cpp/application/application_impl.h" 9 #include "mojo/application/public/cpp/application_impl.h"
10 10
11 namespace mojo { 11 namespace mojo {
12 12
13 TraceControllerImpl::TraceControllerImpl( 13 TraceControllerImpl::TraceControllerImpl(
14 InterfaceRequest<tracing::TraceController> request) 14 InterfaceRequest<tracing::TraceController> request)
15 : binding_(this, request.Pass()) { 15 : binding_(this, request.Pass()) {
16 } 16 }
17 17
18 TraceControllerImpl::~TraceControllerImpl() { 18 TraceControllerImpl::~TraceControllerImpl() {
19 } 19 }
(...skipping 20 matching lines...) Expand all
40 void TraceControllerImpl::SendChunk( 40 void TraceControllerImpl::SendChunk(
41 const scoped_refptr<base::RefCountedString>& events_str, 41 const scoped_refptr<base::RefCountedString>& events_str,
42 bool has_more_events) { 42 bool has_more_events) {
43 collector_->DataCollected(mojo::String(events_str->data())); 43 collector_->DataCollected(mojo::String(events_str->data()));
44 if (!has_more_events) { 44 if (!has_more_events) {
45 collector_.reset(); 45 collector_.reset();
46 } 46 }
47 } 47 }
48 48
49 } // namespace mojo 49 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/common/DEPS ('k') | mojo/common/tracing_impl.h » ('j') | mojo/tools/rev_sdk.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698