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

Side by Side Diff: third_party/WebKit/public/platform/Platform.h

Issue 2939123002: Revert of Add blink::WebSocketHandshakeThrottle (Closed)
Patch Set: 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
40 #include "BlameContext.h" 38 #include "BlameContext.h"
41 #include "UserMetricsAction.h" 39 #include "UserMetricsAction.h"
42 #include "WebAudioDevice.h" 40 #include "WebAudioDevice.h"
43 #include "WebCommon.h" 41 #include "WebCommon.h"
44 #include "WebData.h" 42 #include "WebData.h"
45 #include "WebFeaturePolicy.h" 43 #include "WebFeaturePolicy.h"
46 #include "WebGamepadListener.h" 44 #include "WebGamepadListener.h"
47 #include "WebGestureDevice.h" 45 #include "WebGestureDevice.h"
48 #include "WebLocalizedString.h" 46 #include "WebLocalizedString.h"
49 #include "WebMessagePortChannel.h" 47 #include "WebMessagePortChannel.h"
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 class WebPrescientNetworking; 111 class WebPrescientNetworking;
114 class WebPublicSuffixList; 112 class WebPublicSuffixList;
115 class WebPushProvider; 113 class WebPushProvider;
116 class WebRTCCertificateGenerator; 114 class WebRTCCertificateGenerator;
117 class WebRTCPeerConnectionHandler; 115 class WebRTCPeerConnectionHandler;
118 class WebRTCPeerConnectionHandlerClient; 116 class WebRTCPeerConnectionHandlerClient;
119 class WebSandboxSupport; 117 class WebSandboxSupport;
120 class WebScrollbarBehavior; 118 class WebScrollbarBehavior;
121 class WebSecurityOrigin; 119 class WebSecurityOrigin;
122 class WebServiceWorkerCacheStorage; 120 class WebServiceWorkerCacheStorage;
123 class WebSocketHandshakeThrottle;
124 class WebSpeechSynthesizer; 121 class WebSpeechSynthesizer;
125 class WebSpeechSynthesizerClient; 122 class WebSpeechSynthesizerClient;
126 class WebStorageNamespace; 123 class WebStorageNamespace;
127 class WebSyncProvider; 124 class WebSyncProvider;
128 struct WebFloatPoint; 125 struct WebFloatPoint;
129 class WebThemeEngine; 126 class WebThemeEngine;
130 class WebThread; 127 class WebThread;
131 class WebTrialTokenValidator; 128 class WebTrialTokenValidator;
132 class WebURLLoaderMockFactory; 129 class WebURLLoaderMockFactory;
133 class WebURLResponse; 130 class WebURLResponse;
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after
566 virtual void CreateHTMLVideoElementCapturer(WebMediaStream*, 563 virtual void CreateHTMLVideoElementCapturer(WebMediaStream*,
567 WebMediaPlayer*) {} 564 WebMediaPlayer*) {}
568 virtual void CreateHTMLAudioElementCapturer(WebMediaStream*, 565 virtual void CreateHTMLAudioElementCapturer(WebMediaStream*,
569 WebMediaPlayer*) {} 566 WebMediaPlayer*) {}
570 567
571 // Creates a WebImageCaptureFrameGrabber to take a snapshot of a Video Tracks. 568 // Creates a WebImageCaptureFrameGrabber to take a snapshot of a Video Tracks.
572 // May return null if the functionality is not available. 569 // May return null if the functionality is not available.
573 virtual std::unique_ptr<WebImageCaptureFrameGrabber> 570 virtual std::unique_ptr<WebImageCaptureFrameGrabber>
574 CreateImageCaptureFrameGrabber(); 571 CreateImageCaptureFrameGrabber();
575 572
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
583 // WebWorker ---------------------------------------------------------- 573 // WebWorker ----------------------------------------------------------
584 574
585 virtual void DidStartWorkerThread() {} 575 virtual void DidStartWorkerThread() {}
586 virtual void WillStopWorkerThread() {} 576 virtual void WillStopWorkerThread() {}
587 virtual void WorkerContextCreated(const v8::Local<v8::Context>& worker) {} 577 virtual void WorkerContextCreated(const v8::Local<v8::Context>& worker) {}
588 virtual bool AllowScriptExtensionForServiceWorker(const WebURL& script_url) { 578 virtual bool AllowScriptExtensionForServiceWorker(const WebURL& script_url) {
589 return false; 579 return false;
590 } 580 }
591 581
592 // WebCrypto ---------------------------------------------------------- 582 // WebCrypto ----------------------------------------------------------
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
705 protected: 695 protected:
706 Platform(); 696 Platform();
707 virtual ~Platform() {} 697 virtual ~Platform() {}
708 698
709 WebThread* main_thread_; 699 WebThread* main_thread_;
710 }; 700 };
711 701
712 } // namespace blink 702 } // namespace blink
713 703
714 #endif 704 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698