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

Side by Side Diff: mojo/common/tracing_impl.h

Issue 1278673002: Add stats collection for telemetry startup.warm.blank_page test. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update comment. Created 5 years, 4 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/trace_controller_impl.h ('k') | mojo/runner/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 MOJO_COMMON_TRACING_IMPL_H_ 5 #ifndef MOJO_COMMON_TRACING_IMPL_H_
6 #define MOJO_COMMON_TRACING_IMPL_H_ 6 #define MOJO_COMMON_TRACING_IMPL_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 "mojo/application/public/cpp/interface_factory.h" 10 #include "mojo/application/public/cpp/interface_factory.h"
11 #include "mojo/services/tracing/tracing.mojom.h" 11 #include "mojo/services/tracing/public/interfaces/tracing.mojom.h"
12 12
13 namespace mojo { 13 namespace mojo {
14 14
15 class ApplicationImpl; 15 class ApplicationImpl;
16 16
17 class TracingImpl : public InterfaceFactory<tracing::TraceController> { 17 class TracingImpl : public InterfaceFactory<tracing::TraceController> {
18 public: 18 public:
19 TracingImpl(); 19 TracingImpl();
20 ~TracingImpl() override; 20 ~TracingImpl() override;
21 21
22 // This connects to the tracing service and registers ourselves to provide 22 // This connects to the tracing service and registers ourselves to provide
23 // tracing data on demand. 23 // tracing data on demand.
24 void Initialize(ApplicationImpl* app); 24 void Initialize(ApplicationImpl* app);
25 25
26 private: 26 private:
27 // InterfaceFactory<tracing::TraceController> implementation. 27 // InterfaceFactory<tracing::TraceController> implementation.
28 void Create(ApplicationConnection* connection, 28 void Create(ApplicationConnection* connection,
29 InterfaceRequest<tracing::TraceController> request) override; 29 InterfaceRequest<tracing::TraceController> request) override;
30 30
31 scoped_ptr<ApplicationConnection> connection_; 31 scoped_ptr<ApplicationConnection> connection_;
32 32
33 DISALLOW_COPY_AND_ASSIGN(TracingImpl); 33 DISALLOW_COPY_AND_ASSIGN(TracingImpl);
34 }; 34 };
35 35
36 } // namespace mojo 36 } // namespace mojo
37 37
38 #endif // MOJO_COMMON_TRACING_IMPL_H_ 38 #endif // MOJO_COMMON_TRACING_IMPL_H_
OLDNEW
« no previous file with comments | « mojo/common/trace_controller_impl.h ('k') | mojo/runner/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698