| 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 "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/location.h" | 9 #include "base/location.h" |
| 10 #include "base/values.h" | 10 #include "base/values.h" |
| 11 #include "content/browser/devtools/devtools_http_handler_impl.h" | 11 #include "content/browser/devtools/devtools_http_handler_impl.h" |
| 12 #include "content/public/browser/browser_thread.h" | |
| 13 #include "content/public/browser/trace_controller.h" | 12 #include "content/public/browser/trace_controller.h" |
| 14 #include "content/public/browser/trace_subscriber.h" | 13 #include "content/public/browser/trace_subscriber.h" |
| 15 | 14 |
| 16 namespace content { | 15 namespace content { |
| 17 | 16 |
| 18 DevToolsTracingHandler::DevToolsTracingHandler() | 17 DevToolsTracingHandler::DevToolsTracingHandler() |
| 19 : has_completed_(false), | 18 : has_completed_(false), |
| 20 buffer_data_size_(0) { | 19 buffer_data_size_(0) { |
| 21 } | 20 } |
| 22 | 21 |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 ret.append(*i); | 93 ret.append(*i); |
| 95 } | 94 } |
| 96 buffer_.clear(); | 95 buffer_.clear(); |
| 97 has_completed_ = false; | 96 has_completed_ = false; |
| 98 buffer_data_size_ = 0; | 97 buffer_data_size_ = 0; |
| 99 | 98 |
| 100 return base::Value::CreateStringValue(ret); | 99 return base::Value::CreateStringValue(ret); |
| 101 } | 100 } |
| 102 | 101 |
| 103 } // namespace content | 102 } // namespace content |
| OLD | NEW |