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

Unified Diff: content/public/renderer/content_renderer_client.h

Issue 2952583002: SafeBrowsing support for WebSocket (post-network-servicification) (Closed)
Patch Set: Remove useless DCHECKs Created 3 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 side-by-side diff with in-line comments
Download patch
Index: content/public/renderer/content_renderer_client.h
diff --git a/content/public/renderer/content_renderer_client.h b/content/public/renderer/content_renderer_client.h
index 989fd178d0a606a43cda0b8b0c7c7f605c43ecfc..03cd2c6ae07e7fdcac91722e5ce345117e87efd4 100644
--- a/content/public/renderer/content_renderer_client.h
+++ b/content/public/renderer/content_renderer_client.h
@@ -47,12 +47,13 @@ class WebPlugin;
class WebPrescientNetworking;
class WebRTCPeerConnectionHandler;
class WebRTCPeerConnectionHandlerClient;
+class WebSocketHandshakeThrottle;
class WebSpeechSynthesizer;
class WebSpeechSynthesizerClient;
class WebThemeEngine;
class WebURL;
-class WebURLResponse;
class WebURLRequest;
+class WebURLResponse;
struct WebPluginParams;
struct WebURLError;
} // namespace blink
@@ -175,6 +176,11 @@ class CONTENT_EXPORT ContentRendererClient {
// the content layer will provide an engine.
virtual blink::WebThemeEngine* OverrideThemeEngine();
+ // Allows the embedder to provide a WebSocketHandshakeThrottle. If it returns
+ // NULL then none will be used.
+ virtual std::unique_ptr<blink::WebSocketHandshakeThrottle>
+ CreateWebSocketHandshakeThrottle();
+
// Allows the embedder to override the WebSpeechSynthesizer used.
// If it returns NULL the content layer will provide an engine.
virtual std::unique_ptr<blink::WebSpeechSynthesizer>

Powered by Google App Engine
This is Rietveld 408576698