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

Side by Side 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 17 matching lines...) Expand all
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #ifndef Platform_h 31 #ifndef Platform_h
32 #define Platform_h 32 #define Platform_h
33 33
34 #ifdef WIN32 34 #ifdef WIN32
35 #include <windows.h> 35 #include <windows.h>
36 #endif 36 #endif
37 37
38 #include <memory>
39
38 #include "BlameContext.h" 40 #include "BlameContext.h"
39 #include "UserMetricsAction.h" 41 #include "UserMetricsAction.h"
40 #include "WebAudioDevice.h" 42 #include "WebAudioDevice.h"
41 #include "WebCommon.h" 43 #include "WebCommon.h"
42 #include "WebData.h" 44 #include "WebData.h"
43 #include "WebFeaturePolicy.h" 45 #include "WebFeaturePolicy.h"
44 #include "WebGamepadListener.h" 46 #include "WebGamepadListener.h"
45 #include "WebGestureDevice.h" 47 #include "WebGestureDevice.h"
46 #include "WebLocalizedString.h" 48 #include "WebLocalizedString.h"
47 #include "WebMessagePortChannel.h" 49 #include "WebMessagePortChannel.h"
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 class WebPrescientNetworking; 113 class WebPrescientNetworking;
112 class WebPublicSuffixList; 114 class WebPublicSuffixList;
113 class WebPushProvider; 115 class WebPushProvider;
114 class WebRTCCertificateGenerator; 116 class WebRTCCertificateGenerator;
115 class WebRTCPeerConnectionHandler; 117 class WebRTCPeerConnectionHandler;
116 class WebRTCPeerConnectionHandlerClient; 118 class WebRTCPeerConnectionHandlerClient;
117 class WebSandboxSupport; 119 class WebSandboxSupport;
118 class WebScrollbarBehavior; 120 class WebScrollbarBehavior;
119 class WebSecurityOrigin; 121 class WebSecurityOrigin;
120 class WebServiceWorkerCacheStorage; 122 class WebServiceWorkerCacheStorage;
123 class WebSocketHandshakeThrottle;
121 class WebSpeechSynthesizer; 124 class WebSpeechSynthesizer;
122 class WebSpeechSynthesizerClient; 125 class WebSpeechSynthesizerClient;
123 class WebStorageNamespace; 126 class WebStorageNamespace;
124 class WebSyncProvider; 127 class WebSyncProvider;
125 struct WebFloatPoint; 128 struct WebFloatPoint;
126 class WebThemeEngine; 129 class WebThemeEngine;
127 class WebThread; 130 class WebThread;
128 class WebTrialTokenValidator; 131 class WebTrialTokenValidator;
129 class WebURLLoaderMockFactory; 132 class WebURLLoaderMockFactory;
130 class WebURLResponse; 133 class WebURLResponse;
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after
563 virtual void CreateHTMLVideoElementCapturer(WebMediaStream*, 566 virtual void CreateHTMLVideoElementCapturer(WebMediaStream*,
564 WebMediaPlayer*) {} 567 WebMediaPlayer*) {}
565 virtual void CreateHTMLAudioElementCapturer(WebMediaStream*, 568 virtual void CreateHTMLAudioElementCapturer(WebMediaStream*,
566 WebMediaPlayer*) {} 569 WebMediaPlayer*) {}
567 570
568 // Creates a WebImageCaptureFrameGrabber to take a snapshot of a Video Tracks. 571 // Creates a WebImageCaptureFrameGrabber to take a snapshot of a Video Tracks.
569 // May return null if the functionality is not available. 572 // May return null if the functionality is not available.
570 virtual std::unique_ptr<WebImageCaptureFrameGrabber> 573 virtual std::unique_ptr<WebImageCaptureFrameGrabber>
571 CreateImageCaptureFrameGrabber(); 574 CreateImageCaptureFrameGrabber();
572 575
576 // WebSocket ----------------------------------------------------------
577
578 // If this method returns non-null the returned object will be used to
579 // determine if/when a new WebSocket connection can be exposed to Javascript.
580 virtual std::unique_ptr<WebSocketHandshakeThrottle>
581 CreateWebSocketHandshakeThrottle();
582
573 // WebWorker ---------------------------------------------------------- 583 // WebWorker ----------------------------------------------------------
574 584
575 virtual void DidStartWorkerThread() {} 585 virtual void DidStartWorkerThread() {}
576 virtual void WillStopWorkerThread() {} 586 virtual void WillStopWorkerThread() {}
577 virtual void WorkerContextCreated(const v8::Local<v8::Context>& worker) {} 587 virtual void WorkerContextCreated(const v8::Local<v8::Context>& worker) {}
578 virtual bool AllowScriptExtensionForServiceWorker(const WebURL& script_url) { 588 virtual bool AllowScriptExtensionForServiceWorker(const WebURL& script_url) {
579 return false; 589 return false;
580 } 590 }
581 591
582 // WebCrypto ---------------------------------------------------------- 592 // WebCrypto ----------------------------------------------------------
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
695 protected: 705 protected:
696 Platform(); 706 Platform();
697 virtual ~Platform() {} 707 virtual ~Platform() {}
698 708
699 WebThread* main_thread_; 709 WebThread* main_thread_;
700 }; 710 };
701 711
702 } // namespace blink 712 } // namespace blink
703 713
704 #endif 714 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698