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

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

Issue 2651353002: Get the device ID in getSettings() (Closed)
Patch Set: Created 3 years, 11 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) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 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 14 matching lines...) Expand all
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
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 WebMediaStreamSource_h 31 #ifndef WebMediaStreamSource_h
32 #define WebMediaStreamSource_h 32 #define WebMediaStreamSource_h
33 33
34 #include "WebCommon.h" 34 #include "WebCommon.h"
35 #include "WebMediaStreamTrack.h"
36
35 #include "WebNonCopyable.h" 37 #include "WebNonCopyable.h"
36 #include "WebPrivatePtr.h" 38 #include "WebPrivatePtr.h"
37 #include "WebVector.h" 39 #include "WebVector.h"
38 #if INSIDE_BLINK 40 #if INSIDE_BLINK
39 #include "platform/heap/Handle.h" 41 #include "platform/heap/Handle.h"
40 #endif 42 #endif
41 43
42 namespace blink { 44 namespace blink {
43 45
44 class MediaStreamSource; 46 class MediaStreamSource;
45 class WebAudioDestinationConsumer; 47 class WebAudioDestinationConsumer;
46 class WebMediaConstraints; 48 class WebMediaConstraints;
47 class WebString; 49 class WebString;
48 50
49 class WebMediaStreamSource { 51 class WebMediaStreamSource {
50 public: 52 public:
51 class ExtraData { 53 class ExtraData {
52 public: 54 public:
53 ExtraData() : m_owner(0) {} 55 ExtraData() : m_owner(0) {}
54 virtual ~ExtraData() {} 56 virtual ~ExtraData() {}
55 57
56 BLINK_PLATFORM_EXPORT WebMediaStreamSource owner(); 58 BLINK_PLATFORM_EXPORT WebMediaStreamSource owner();
57
58 #if INSIDE_BLINK 59 #if INSIDE_BLINK
59 BLINK_PLATFORM_EXPORT void setOwner(MediaStreamSource*); 60 BLINK_PLATFORM_EXPORT void setOwner(MediaStreamSource*);
60 #endif 61 #endif
61 62
62 private: 63 private:
63 #if INSIDE_BLINK 64 #if INSIDE_BLINK
64 GC_PLUGIN_IGNORE("http://crbug.com/409526") 65 GC_PLUGIN_IGNORE("http://crbug.com/409526")
65 #endif 66 #endif
66 MediaStreamSource* m_owner; 67 MediaStreamSource* m_owner;
67 }; 68 };
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 BLINK_PLATFORM_EXPORT operator MediaStreamSource*() const; 127 BLINK_PLATFORM_EXPORT operator MediaStreamSource*() const;
127 #endif 128 #endif
128 129
129 private: 130 private:
130 WebPrivatePtr<MediaStreamSource> m_private; 131 WebPrivatePtr<MediaStreamSource> m_private;
131 }; 132 };
132 133
133 } // namespace blink 134 } // namespace blink
134 135
135 #endif // WebMediaStreamSource_h 136 #endif // WebMediaStreamSource_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698