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

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

Issue 457353002: Cleanup namespace usage in public/platform/Web[A-M]*.h. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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
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 12 matching lines...) Expand all
23 */ 23 */
24 24
25 #ifndef WebMediaStreamTrack_h 25 #ifndef WebMediaStreamTrack_h
26 #define WebMediaStreamTrack_h 26 #define WebMediaStreamTrack_h
27 27
28 #include "WebCommon.h" 28 #include "WebCommon.h"
29 #include "WebNonCopyable.h" 29 #include "WebNonCopyable.h"
30 #include "WebPrivatePtr.h" 30 #include "WebPrivatePtr.h"
31 31
32 namespace blink { 32 namespace blink {
33
33 class MediaStreamComponent; 34 class MediaStreamComponent;
34 }
35
36 namespace blink {
37 class WebAudioSourceProvider; 35 class WebAudioSourceProvider;
38 class WebMediaStream; 36 class WebMediaStream;
39 class WebMediaStreamSource; 37 class WebMediaStreamSource;
40 class WebString; 38 class WebString;
41 39
42 class WebMediaStreamTrack { 40 class WebMediaStreamTrack {
43 public: 41 public:
44 class ExtraData { 42 class ExtraData {
45 public: 43 public:
46 ExtraData() : m_owner(0) { } 44 ExtraData() : m_owner(0) { }
47 virtual ~ExtraData() { } 45 virtual ~ExtraData() { }
48 46
49 BLINK_PLATFORM_EXPORT WebMediaStreamTrack owner(); 47 BLINK_PLATFORM_EXPORT WebMediaStreamTrack owner();
50 48
51 #if INSIDE_BLINK 49 #if INSIDE_BLINK
52 BLINK_PLATFORM_EXPORT void setOwner(blink::MediaStreamComponent*); 50 BLINK_PLATFORM_EXPORT void setOwner(MediaStreamComponent*);
53 #endif 51 #endif
54 52
55 private: 53 private:
56 blink::MediaStreamComponent* m_owner; 54 MediaStreamComponent* m_owner;
57 }; 55 };
58 56
59 WebMediaStreamTrack() { } 57 WebMediaStreamTrack() { }
60 WebMediaStreamTrack(const WebMediaStreamTrack& other) { assign(other); } 58 WebMediaStreamTrack(const WebMediaStreamTrack& other) { assign(other); }
61 ~WebMediaStreamTrack() { reset(); } 59 ~WebMediaStreamTrack() { reset(); }
62 60
63 WebMediaStreamTrack& operator=(const WebMediaStreamTrack& other) 61 WebMediaStreamTrack& operator=(const WebMediaStreamTrack& other)
64 { 62 {
65 assign(other); 63 assign(other);
66 return *this; 64 return *this;
(...skipping 17 matching lines...) Expand all
84 // extra data pointer to be deleted. 82 // extra data pointer to be deleted.
85 BLINK_PLATFORM_EXPORT ExtraData* extraData() const; 83 BLINK_PLATFORM_EXPORT ExtraData* extraData() const;
86 BLINK_PLATFORM_EXPORT void setExtraData(ExtraData*); 84 BLINK_PLATFORM_EXPORT void setExtraData(ExtraData*);
87 85
88 // The lifetime of the WebAudioSourceProvider should outlive the 86 // The lifetime of the WebAudioSourceProvider should outlive the
89 // WebMediaStreamTrack, and clients are responsible for calling 87 // WebMediaStreamTrack, and clients are responsible for calling
90 // setSourceProvider(0) before the WebMediaStreamTrack is going away. 88 // setSourceProvider(0) before the WebMediaStreamTrack is going away.
91 BLINK_PLATFORM_EXPORT void setSourceProvider(WebAudioSourceProvider*); 89 BLINK_PLATFORM_EXPORT void setSourceProvider(WebAudioSourceProvider*);
92 90
93 #if INSIDE_BLINK 91 #if INSIDE_BLINK
94 BLINK_PLATFORM_EXPORT WebMediaStreamTrack(PassRefPtr<blink::MediaStreamCompo nent>); 92 BLINK_PLATFORM_EXPORT WebMediaStreamTrack(PassRefPtr<MediaStreamComponent>);
95 BLINK_PLATFORM_EXPORT WebMediaStreamTrack(blink::MediaStreamComponent*); 93 BLINK_PLATFORM_EXPORT WebMediaStreamTrack(MediaStreamComponent*);
96 BLINK_PLATFORM_EXPORT WebMediaStreamTrack& operator=(blink::MediaStreamCompo nent*); 94 BLINK_PLATFORM_EXPORT WebMediaStreamTrack& operator=(MediaStreamComponent*);
97 BLINK_PLATFORM_EXPORT operator WTF::PassRefPtr<blink::MediaStreamComponent>( ) const; 95 BLINK_PLATFORM_EXPORT operator WTF::PassRefPtr<MediaStreamComponent>() const ;
98 BLINK_PLATFORM_EXPORT operator blink::MediaStreamComponent*() const; 96 BLINK_PLATFORM_EXPORT operator MediaStreamComponent*() const;
99 #endif 97 #endif
100 98
101 private: 99 private:
102 WebPrivatePtr<blink::MediaStreamComponent> m_private; 100 WebPrivatePtr<MediaStreamComponent> m_private;
103 }; 101 };
104 102
105 } // namespace blink 103 } // namespace blink
106 104
107 #endif // WebMediaStreamTrack_h 105 #endif // WebMediaStreamTrack_h
OLDNEW
« no previous file with comments | « public/platform/WebMediaStreamSource.h ('k') | public/platform/WebMediaStreamTrackSourcesRequest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698