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

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

Issue 1910673002: Convert //services from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 | « services/tracing/public/cpp/tracing_impl.h ('k') | services/user/user_service.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 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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory>
11
10 #include "base/macros.h" 12 #include "base/macros.h"
11 #include "base/memory/scoped_ptr.h"
12 #include "base/memory/scoped_vector.h" 13 #include "base/memory/scoped_vector.h"
13 #include "mojo/public/cpp/bindings/binding_set.h" 14 #include "mojo/public/cpp/bindings/binding_set.h"
14 #include "mojo/public/cpp/bindings/interface_ptr_set.h" 15 #include "mojo/public/cpp/bindings/interface_ptr_set.h"
15 #include "mojo/public/cpp/bindings/strong_binding.h" 16 #include "mojo/public/cpp/bindings/strong_binding.h"
16 #include "services/shell/public/cpp/interface_factory.h" 17 #include "services/shell/public/cpp/interface_factory.h"
17 #include "services/shell/public/cpp/shell_client.h" 18 #include "services/shell/public/cpp/shell_client.h"
18 #include "services/tracing/public/interfaces/tracing.mojom.h" 19 #include "services/tracing/public/interfaces/tracing.mojom.h"
19 #include "services/tracing/trace_data_sink.h" 20 #include "services/tracing/trace_data_sink.h"
20 #include "services/tracing/trace_recorder_impl.h" 21 #include "services/tracing/trace_recorder_impl.h"
21 22
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 void SetBrowserMessageLoopStartTicks(int64_t ticks) override; 57 void SetBrowserMessageLoopStartTicks(int64_t ticks) override;
57 void SetBrowserWindowDisplayTicks(int64_t ticks) override; 58 void SetBrowserWindowDisplayTicks(int64_t ticks) override;
58 void SetBrowserOpenTabsTimeDelta(int64_t delta) override; 59 void SetBrowserOpenTabsTimeDelta(int64_t delta) override;
59 void SetFirstWebContentsMainFrameLoadTicks(int64_t ticks) override; 60 void SetFirstWebContentsMainFrameLoadTicks(int64_t ticks) override;
60 void SetFirstVisuallyNonEmptyLayoutTicks(int64_t ticks) override; 61 void SetFirstVisuallyNonEmptyLayoutTicks(int64_t ticks) override;
61 void GetStartupPerformanceTimes( 62 void GetStartupPerformanceTimes(
62 const GetStartupPerformanceTimesCallback& callback) override; 63 const GetStartupPerformanceTimesCallback& callback) override;
63 64
64 void AllDataCollected(); 65 void AllDataCollected();
65 66
66 scoped_ptr<TraceDataSink> sink_; 67 std::unique_ptr<TraceDataSink> sink_;
67 ScopedVector<TraceRecorderImpl> recorder_impls_; 68 ScopedVector<TraceRecorderImpl> recorder_impls_;
68 mojo::InterfacePtrSet<TraceProvider> provider_ptrs_; 69 mojo::InterfacePtrSet<TraceProvider> provider_ptrs_;
69 mojo::Binding<TraceCollector> collector_binding_; 70 mojo::Binding<TraceCollector> collector_binding_;
70 mojo::BindingSet<StartupPerformanceDataCollector> 71 mojo::BindingSet<StartupPerformanceDataCollector>
71 startup_performance_data_collector_bindings_; 72 startup_performance_data_collector_bindings_;
72 StartupPerformanceTimes startup_performance_times_; 73 StartupPerformanceTimes startup_performance_times_;
73 bool tracing_active_; 74 bool tracing_active_;
74 mojo::String tracing_categories_; 75 mojo::String tracing_categories_;
75 76
76 DISALLOW_COPY_AND_ASSIGN(TracingApp); 77 DISALLOW_COPY_AND_ASSIGN(TracingApp);
77 }; 78 };
78 79
79 } // namespace tracing 80 } // namespace tracing
80 81
81 #endif // SERVICES_TRACING_TRACING_APP_H_ 82 #endif // SERVICES_TRACING_TRACING_APP_H_
OLDNEW
« no previous file with comments | « services/tracing/public/cpp/tracing_impl.h ('k') | services/user/user_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698