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

Side by Side Diff: services/tracing/tracing_app.h

Issue 1237653005: Rename WeakInterfacePtrSet to InterfacePtrSet. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Responding to code review take 2. Created 5 years, 5 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 | « mojo/common/weak_interface_ptr_set_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef SERVICES_TRACING_TRACING_APP_H_ 5 #ifndef SERVICES_TRACING_TRACING_APP_H_
6 #define SERVICES_TRACING_TRACING_APP_H_ 6 #define SERVICES_TRACING_TRACING_APP_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/memory/scoped_vector.h" 10 #include "base/memory/scoped_vector.h"
11 #include "mojo/common/interface_ptr_set.h"
11 #include "mojo/common/weak_binding_set.h" 12 #include "mojo/common/weak_binding_set.h"
12 #include "mojo/common/weak_interface_ptr_set.h"
13 #include "mojo/public/cpp/application/application_delegate.h" 13 #include "mojo/public/cpp/application/application_delegate.h"
14 #include "mojo/public/cpp/application/application_impl.h" 14 #include "mojo/public/cpp/application/application_impl.h"
15 #include "mojo/public/cpp/bindings/strong_binding.h" 15 #include "mojo/public/cpp/bindings/strong_binding.h"
16 #include "mojo/services/tracing/public/interfaces/tracing.mojom.h" 16 #include "mojo/services/tracing/public/interfaces/tracing.mojom.h"
17 #include "services/tracing/collector_impl.h" 17 #include "services/tracing/collector_impl.h"
18 #include "services/tracing/trace_data_sink.h" 18 #include "services/tracing/trace_data_sink.h"
19 19
20 namespace tracing { 20 namespace tracing {
21 21
22 class TracingApp : public mojo::ApplicationDelegate, 22 class TracingApp : public mojo::ApplicationDelegate,
(...skipping 14 matching lines...) Expand all
37 37
38 // tracing::TraceCoordinator implementation. 38 // tracing::TraceCoordinator implementation.
39 void Start(mojo::ScopedDataPipeProducerHandle stream, 39 void Start(mojo::ScopedDataPipeProducerHandle stream,
40 const mojo::String& categories) override; 40 const mojo::String& categories) override;
41 void StopAndFlush() override; 41 void StopAndFlush() override;
42 42
43 void AllDataCollected(); 43 void AllDataCollected();
44 44
45 scoped_ptr<TraceDataSink> sink_; 45 scoped_ptr<TraceDataSink> sink_;
46 ScopedVector<CollectorImpl> collector_impls_; 46 ScopedVector<CollectorImpl> collector_impls_;
47 mojo::WeakInterfacePtrSet<TraceController> controller_ptrs_; 47 mojo::InterfacePtrSet<TraceController> controller_ptrs_;
48 mojo::Binding<TraceCoordinator> coordinator_binding_; 48 mojo::Binding<TraceCoordinator> coordinator_binding_;
49 bool tracing_active_; 49 bool tracing_active_;
50 mojo::String tracing_categories_; 50 mojo::String tracing_categories_;
51 51
52 DISALLOW_COPY_AND_ASSIGN(TracingApp); 52 DISALLOW_COPY_AND_ASSIGN(TracingApp);
53 }; 53 };
54 54
55 } // namespace tracing 55 } // namespace tracing
56 56
57 #endif // SERVICES_TRACING_TRACING_APP_H_ 57 #endif // SERVICES_TRACING_TRACING_APP_H_
OLDNEW
« no previous file with comments | « mojo/common/weak_interface_ptr_set_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698