OLD | NEW |
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 #include "components/feedback/tracing_manager.h" | 5 #include "components/feedback/tracing_manager.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/file_util.h" | 8 #include "base/files/file_util.h" |
9 #include "base/location.h" | 9 #include "base/location.h" |
10 #include "base/memory/ref_counted_memory.h" | 10 #include "base/memory/ref_counted_memory.h" |
11 #include "base/message_loop/message_loop_proxy.h" | 11 #include "base/message_loop/message_loop_proxy.h" |
12 #include "components/feedback/feedback_util.h" | 12 #include "components/feedback/feedback_util.h" |
13 #include "content/public/browser/tracing_controller.h" | 13 #include "content/public/browser/tracing_controller.h" |
14 | 14 |
15 namespace { | 15 namespace { |
16 // Only once trace manager can exist at a time. | 16 // Only once trace manager can exist at a time. |
17 TracingManager* g_tracing_manager = NULL; | 17 TracingManager* g_tracing_manager = NULL; |
18 // Trace IDs start at 1 and increase. | 18 // Trace IDs start at 1 and increase. |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 // static | 134 // static |
135 scoped_ptr<TracingManager> TracingManager::Create() { | 135 scoped_ptr<TracingManager> TracingManager::Create() { |
136 if (g_tracing_manager) | 136 if (g_tracing_manager) |
137 return scoped_ptr<TracingManager>(); | 137 return scoped_ptr<TracingManager>(); |
138 return scoped_ptr<TracingManager>(new TracingManager()); | 138 return scoped_ptr<TracingManager>(new TracingManager()); |
139 } | 139 } |
140 | 140 |
141 TracingManager* TracingManager::Get() { | 141 TracingManager* TracingManager::Get() { |
142 return g_tracing_manager; | 142 return g_tracing_manager; |
143 } | 143 } |
OLD | NEW |