| 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 25 matching lines...) Expand all Loading... |
| 36 namespace blink { | 36 namespace blink { |
| 37 class WebSourceInfo; | 37 class WebSourceInfo; |
| 38 } | 38 } |
| 39 | 39 |
| 40 namespace WebCore { | 40 namespace WebCore { |
| 41 | 41 |
| 42 class MediaStreamTrackSourcesCallback; | 42 class MediaStreamTrackSourcesCallback; |
| 43 | 43 |
| 44 class MediaStreamTrackSourcesRequestImpl FINAL : public MediaStreamTrackSourcesR
equest { | 44 class MediaStreamTrackSourcesRequestImpl FINAL : public MediaStreamTrackSourcesR
equest { |
| 45 public: | 45 public: |
| 46 static PassRefPtr<MediaStreamTrackSourcesRequestImpl> create(const String&,
PassOwnPtr<MediaStreamTrackSourcesCallback>); | 46 static PassRefPtrWillBeRawPtr<MediaStreamTrackSourcesRequestImpl> create(con
st String&, PassOwnPtr<MediaStreamTrackSourcesCallback>); |
| 47 ~MediaStreamTrackSourcesRequestImpl(); | 47 ~MediaStreamTrackSourcesRequestImpl(); |
| 48 | 48 |
| 49 virtual String origin() { return m_origin; } | 49 virtual String origin() { return m_origin; } |
| 50 virtual void requestSucceeded(const blink::WebVector<blink::WebSourceInfo>&)
; | 50 virtual void requestSucceeded(const blink::WebVector<blink::WebSourceInfo>&)
; |
| 51 | 51 |
| 52 virtual void trace(Visitor*) OVERRIDE; |
| 53 |
| 52 private: | 54 private: |
| 53 MediaStreamTrackSourcesRequestImpl(const String&, PassOwnPtr<MediaStreamTrac
kSourcesCallback>); | 55 MediaStreamTrackSourcesRequestImpl(const String&, PassOwnPtr<MediaStreamTrac
kSourcesCallback>); |
| 54 | 56 |
| 55 void scheduledEventTimerFired(Timer<MediaStreamTrackSourcesRequestImpl>*); | 57 void scheduledEventTimerFired(Timer<MediaStreamTrackSourcesRequestImpl>*); |
| 56 | 58 |
| 57 OwnPtr<MediaStreamTrackSourcesCallback> m_callback; | 59 OwnPtr<MediaStreamTrackSourcesCallback> m_callback; |
| 58 String m_origin; | 60 String m_origin; |
| 59 Timer<MediaStreamTrackSourcesRequestImpl> m_scheduledEventTimer; | 61 Timer<MediaStreamTrackSourcesRequestImpl> m_scheduledEventTimer; |
| 60 SourceInfoVector m_sourceInfos; | 62 SourceInfoVector m_sourceInfos; |
| 61 RefPtr<MediaStreamTrackSourcesRequest> m_protect; | 63 RefPtrWillBeMember<MediaStreamTrackSourcesRequest> m_protect; |
| 62 }; | 64 }; |
| 63 | 65 |
| 64 } // namespace WebCore | 66 } // namespace WebCore |
| 65 | 67 |
| 66 #endif // MediaStreamTrackSourcesRequestImpl_h | 68 #endif // MediaStreamTrackSourcesRequestImpl_h |
| OLD | NEW |