OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "platform/inspector_protocol/DispatcherBase.h" | |
6 | |
7 #include "platform/inspector_protocol/FrontendChannel.h" | |
8 #include "platform/inspector_protocol/Parser.h" | |
9 | |
10 namespace blink { | 5 namespace blink { |
11 namespace protocol { | 6 namespace protocol { |
12 | 7 |
13 // static | 8 // static |
14 const char DispatcherBase::kInvalidRequest[] = "Invalid request"; | 9 const char DispatcherBase::kInvalidRequest[] = "Invalid request"; |
15 | 10 |
16 DispatcherBase::WeakPtr::WeakPtr(DispatcherBase* dispatcher) : m_dispatcher(disp
atcher) { } | 11 DispatcherBase::WeakPtr::WeakPtr(DispatcherBase* dispatcher) : m_dispatcher(disp
atcher) { } |
17 | 12 |
18 DispatcherBase::WeakPtr::~WeakPtr() | 13 DispatcherBase::WeakPtr::~WeakPtr() |
19 { | 14 { |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 reportProtocolError(m_frontendChannel, callId, DispatcherBase::MethodNot
Found, "'" + method + "' wasn't found", nullptr); | 159 reportProtocolError(m_frontendChannel, callId, DispatcherBase::MethodNot
Found, "'" + method + "' wasn't found", nullptr); |
165 return; | 160 return; |
166 } | 161 } |
167 it->second->dispatch(callId, method, std::move(messageObject)); | 162 it->second->dispatch(callId, method, std::move(messageObject)); |
168 } | 163 } |
169 | 164 |
170 UberDispatcher::~UberDispatcher() = default; | 165 UberDispatcher::~UberDispatcher() = default; |
171 | 166 |
172 } // namespace protocol | 167 } // namespace protocol |
173 } // namespace blink | 168 } // namespace blink |
OLD | NEW |