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