OLD | NEW |
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 13 matching lines...) Expand all Loading... |
24 */ | 24 */ |
25 | 25 |
26 #include "config.h" | 26 #include "config.h" |
27 #include "public/platform/WebMediaStreamTrackSourcesRequest.h" | 27 #include "public/platform/WebMediaStreamTrackSourcesRequest.h" |
28 | 28 |
29 #include "platform/mediastream/MediaStreamTrackSourcesRequest.h" | 29 #include "platform/mediastream/MediaStreamTrackSourcesRequest.h" |
30 #include "public/platform/WebSourceInfo.h" | 30 #include "public/platform/WebSourceInfo.h" |
31 #include "wtf/PassOwnPtr.h" | 31 #include "wtf/PassOwnPtr.h" |
32 #include "wtf/text/WTFString.h" | 32 #include "wtf/text/WTFString.h" |
33 | 33 |
34 using namespace blink; | |
35 | |
36 namespace blink { | 34 namespace blink { |
37 | 35 |
38 namespace { | 36 namespace { |
39 | 37 |
40 class ExtraDataContainer : public MediaStreamTrackSourcesRequest::ExtraData { | 38 class ExtraDataContainer : public MediaStreamTrackSourcesRequest::ExtraData { |
41 public: | 39 public: |
42 ExtraDataContainer(PassOwnPtr<WebMediaStreamTrackSourcesRequest::ExtraData>
extraData) : m_extraData(extraData) { } | 40 ExtraDataContainer(PassOwnPtr<WebMediaStreamTrackSourcesRequest::ExtraData>
extraData) : m_extraData(extraData) { } |
43 | 41 |
44 WebMediaStreamTrackSourcesRequest::ExtraData* extraData() { return m_extraDa
ta.get(); } | 42 WebMediaStreamTrackSourcesRequest::ExtraData* extraData() { return m_extraDa
ta.get(); } |
45 | 43 |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 return static_cast<ExtraDataContainer*>(data)->extraData(); | 82 return static_cast<ExtraDataContainer*>(data)->extraData(); |
85 } | 83 } |
86 | 84 |
87 void WebMediaStreamTrackSourcesRequest::setExtraData(ExtraData* extraData) | 85 void WebMediaStreamTrackSourcesRequest::setExtraData(ExtraData* extraData) |
88 { | 86 { |
89 m_private->setExtraData(adoptPtr(new ExtraDataContainer(adoptPtr(extraData))
)); | 87 m_private->setExtraData(adoptPtr(new ExtraDataContainer(adoptPtr(extraData))
)); |
90 } | 88 } |
91 | 89 |
92 } // namespace blink | 90 } // namespace blink |
93 | 91 |
OLD | NEW |