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

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

Issue 401973003: Rename WebCore namespace to blink in Public (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « public/platform/WebMediaStream.h ('k') | public/platform/WebMediaStreamTrack.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 18 matching lines...) Expand all
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 "WebNonCopyable.h" 35 #include "WebNonCopyable.h"
36 #include "WebPrivatePtr.h" 36 #include "WebPrivatePtr.h"
37 #include "WebVector.h" 37 #include "WebVector.h"
38 38
39 namespace WebCore { 39 namespace blink {
40 class MediaStreamSource; 40 class MediaStreamSource;
41 } 41 }
42 42
43 namespace blink { 43 namespace blink {
44 class WebAudioDestinationConsumer; 44 class WebAudioDestinationConsumer;
45 class WebMediaConstraints; 45 class WebMediaConstraints;
46 class WebString; 46 class WebString;
47 47
48 class WebMediaStreamSource { 48 class WebMediaStreamSource {
49 public: 49 public:
50 class ExtraData { 50 class ExtraData {
51 public: 51 public:
52 ExtraData() : m_owner(0) { } 52 ExtraData() : m_owner(0) { }
53 virtual ~ExtraData() { } 53 virtual ~ExtraData() { }
54 54
55 BLINK_PLATFORM_EXPORT WebMediaStreamSource owner(); 55 BLINK_PLATFORM_EXPORT WebMediaStreamSource owner();
56 56
57 #if INSIDE_BLINK 57 #if INSIDE_BLINK
58 BLINK_PLATFORM_EXPORT void setOwner(WebCore::MediaStreamSource*); 58 BLINK_PLATFORM_EXPORT void setOwner(blink::MediaStreamSource*);
59 #endif 59 #endif
60 60
61 private: 61 private:
62 WebCore::MediaStreamSource* m_owner; 62 blink::MediaStreamSource* m_owner;
63 }; 63 };
64 64
65 enum Type { 65 enum Type {
66 TypeAudio, 66 TypeAudio,
67 TypeVideo 67 TypeVideo
68 }; 68 };
69 69
70 enum ReadyState { 70 enum ReadyState {
71 ReadyStateLive = 0, 71 ReadyStateLive = 0,
72 ReadyStateMuted = 1, 72 ReadyStateMuted = 1,
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 BLINK_PLATFORM_EXPORT WebMediaConstraints constraints(); 106 BLINK_PLATFORM_EXPORT WebMediaConstraints constraints();
107 107
108 // Only used if if this is a WebAudio source. 108 // Only used if if this is a WebAudio source.
109 // The WebAudioDestinationConsumer is not owned, and has to be disposed of s eparately 109 // The WebAudioDestinationConsumer is not owned, and has to be disposed of s eparately
110 // after calling removeAudioConsumer. 110 // after calling removeAudioConsumer.
111 BLINK_PLATFORM_EXPORT bool requiresAudioConsumer() const; 111 BLINK_PLATFORM_EXPORT bool requiresAudioConsumer() const;
112 BLINK_PLATFORM_EXPORT void addAudioConsumer(WebAudioDestinationConsumer*); 112 BLINK_PLATFORM_EXPORT void addAudioConsumer(WebAudioDestinationConsumer*);
113 BLINK_PLATFORM_EXPORT bool removeAudioConsumer(WebAudioDestinationConsumer*) ; 113 BLINK_PLATFORM_EXPORT bool removeAudioConsumer(WebAudioDestinationConsumer*) ;
114 114
115 #if INSIDE_BLINK 115 #if INSIDE_BLINK
116 BLINK_PLATFORM_EXPORT WebMediaStreamSource(const WTF::PassRefPtr<WebCore::Me diaStreamSource>&); 116 BLINK_PLATFORM_EXPORT WebMediaStreamSource(const WTF::PassRefPtr<blink::Medi aStreamSource>&);
117 BLINK_PLATFORM_EXPORT WebMediaStreamSource& operator=(WebCore::MediaStreamSo urce*); 117 BLINK_PLATFORM_EXPORT WebMediaStreamSource& operator=(blink::MediaStreamSour ce*);
118 BLINK_PLATFORM_EXPORT operator WTF::PassRefPtr<WebCore::MediaStreamSource>() const; 118 BLINK_PLATFORM_EXPORT operator WTF::PassRefPtr<blink::MediaStreamSource>() c onst;
119 BLINK_PLATFORM_EXPORT operator WebCore::MediaStreamSource*() const; 119 BLINK_PLATFORM_EXPORT operator blink::MediaStreamSource*() const;
120 #endif 120 #endif
121 121
122 private: 122 private:
123 WebPrivatePtr<WebCore::MediaStreamSource> m_private; 123 WebPrivatePtr<blink::MediaStreamSource> m_private;
124 }; 124 };
125 125
126 } // namespace blink 126 } // namespace blink
127 127
128 #endif // WebMediaStreamSource_h 128 #endif // WebMediaStreamSource_h
OLDNEW
« no previous file with comments | « public/platform/WebMediaStream.h ('k') | public/platform/WebMediaStreamTrack.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698