| 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 16 matching lines...) Expand all Loading... |
| 27 #define MediaStreamTrackSourcesRequestImpl_h | 27 #define MediaStreamTrackSourcesRequestImpl_h |
| 28 | 28 |
| 29 #include "modules/mediastream/SourceInfo.h" | 29 #include "modules/mediastream/SourceInfo.h" |
| 30 #include "platform/mediastream/MediaStreamTrackSourcesRequest.h" | 30 #include "platform/mediastream/MediaStreamTrackSourcesRequest.h" |
| 31 | 31 |
| 32 namespace blink { | 32 namespace blink { |
| 33 class WebSourceInfo; | 33 class WebSourceInfo; |
| 34 template<typename T> class WebVector; | 34 template<typename T> class WebVector; |
| 35 } | 35 } |
| 36 | 36 |
| 37 namespace WebCore { | 37 namespace blink { |
| 38 | 38 |
| 39 class ExecutionContext; | 39 class ExecutionContext; |
| 40 class MediaStreamTrackSourcesCallback; | 40 class MediaStreamTrackSourcesCallback; |
| 41 | 41 |
| 42 class MediaStreamTrackSourcesRequestImpl FINAL : public MediaStreamTrackSourcesR
equest { | 42 class MediaStreamTrackSourcesRequestImpl FINAL : public MediaStreamTrackSourcesR
equest { |
| 43 public: | 43 public: |
| 44 static MediaStreamTrackSourcesRequestImpl* create(ExecutionContext&, PassOwn
Ptr<MediaStreamTrackSourcesCallback>); | 44 static MediaStreamTrackSourcesRequestImpl* create(ExecutionContext&, PassOwn
Ptr<MediaStreamTrackSourcesCallback>); |
| 45 ~MediaStreamTrackSourcesRequestImpl(); | 45 ~MediaStreamTrackSourcesRequestImpl(); |
| 46 | 46 |
| 47 virtual String origin() OVERRIDE; | 47 virtual String origin() OVERRIDE; |
| 48 virtual void requestSucceeded(const blink::WebVector<blink::WebSourceInfo>&)
OVERRIDE; | 48 virtual void requestSucceeded(const blink::WebVector<blink::WebSourceInfo>&)
OVERRIDE; |
| 49 | 49 |
| 50 virtual void trace(Visitor*) OVERRIDE; | 50 virtual void trace(Visitor*) OVERRIDE; |
| 51 | 51 |
| 52 private: | 52 private: |
| 53 MediaStreamTrackSourcesRequestImpl(ExecutionContext&, PassOwnPtr<MediaStream
TrackSourcesCallback>); | 53 MediaStreamTrackSourcesRequestImpl(ExecutionContext&, PassOwnPtr<MediaStream
TrackSourcesCallback>); |
| 54 | 54 |
| 55 void performCallback(); | 55 void performCallback(); |
| 56 | 56 |
| 57 OwnPtr<MediaStreamTrackSourcesCallback> m_callback; | 57 OwnPtr<MediaStreamTrackSourcesCallback> m_callback; |
| 58 RefPtrWillBeMember<ExecutionContext> m_executionContext; | 58 RefPtrWillBeMember<ExecutionContext> m_executionContext; |
| 59 SourceInfoVector m_sourceInfos; | 59 SourceInfoVector m_sourceInfos; |
| 60 }; | 60 }; |
| 61 | 61 |
| 62 } // namespace WebCore | 62 } // namespace blink |
| 63 | 63 |
| 64 #endif // MediaStreamTrackSourcesRequestImpl_h | 64 #endif // MediaStreamTrackSourcesRequestImpl_h |
| OLD | NEW |