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

Unified Diff: third_party/WebKit/public/platform/Platform.h

Issue 2930263002: Add blink::WebSocketHandshakeThrottle (Closed)
Patch Set: Fixes from yhirano review 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: third_party/WebKit/public/platform/Platform.h
diff --git a/third_party/WebKit/public/platform/Platform.h b/third_party/WebKit/public/platform/Platform.h
index f65d73f5627ffb14bccbdb9f964edbb93ac97086..2fdcc52a4dac4004b3bed5ff374b72140956ded6 100644
--- a/third_party/WebKit/public/platform/Platform.h
+++ b/third_party/WebKit/public/platform/Platform.h
@@ -35,6 +35,8 @@
#include <windows.h>
#endif
+#include <memory>
+
#include "BlameContext.h"
#include "UserMetricsAction.h"
#include "WebAudioDevice.h"
@@ -118,6 +120,7 @@ class WebSandboxSupport;
class WebScrollbarBehavior;
class WebSecurityOrigin;
class WebServiceWorkerCacheStorage;
+class WebSocketHandshakeThrottle;
class WebSpeechSynthesizer;
class WebSpeechSynthesizerClient;
class WebStorageNamespace;
@@ -570,6 +573,13 @@ class BLINK_PLATFORM_EXPORT Platform {
virtual std::unique_ptr<WebImageCaptureFrameGrabber>
CreateImageCaptureFrameGrabber();
+ // WebSocket ----------------------------------------------------------
+
+ // If this method returns non-null the returned object will be used to
+ // determine if/when a new WebSocket connection can be exposed to Javascript.
+ virtual std::unique_ptr<WebSocketHandshakeThrottle>
+ CreateWebSocketHandshakeThrottle();
+
// WebWorker ----------------------------------------------------------
virtual void DidStartWorkerThread() {}

Powered by Google App Engine
This is Rietveld 408576698