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

Unified Diff: lib/DispatcherBase_h.template

Issue 2566343002: [inspector_protocol] Support redirects and types whitelisting. (Closed)
Patch Set: Created 4 years 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 side-by-side diff with in-line comments
Download patch
Index: lib/DispatcherBase_h.template
diff --git a/lib/DispatcherBase_h.template b/lib/DispatcherBase_h.template
index 3a6069b6494b43955f0b3753150101a8020ef7f9..5404281dc6f0d3938362913ceb650bba8fb4a0fc 100644
--- a/lib/DispatcherBase_h.template
+++ b/lib/DispatcherBase_h.template
@@ -113,7 +113,8 @@ class {{config.lib.export_macro}} UberDispatcher {
public:
explicit UberDispatcher(FrontendChannel*);
void registerBackend(const String& name, std::unique_ptr<protocol::DispatcherBase>);
- DispatchResponse::Status dispatch(std::unique_ptr<Value> message);
+ void setupRedirects(const HashMap<String, String>&);
+ DispatchResponse::Status dispatch(std::unique_ptr<Value> message, int* callId = nullptr, String* method = nullptr);
FrontendChannel* channel() { return m_frontendChannel; }
bool fallThroughForNotFound() { return m_fallThroughForNotFound; }
void setFallThroughForNotFound(bool);
@@ -122,6 +123,7 @@ public:
private:
FrontendChannel* m_frontendChannel;
bool m_fallThroughForNotFound;
+ HashMap<String, String> m_redirects;
protocol::HashMap<String, std::unique_ptr<protocol::DispatcherBase>> m_dispatchers;
};

Powered by Google App Engine
This is Rietveld 408576698