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

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

Issue 133733004: Adding owner access from WebMediaStreamTrack::ExtraData (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed win Created 6 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/platform/chromium/support/WebMediaStreamTrack.cpp ('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 26 matching lines...) Expand all
37 class WebAudioSourceProvider; 37 class WebAudioSourceProvider;
38 class WebMediaStream; 38 class WebMediaStream;
39 class WebMediaStreamSource; 39 class WebMediaStreamSource;
40 class WebString; 40 class WebString;
41 41
42 class WebMediaStreamTrack { 42 class WebMediaStreamTrack {
43 public: 43 public:
44 class ExtraData { 44 class ExtraData {
45 public: 45 public:
46 virtual ~ExtraData() { } 46 virtual ~ExtraData() { }
47 BLINK_EXPORT WebMediaStreamTrack owner();
48
49 #if INSIDE_BLINK
50 BLINK_EXPORT void setOwner(WebCore::MediaStreamComponent*);
51 #endif
52
53 private:
54 WebCore::MediaStreamComponent* m_owner;
47 }; 55 };
48 56
49 WebMediaStreamTrack() { } 57 WebMediaStreamTrack() { }
50 WebMediaStreamTrack(const WebMediaStreamTrack& other) { assign(other); } 58 WebMediaStreamTrack(const WebMediaStreamTrack& other) { assign(other); }
51 ~WebMediaStreamTrack() { reset(); } 59 ~WebMediaStreamTrack() { reset(); }
52 60
53 WebMediaStreamTrack& operator=(const WebMediaStreamTrack& other) 61 WebMediaStreamTrack& operator=(const WebMediaStreamTrack& other)
54 { 62 {
55 assign(other); 63 assign(other);
56 return *this; 64 return *this;
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 operator WebCore::MediaStreamComponent*() const; 97 operator WebCore::MediaStreamComponent*() const;
90 #endif 98 #endif
91 99
92 private: 100 private:
93 WebPrivatePtr<WebCore::MediaStreamComponent> m_private; 101 WebPrivatePtr<WebCore::MediaStreamComponent> m_private;
94 }; 102 };
95 103
96 } // namespace blink 104 } // namespace blink
97 105
98 #endif // WebMediaStreamTrack_h 106 #endif // WebMediaStreamTrack_h
OLDNEW
« no previous file with comments | « Source/core/platform/chromium/support/WebMediaStreamTrack.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698