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_agent_host_impl.h" | 5 #include "content/browser/devtools/devtools_agent_host_impl.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | |
11 #include "base/guid.h" | 10 #include "base/guid.h" |
12 #include "base/json/json_writer.h" | 11 #include "base/json/json_writer.h" |
13 #include "base/lazy_instance.h" | 12 #include "base/lazy_instance.h" |
14 #include "content/browser/devtools/devtools_manager.h" | 13 #include "content/browser/devtools/devtools_manager.h" |
15 #include "content/browser/devtools/forwarding_agent_host.h" | 14 #include "content/browser/devtools/forwarding_agent_host.h" |
16 #include "content/browser/devtools/protocol/devtools_protocol_dispatcher.h" | 15 #include "content/browser/devtools/protocol/devtools_protocol_dispatcher.h" |
17 #include "content/browser/devtools/render_frame_devtools_agent_host.h" | 16 #include "content/browser/devtools/render_frame_devtools_agent_host.h" |
18 #include "content/browser/devtools/service_worker_devtools_agent_host.h" | 17 #include "content/browser/devtools/service_worker_devtools_agent_host.h" |
19 #include "content/browser/devtools/service_worker_devtools_manager.h" | 18 #include "content/browser/devtools/service_worker_devtools_manager.h" |
20 #include "content/browser/devtools/shared_worker_devtools_agent_host.h" | 19 #include "content/browser/devtools/shared_worker_devtools_agent_host.h" |
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
279 | 278 |
280 if (chunk.is_last) { | 279 if (chunk.is_last) { |
281 CHECK(message_buffer_.size() == message_buffer_size_); | 280 CHECK(message_buffer_.size() == message_buffer_size_); |
282 callback_.Run(chunk.session_id, message_buffer_); | 281 callback_.Run(chunk.session_id, message_buffer_); |
283 message_buffer_ = std::string(); | 282 message_buffer_ = std::string(); |
284 message_buffer_size_ = 0; | 283 message_buffer_size_ = 0; |
285 } | 284 } |
286 } | 285 } |
287 | 286 |
288 } // namespace content | 287 } // namespace content |
OLD | NEW |