OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "content/browser/devtools/devtools_tracing_handler.h" | 5 #include "content/browser/devtools/devtools_tracing_handler.h" |
6 | 6 |
7 #include <cmath> | 7 #include <cmath> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
11 #include "base/debug/trace_event_impl.h" | 11 #include "base/debug/trace_event_impl.h" |
12 #include "base/file_util.h" | 12 #include "base/files/file_util.h" |
13 #include "base/json/json_reader.h" | 13 #include "base/json/json_reader.h" |
14 #include "base/json/json_writer.h" | 14 #include "base/json/json_writer.h" |
15 #include "base/location.h" | 15 #include "base/location.h" |
16 #include "base/memory/ref_counted_memory.h" | 16 #include "base/memory/ref_counted_memory.h" |
17 #include "base/strings/string_split.h" | 17 #include "base/strings/string_split.h" |
18 #include "base/strings/stringprintf.h" | 18 #include "base/strings/stringprintf.h" |
19 #include "base/time/time.h" | 19 #include "base/time/time.h" |
20 #include "base/timer/timer.h" | 20 #include "base/timer/timer.h" |
21 #include "base/values.h" | 21 #include "base/values.h" |
22 #include "content/browser/devtools/devtools_http_handler_impl.h" | 22 #include "content/browser/devtools/devtools_http_handler_impl.h" |
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
283 if (!is_recording_) | 283 if (!is_recording_) |
284 return; | 284 return; |
285 is_recording_ = false; | 285 is_recording_ = false; |
286 DisableRecording( | 286 DisableRecording( |
287 base::Bind(&DevToolsTracingHandler::BeginReadingRecordingResult, | 287 base::Bind(&DevToolsTracingHandler::BeginReadingRecordingResult, |
288 weak_factory_.GetWeakPtr())); | 288 weak_factory_.GetWeakPtr())); |
289 } | 289 } |
290 | 290 |
291 | 291 |
292 } // namespace content | 292 } // namespace content |
OLD | NEW |