Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(90)

Side by Side Diff: third_party/WebKit/Source/platform/inspector_protocol/DispatcherBase.cpp

Issue 2025953002: DevTools: generate class-per domain for remote debugging protocol. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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" 5 #include "platform/inspector_protocol/DispatcherBase.h"
6 6
7 #include "platform/inspector_protocol/FrontendChannel.h" 7 #include "platform/inspector_protocol/FrontendChannel.h"
8 #include "platform/inspector_protocol/Parser.h" 8 #include "platform/inspector_protocol/Parser.h"
9 9
10 namespace blink { 10 namespace blink {
11 namespace protocol { 11 namespace protocol {
12 12
13 // static
14 const char DispatcherBase::kInvalidRequest[] = "Invalid request";
15
13 DispatcherBase::WeakPtr::WeakPtr(DispatcherBase* dispatcher) : m_dispatcher(disp atcher) { } 16 DispatcherBase::WeakPtr::WeakPtr(DispatcherBase* dispatcher) : m_dispatcher(disp atcher) { }
14 17
15 DispatcherBase::WeakPtr::~WeakPtr() 18 DispatcherBase::WeakPtr::~WeakPtr()
16 { 19 {
17 if (m_dispatcher) 20 if (m_dispatcher)
18 m_dispatcher->m_weakPtrs.remove(this); 21 m_dispatcher->m_weakPtrs.remove(this);
19 } 22 }
20 23
21 DispatcherBase::Callback::Callback(std::unique_ptr<DispatcherBase::WeakPtr> back endImpl, int callId) 24 DispatcherBase::Callback::Callback(std::unique_ptr<DispatcherBase::WeakPtr> back endImpl, int callId)
22 : m_backendImpl(std::move(backendImpl)) 25 : m_backendImpl(std::move(backendImpl))
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 reportProtocolError(m_frontendChannel, callId, DispatcherBase::MethodNot Found, "'" + method + "' wasn't found", nullptr); 164 reportProtocolError(m_frontendChannel, callId, DispatcherBase::MethodNot Found, "'" + method + "' wasn't found", nullptr);
162 return; 165 return;
163 } 166 }
164 it->second->dispatch(callId, method, std::move(messageObject)); 167 it->second->dispatch(callId, method, std::move(messageObject));
165 } 168 }
166 169
167 UberDispatcher::~UberDispatcher() = default; 170 UberDispatcher::~UberDispatcher() = default;
168 171
169 } // namespace protocol 172 } // namespace protocol
170 } // namespace blink 173 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698