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

Side by Side Diff: third_party/WebKit/Source/platform/inspector_protocol/DispatcherBase_h.template

Issue 2260233002: [DevTools] Migrate v8_inspector/public from String16 to String{View,Buffer}. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: styling Created 4 years, 3 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 #ifndef DispatcherBase_h 5 #ifndef DispatcherBase_h
6 #define DispatcherBase_h 6 #define DispatcherBase_h
7 7
8 //#include "BackendCallback.h" 8 //#include "BackendCallback.h"
9 //#include "Collections.h" 9 //#include "Collections.h"
10 //#include "ErrorSupport.h" 10 //#include "ErrorSupport.h"
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 private: 76 private:
77 FrontendChannel* m_frontendChannel; 77 FrontendChannel* m_frontendChannel;
78 protocol::HashSet<WeakPtr*> m_weakPtrs; 78 protocol::HashSet<WeakPtr*> m_weakPtrs;
79 }; 79 };
80 80
81 class {{config.class_export.macro}} UberDispatcher { 81 class {{config.class_export.macro}} UberDispatcher {
82 PROTOCOL_DISALLOW_COPY(UberDispatcher); 82 PROTOCOL_DISALLOW_COPY(UberDispatcher);
83 public: 83 public:
84 explicit UberDispatcher(FrontendChannel*); 84 explicit UberDispatcher(FrontendChannel*);
85 void registerBackend(const String16& name, std::unique_ptr<protocol::Dispatc herBase>); 85 void registerBackend(const String16& name, std::unique_ptr<protocol::Dispatc herBase>);
86 void dispatch(const String16& message); 86 void dispatch(std::unique_ptr<Value> message);
87 FrontendChannel* channel() { return m_frontendChannel; } 87 FrontendChannel* channel() { return m_frontendChannel; }
88 virtual ~UberDispatcher(); 88 virtual ~UberDispatcher();
89 89
90 private: 90 private:
91 FrontendChannel* m_frontendChannel; 91 FrontendChannel* m_frontendChannel;
92 protocol::HashMap<String16, std::unique_ptr<protocol::DispatcherBase>> m_dis patchers; 92 protocol::HashMap<String16, std::unique_ptr<protocol::DispatcherBase>> m_dis patchers;
93 }; 93 };
94 94
95 } // namespace platform 95 } // namespace platform
96 } // namespace blink 96 } // namespace blink
97 97
98 #endif // !defined(DispatcherBase_h) 98 #endif // !defined(DispatcherBase_h)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698