| 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 15 matching lines...) Expand all Loading... |
| 26 #ifndef MediaStreamTrackSourcesRequestImpl_h | 26 #ifndef MediaStreamTrackSourcesRequestImpl_h |
| 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 | 33 |
| 34 class ExecutionContext; | 34 class ExecutionContext; |
| 35 class MediaStreamTrackSourcesCallback; | 35 class MediaStreamTrackSourcesCallback; |
| 36 class SecurityOrigin; |
| 36 class WebSourceInfo; | 37 class WebSourceInfo; |
| 37 template<typename T> class WebVector; | 38 template<typename T> class WebVector; |
| 38 | 39 |
| 39 class MediaStreamTrackSourcesRequestImpl final : public MediaStreamTrackSourcesR
equest { | 40 class MediaStreamTrackSourcesRequestImpl final : public MediaStreamTrackSourcesR
equest { |
| 40 public: | 41 public: |
| 41 static MediaStreamTrackSourcesRequestImpl* create(ExecutionContext&, MediaSt
reamTrackSourcesCallback*); | 42 static MediaStreamTrackSourcesRequestImpl* create(ExecutionContext&, MediaSt
reamTrackSourcesCallback*); |
| 42 ~MediaStreamTrackSourcesRequestImpl(); | 43 ~MediaStreamTrackSourcesRequestImpl(); |
| 43 | 44 |
| 44 String origin() override; | 45 PassRefPtr<SecurityOrigin> origin() override; |
| 45 void requestSucceeded(const WebVector<WebSourceInfo>&) override; | 46 void requestSucceeded(const WebVector<WebSourceInfo>&) override; |
| 46 | 47 |
| 47 DECLARE_VIRTUAL_TRACE(); | 48 DECLARE_VIRTUAL_TRACE(); |
| 48 | 49 |
| 49 private: | 50 private: |
| 50 MediaStreamTrackSourcesRequestImpl(ExecutionContext&, MediaStreamTrackSource
sCallback*); | 51 MediaStreamTrackSourcesRequestImpl(ExecutionContext&, MediaStreamTrackSource
sCallback*); |
| 51 | 52 |
| 52 void performCallback(); | 53 void performCallback(); |
| 53 | 54 |
| 54 Member<MediaStreamTrackSourcesCallback> m_callback; | 55 Member<MediaStreamTrackSourcesCallback> m_callback; |
| 55 Member<ExecutionContext> m_executionContext; | 56 Member<ExecutionContext> m_executionContext; |
| 56 SourceInfoVector m_sourceInfos; | 57 SourceInfoVector m_sourceInfos; |
| 57 }; | 58 }; |
| 58 | 59 |
| 59 } // namespace blink | 60 } // namespace blink |
| 60 | 61 |
| 61 #endif // MediaStreamTrackSourcesRequestImpl_h | 62 #endif // MediaStreamTrackSourcesRequestImpl_h |
| OLD | NEW |