| 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 "components/web_view/frame_devtools_agent.h" | 5 #include "components/web_view/frame_devtools_agent.h" |
| 6 | 6 |
| 7 #include <string.h> | 7 #include <string.h> |
| 8 #include <utility> | 8 #include <utility> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/bind.h" | 11 #include "base/bind.h" |
| 12 #include "base/guid.h" | 12 #include "base/guid.h" |
| 13 #include "base/json/json_reader.h" | 13 #include "base/json/json_reader.h" |
| 14 #include "base/logging.h" | 14 #include "base/logging.h" |
| 15 #include "base/macros.h" | 15 #include "base/macros.h" |
| 16 #include "base/values.h" | 16 #include "base/values.h" |
| 17 #include "components/web_view/frame_devtools_agent_delegate.h" | 17 #include "components/web_view/frame_devtools_agent_delegate.h" |
| 18 #include "mojo/application/public/cpp/application_impl.h" | |
| 19 #include "mojo/services/network/public/interfaces/url_loader.mojom.h" | 18 #include "mojo/services/network/public/interfaces/url_loader.mojom.h" |
| 19 #include "mojo/shell/public/cpp/application_impl.h" |
| 20 #include "url/gurl.h" | 20 #include "url/gurl.h" |
| 21 | 21 |
| 22 namespace web_view { | 22 namespace web_view { |
| 23 | 23 |
| 24 using devtools_service::DevToolsAgentClientPtr; | 24 using devtools_service::DevToolsAgentClientPtr; |
| 25 using devtools_service::DevToolsAgentPtr; | 25 using devtools_service::DevToolsAgentPtr; |
| 26 using devtools_service::DevToolsRegistryPtr; | 26 using devtools_service::DevToolsRegistryPtr; |
| 27 | 27 |
| 28 using mojo::String; | 28 using mojo::String; |
| 29 | 29 |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 pending_messages_.erase(call_id); | 191 pending_messages_.erase(call_id); |
| 192 } | 192 } |
| 193 | 193 |
| 194 void FrameDevToolsAgent::OnForwardClientClosed() { | 194 void FrameDevToolsAgent::OnForwardClientClosed() { |
| 195 client_impl_.reset(); | 195 client_impl_.reset(); |
| 196 state_.clear(); | 196 state_.clear(); |
| 197 pending_messages_.clear(); | 197 pending_messages_.clear(); |
| 198 } | 198 } |
| 199 | 199 |
| 200 } // namespace web_view | 200 } // namespace web_view |
| OLD | NEW |