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

Side by Side Diff: content/browser/tracing/tracing_controller_impl.h

Issue 2733283002: Require explicit selection of traits for LazyInstance (Closed)
Patch Set: Created 3 years, 9 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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 CONTENT_BROWSER_TRACING_TRACING_CONTROLLER_IMPL_H_ 5 #ifndef CONTENT_BROWSER_TRACING_TRACING_CONTROLLER_IMPL_H_
6 #define CONTENT_BROWSER_TRACING_TRACING_CONTROLLER_IMPL_H_ 6 #define CONTENT_BROWSER_TRACING_TRACING_CONTROLLER_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 96
97 class TraceMessageFilterObserver { 97 class TraceMessageFilterObserver {
98 public: 98 public:
99 virtual void OnTraceMessageFilterAdded(TraceMessageFilter* filter) = 0; 99 virtual void OnTraceMessageFilterAdded(TraceMessageFilter* filter) = 0;
100 virtual void OnTraceMessageFilterRemoved(TraceMessageFilter* filter) = 0; 100 virtual void OnTraceMessageFilterRemoved(TraceMessageFilter* filter) = 0;
101 }; 101 };
102 void AddTraceMessageFilterObserver(TraceMessageFilterObserver* observer); 102 void AddTraceMessageFilterObserver(TraceMessageFilterObserver* observer);
103 void RemoveTraceMessageFilterObserver(TraceMessageFilterObserver* observer); 103 void RemoveTraceMessageFilterObserver(TraceMessageFilterObserver* observer);
104 104
105 private: 105 private:
106 friend struct base::DefaultLazyInstanceTraits<TracingControllerImpl>; 106 friend struct base::LazyInstanceTraitsBase<TracingControllerImpl>;
107 friend class TraceMessageFilter; 107 friend class TraceMessageFilter;
108 108
109 // The arguments and callback for an queued global memory dump request. 109 // The arguments and callback for an queued global memory dump request.
110 struct QueuedMemoryDumpRequest { 110 struct QueuedMemoryDumpRequest {
111 QueuedMemoryDumpRequest( 111 QueuedMemoryDumpRequest(
112 const base::trace_event::MemoryDumpRequestArgs& args, 112 const base::trace_event::MemoryDumpRequestArgs& args,
113 const base::trace_event::MemoryDumpCallback& callback); 113 const base::trace_event::MemoryDumpCallback& callback);
114 ~QueuedMemoryDumpRequest(); 114 ~QueuedMemoryDumpRequest();
115 const base::trace_event::MemoryDumpRequestArgs args; 115 const base::trace_event::MemoryDumpRequestArgs args;
116 const base::trace_event::MemoryDumpCallback callback; 116 const base::trace_event::MemoryDumpCallback callback;
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 scoped_refptr<TraceDataSink> trace_data_sink_; 242 scoped_refptr<TraceDataSink> trace_data_sink_;
243 scoped_refptr<TraceDataSink> monitoring_data_sink_; 243 scoped_refptr<TraceDataSink> monitoring_data_sink_;
244 std::unique_ptr<base::DictionaryValue> metadata_; 244 std::unique_ptr<base::DictionaryValue> metadata_;
245 245
246 DISALLOW_COPY_AND_ASSIGN(TracingControllerImpl); 246 DISALLOW_COPY_AND_ASSIGN(TracingControllerImpl);
247 }; 247 };
248 248
249 } // namespace content 249 } // namespace content
250 250
251 #endif // CONTENT_BROWSER_TRACING_TRACING_CONTROLLER_IMPL_H_ 251 #endif // CONTENT_BROWSER_TRACING_TRACING_CONTROLLER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698