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

Side by Side Diff: services/dart/dart_tracing.h

Issue 1682113003: Mojo C++ bindings: Generate InterfaceHandle<> instead of InterfacePtr<>. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: rebase ontop of master, address trung's comments Created 4 years, 10 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 #ifndef SERVICES_DART_DART_TRACING_H_ 5 #ifndef SERVICES_DART_DART_TRACING_H_
6 #define SERVICES_DART_DART_TRACING_H_ 6 #define SERVICES_DART_DART_TRACING_H_
7 7
8 #include "base/trace_event/trace_event.h" 8 #include "base/trace_event/trace_event.h"
9 #include "mojo/common/tracing_impl.h" 9 #include "mojo/common/tracing_impl.h"
10 #include "mojo/public/cpp/bindings/interface_request.h" 10 #include "mojo/public/cpp/bindings/interface_request.h"
(...skipping 10 matching lines...) Expand all
21 21
22 class DartTraceProvider : public tracing::TraceProvider { 22 class DartTraceProvider : public tracing::TraceProvider {
23 public: 23 public:
24 DartTraceProvider(); 24 DartTraceProvider();
25 ~DartTraceProvider() override; 25 ~DartTraceProvider() override;
26 26
27 void Bind(mojo::InterfaceRequest<tracing::TraceProvider> request); 27 void Bind(mojo::InterfaceRequest<tracing::TraceProvider> request);
28 28
29 private: 29 private:
30 // tracing::TraceProvider implementation: 30 // tracing::TraceProvider implementation:
31 void StartTracing(const mojo::String& categories, 31 void StartTracing(
32 tracing::TraceRecorderPtr recorder) override; 32 const mojo::String& categories,
33 mojo::InterfaceHandle<tracing::TraceRecorder> recorder) override;
33 void StopTracing() override; 34 void StopTracing() override;
34 35
35 void SplitAndRecord(char* data, size_t length); 36 void SplitAndRecord(char* data, size_t length);
36 37
37 mojo::Binding<tracing::TraceProvider> binding_; 38 mojo::Binding<tracing::TraceProvider> binding_;
38 tracing::TraceRecorderPtr recorder_; 39 tracing::TraceRecorderPtr recorder_;
39 40
40 DISALLOW_COPY_AND_ASSIGN(DartTraceProvider); 41 DISALLOW_COPY_AND_ASSIGN(DartTraceProvider);
41 }; 42 };
42 43
(...skipping 13 matching lines...) Expand all
56 mojo::InterfaceRequest<tracing::TraceProvider> request) override; 57 mojo::InterfaceRequest<tracing::TraceProvider> request) override;
57 private: 58 private:
58 DartTraceProvider provider_impl_; 59 DartTraceProvider provider_impl_;
59 60
60 DISALLOW_COPY_AND_ASSIGN(DartTracingImpl); 61 DISALLOW_COPY_AND_ASSIGN(DartTracingImpl);
61 }; 62 };
62 63
63 } // namespace dart 64 } // namespace dart
64 65
65 #endif // SERVICES_DART_DART_TRACING_H_ 66 #endif // SERVICES_DART_DART_TRACING_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698