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

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

Issue 2014043002: Make TracingImpl take a Shell* and args, instead of an ApplicationImpl*. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 6 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 | « examples/trace_me/trace_me_app.cc ('k') | mojo/common/tracing_impl.cc » ('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 <string>
9 #include <vector>
10
8 #include "base/macros.h" 11 #include "base/macros.h"
9 #include "mojo/common/trace_provider_impl.h" 12 #include "mojo/common/trace_provider_impl.h"
10 13
11 namespace mojo { 14 namespace mojo {
12 15
13 class ApplicationImpl; 16 class Shell;
14 17
15 class TracingImpl { 18 class TracingImpl {
16 public: 19 public:
17 TracingImpl(); 20 TracingImpl();
18 ~TracingImpl(); 21 ~TracingImpl();
19 22
20 // This connects to the tracing service and registers ourselves to provide 23 // This connects to the tracing service and registers ourselves to provide
21 // tracing data on demand. 24 // tracing data on demand. |shell| will not be stored (so it need only be
22 void Initialize(ApplicationImpl* app); 25 // valid for this call). |args| may be null, but if not should typically point
26 // to the applications "command line".
27 void Initialize(Shell* shell, const std::vector<std::string>* args);
23 28
24 private: 29 private:
25 TraceProviderImpl provider_impl_; 30 TraceProviderImpl provider_impl_;
26 31
27 DISALLOW_COPY_AND_ASSIGN(TracingImpl); 32 DISALLOW_COPY_AND_ASSIGN(TracingImpl);
28 }; 33 };
29 34
30 } // namespace mojo 35 } // namespace mojo
31 36
32 #endif // MOJO_COMMON_TRACING_IMPL_H_ 37 #endif // MOJO_COMMON_TRACING_IMPL_H_
OLDNEW
« no previous file with comments | « examples/trace_me/trace_me_app.cc ('k') | mojo/common/tracing_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698