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 | 8 |
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/values.h" | 16 #include "base/values.h" |
16 #include "components/web_view/frame_devtools_agent_delegate.h" | 17 #include "components/web_view/frame_devtools_agent_delegate.h" |
17 #include "mojo/application/public/cpp/application_impl.h" | 18 #include "mojo/application/public/cpp/application_impl.h" |
18 #include "mojo/services/network/public/interfaces/url_loader.mojom.h" | 19 #include "mojo/services/network/public/interfaces/url_loader.mojom.h" |
19 #include "url/gurl.h" | 20 #include "url/gurl.h" |
20 | 21 |
21 namespace web_view { | 22 namespace web_view { |
22 | 23 |
23 using devtools_service::DevToolsAgentClientPtr; | 24 using devtools_service::DevToolsAgentClientPtr; |
24 using devtools_service::DevToolsAgentPtr; | 25 using devtools_service::DevToolsAgentPtr; |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 pending_messages_.erase(call_id); | 189 pending_messages_.erase(call_id); |
189 } | 190 } |
190 | 191 |
191 void FrameDevToolsAgent::OnForwardClientClosed() { | 192 void FrameDevToolsAgent::OnForwardClientClosed() { |
192 client_impl_.reset(); | 193 client_impl_.reset(); |
193 state_.clear(); | 194 state_.clear(); |
194 pending_messages_.clear(); | 195 pending_messages_.clear(); |
195 } | 196 } |
196 | 197 |
197 } // namespace web_view | 198 } // namespace web_view |
OLD | NEW |