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

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

Issue 1467103003: Basic use implementation for MediaStream from Canvas: captureStream() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated LayoutTests. Created 5 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 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 #include "WebURLError.h" 54 #include "WebURLError.h"
55 #include "WebVector.h" 55 #include "WebVector.h"
56 #include "WebWaitableEvent.h" 56 #include "WebWaitableEvent.h"
57 57
58 class GrContext; 58 class GrContext;
59 59
60 namespace blink { 60 namespace blink {
61 61
62 class WebAudioBus; 62 class WebAudioBus;
63 class WebBlobRegistry; 63 class WebBlobRegistry;
64 class WebCanvasCaptureHandler;
64 class WebClipboard; 65 class WebClipboard;
65 class WebCompositorSupport; 66 class WebCompositorSupport;
66 class WebConvertableToTraceFormat; 67 class WebConvertableToTraceFormat;
67 class WebCookieJar; 68 class WebCookieJar;
68 class WebCrypto; 69 class WebCrypto;
69 class WebDatabaseObserver; 70 class WebDatabaseObserver;
70 class WebDiscardableMemory; 71 class WebDiscardableMemory;
71 class WebPlatformEventListener; 72 class WebPlatformEventListener;
72 class WebFallbackThemeEngine; 73 class WebFallbackThemeEngine;
73 class WebFileSystem; 74 class WebFileSystem;
74 class WebFileUtilities; 75 class WebFileUtilities;
75 class WebFlingAnimator; 76 class WebFlingAnimator;
76 class WebGeofencingProvider; 77 class WebGeofencingProvider;
77 class WebGestureCurve; 78 class WebGestureCurve;
78 class WebGraphicsContext3DProvider; 79 class WebGraphicsContext3DProvider;
79 class WebIDBFactory; 80 class WebIDBFactory;
80 class WebMIDIAccessor; 81 class WebMIDIAccessor;
81 class WebMIDIAccessorClient; 82 class WebMIDIAccessorClient;
82 class WebMediaRecorderHandler; 83 class WebMediaRecorderHandler;
84 class WebMediaStream;
83 class WebMediaStreamCenter; 85 class WebMediaStreamCenter;
84 class WebMediaStreamCenterClient; 86 class WebMediaStreamCenterClient;
85 class WebMemoryDumpProvider; 87 class WebMemoryDumpProvider;
86 class WebMessagePortChannel; 88 class WebMessagePortChannel;
87 class WebMimeRegistry; 89 class WebMimeRegistry;
88 class WebNavigatorConnectProvider; 90 class WebNavigatorConnectProvider;
89 class WebNotificationManager; 91 class WebNotificationManager;
90 class WebPermissionClient; 92 class WebPermissionClient;
91 class WebPluginListBuilder; 93 class WebPluginListBuilder;
92 class WebPrescientNetworking; 94 class WebPrescientNetworking;
(...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after
633 // Creates an WebMediaRecorderHandler to record MediaStreams. 635 // Creates an WebMediaRecorderHandler to record MediaStreams.
634 // May return null if the functionality is not available or out of resources . 636 // May return null if the functionality is not available or out of resources .
635 virtual WebMediaRecorderHandler* createMediaRecorderHandler() { return nullp tr; } 637 virtual WebMediaRecorderHandler* createMediaRecorderHandler() { return nullp tr; }
636 638
637 // May return null if WebRTC functionality is not avaliable or out of resour ces. 639 // May return null if WebRTC functionality is not avaliable or out of resour ces.
638 virtual WebRTCCertificateGenerator* createRTCCertificateGenerator() { return nullptr; } 640 virtual WebRTCCertificateGenerator* createRTCCertificateGenerator() { return nullptr; }
639 641
640 // May return null if WebRTC functionality is not avaliable or out of resour ces. 642 // May return null if WebRTC functionality is not avaliable or out of resour ces.
641 virtual WebMediaStreamCenter* createMediaStreamCenter(WebMediaStreamCenterCl ient*) { return nullptr; } 643 virtual WebMediaStreamCenter* createMediaStreamCenter(WebMediaStreamCenterCl ient*) { return nullptr; }
642 644
645 // Creates an WebCanvasCaptureHandler to capture Canvas output.
646 virtual WebCanvasCaptureHandler* createCanvasCaptureHandler(const WebSize& s ize, WebMediaStream* stream) { return nullptr; }
643 // WebWorker ---------------------------------------------------------- 647 // WebWorker ----------------------------------------------------------
644 648
645 virtual void didStartWorkerRunLoop() { } 649 virtual void didStartWorkerRunLoop() { }
646 virtual void didStopWorkerRunLoop() { } 650 virtual void didStopWorkerRunLoop() { }
647 651
648 // WebCrypto ---------------------------------------------------------- 652 // WebCrypto ----------------------------------------------------------
649 653
650 virtual WebCrypto* crypto() { return nullptr; } 654 virtual WebCrypto* crypto() { return nullptr; }
651 655
652 656
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
739 protected: 743 protected:
740 BLINK_PLATFORM_EXPORT Platform(); 744 BLINK_PLATFORM_EXPORT Platform();
741 virtual ~Platform() { } 745 virtual ~Platform() { }
742 746
743 WebThread* m_mainThread; 747 WebThread* m_mainThread;
744 }; 748 };
745 749
746 } // namespace blink 750 } // namespace blink
747 751
748 #endif 752 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698