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

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

Issue 534473002: Revert of Oilpan: Move MediaStreamSource, MediaStreamComponent and MediaStreamDescriptor (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 3 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/WebMediaStreamSource.h ('k') | no next file » | 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) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 23 matching lines...) Expand all
34 class MediaStreamComponent; 34 class MediaStreamComponent;
35 class WebAudioSourceProvider; 35 class WebAudioSourceProvider;
36 class WebMediaStream; 36 class WebMediaStream;
37 class WebMediaStreamSource; 37 class WebMediaStreamSource;
38 class WebString; 38 class WebString;
39 39
40 class WebMediaStreamTrack { 40 class WebMediaStreamTrack {
41 public: 41 public:
42 class ExtraData { 42 class ExtraData {
43 public: 43 public:
44 ExtraData() { } 44 ExtraData() : m_owner(0) { }
45 virtual ~ExtraData() { } 45 virtual ~ExtraData() { }
46
47 BLINK_PLATFORM_EXPORT WebMediaStreamTrack owner();
48
49 #if INSIDE_BLINK
50 BLINK_PLATFORM_EXPORT void setOwner(MediaStreamComponent*);
51 #endif
52
53 private:
54 MediaStreamComponent* m_owner;
46 }; 55 };
47 56
48 WebMediaStreamTrack() { } 57 WebMediaStreamTrack() { }
49 WebMediaStreamTrack(const WebMediaStreamTrack& other) { assign(other); } 58 WebMediaStreamTrack(const WebMediaStreamTrack& other) { assign(other); }
50 ~WebMediaStreamTrack() { reset(); } 59 ~WebMediaStreamTrack() { reset(); }
51 60
52 WebMediaStreamTrack& operator=(const WebMediaStreamTrack& other) 61 WebMediaStreamTrack& operator=(const WebMediaStreamTrack& other)
53 { 62 {
54 assign(other); 63 assign(other);
55 return *this; 64 return *this;
(...skipping 17 matching lines...) Expand all
73 // extra data pointer to be deleted. 82 // extra data pointer to be deleted.
74 BLINK_PLATFORM_EXPORT ExtraData* extraData() const; 83 BLINK_PLATFORM_EXPORT ExtraData* extraData() const;
75 BLINK_PLATFORM_EXPORT void setExtraData(ExtraData*); 84 BLINK_PLATFORM_EXPORT void setExtraData(ExtraData*);
76 85
77 // The lifetime of the WebAudioSourceProvider should outlive the 86 // The lifetime of the WebAudioSourceProvider should outlive the
78 // WebMediaStreamTrack, and clients are responsible for calling 87 // WebMediaStreamTrack, and clients are responsible for calling
79 // setSourceProvider(0) before the WebMediaStreamTrack is going away. 88 // setSourceProvider(0) before the WebMediaStreamTrack is going away.
80 BLINK_PLATFORM_EXPORT void setSourceProvider(WebAudioSourceProvider*); 89 BLINK_PLATFORM_EXPORT void setSourceProvider(WebAudioSourceProvider*);
81 90
82 #if INSIDE_BLINK 91 #if INSIDE_BLINK
92 BLINK_PLATFORM_EXPORT WebMediaStreamTrack(PassRefPtr<MediaStreamComponent>);
83 BLINK_PLATFORM_EXPORT WebMediaStreamTrack(MediaStreamComponent*); 93 BLINK_PLATFORM_EXPORT WebMediaStreamTrack(MediaStreamComponent*);
84 BLINK_PLATFORM_EXPORT WebMediaStreamTrack& operator=(MediaStreamComponent*); 94 BLINK_PLATFORM_EXPORT WebMediaStreamTrack& operator=(MediaStreamComponent*);
95 BLINK_PLATFORM_EXPORT operator WTF::PassRefPtr<MediaStreamComponent>() const ;
85 BLINK_PLATFORM_EXPORT operator MediaStreamComponent*() const; 96 BLINK_PLATFORM_EXPORT operator MediaStreamComponent*() const;
86 #endif 97 #endif
87 98
88 private: 99 private:
89 WebPrivatePtr<MediaStreamComponent> m_private; 100 WebPrivatePtr<MediaStreamComponent> m_private;
90 }; 101 };
91 102
92 } // namespace blink 103 } // namespace blink
93 104
94 #endif // WebMediaStreamTrack_h 105 #endif // WebMediaStreamTrack_h
OLDNEW
« no previous file with comments | « public/platform/WebMediaStreamSource.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698