| OLD | NEW |
| 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 #include "chrome/browser/tracing/navigation_tracing.h" | 5 #include "chrome/browser/tracing/navigation_tracing.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| 11 #include "chrome/browser/browser_process.h" | 11 #include "chrome/browser/browser_process.h" |
| 12 #include "chrome/browser/tracing/crash_service_uploader.h" | 12 #include "chrome/browser/tracing/crash_service_uploader.h" |
| 13 #include "chrome/common/chrome_switches.h" | 13 #include "chrome/common/chrome_switches.h" |
| 14 #include "components/tracing/tracing_switches.h" | 14 #include "components/tracing/common/tracing_switches.h" |
| 15 #include "content/public/browser/background_tracing_config.h" | 15 #include "content/public/browser/background_tracing_config.h" |
| 16 #include "content/public/browser/background_tracing_manager.h" | 16 #include "content/public/browser/background_tracing_manager.h" |
| 17 #include "content/public/browser/browser_thread.h" | 17 #include "content/public/browser/browser_thread.h" |
| 18 #include "content/public/browser/render_frame_host.h" | 18 #include "content/public/browser/render_frame_host.h" |
| 19 | 19 |
| 20 DEFINE_WEB_CONTENTS_USER_DATA_KEY(tracing::NavigationTracingObserver); | 20 DEFINE_WEB_CONTENTS_USER_DATA_KEY(tracing::NavigationTracingObserver); |
| 21 | 21 |
| 22 using content::RenderFrameHost; | 22 using content::RenderFrameHost; |
| 23 | 23 |
| 24 namespace tracing { | 24 namespace tracing { |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 content::BackgroundTracingManager::GetInstance()->TriggerNamedEvent( | 107 content::BackgroundTracingManager::GetInstance()->TriggerNamedEvent( |
| 108 navigation_handle, | 108 navigation_handle, |
| 109 content::BackgroundTracingManager::StartedFinalizingCallback()); | 109 content::BackgroundTracingManager::StartedFinalizingCallback()); |
| 110 } | 110 } |
| 111 } | 111 } |
| 112 | 112 |
| 113 content::BackgroundTracingManager::TriggerHandle | 113 content::BackgroundTracingManager::TriggerHandle |
| 114 NavigationTracingObserver::navigation_handle = -1; | 114 NavigationTracingObserver::navigation_handle = -1; |
| 115 | 115 |
| 116 } // namespace tracing | 116 } // namespace tracing |
| OLD | NEW |