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 #include "modules/mediastream/MediaStreamTrackSourcesRequestImpl.h" | 27 #include "modules/mediastream/MediaStreamTrackSourcesRequestImpl.h" |
28 | 28 |
29 #include "core/dom/CrossThreadTask.h" | 29 #include "core/dom/CrossThreadTask.h" |
30 #include "core/dom/ExecutionContext.h" | 30 #include "core/dom/ExecutionContext.h" |
31 #include "modules/mediastream/MediaStreamTrackSourcesCallback.h" | 31 #include "modules/mediastream/MediaStreamTrackSourcesCallback.h" |
32 #include "platform/weborigin/SecurityOrigin.h" | 32 #include "platform/weborigin/SecurityOrigin.h" |
33 #include "public/platform/WebSourceInfo.h" | 33 #include "public/platform/WebSourceInfo.h" |
34 #include "wtf/Functional.h" | 34 #include "wtf/Functional.h" |
35 #include "wtf/PassOwnPtr.h" | 35 #include "wtf/PassOwnPtr.h" |
36 | 36 |
37 namespace WebCore { | 37 namespace blink { |
38 | 38 |
39 MediaStreamTrackSourcesRequestImpl* MediaStreamTrackSourcesRequestImpl::create(E
xecutionContext& context, PassOwnPtr<MediaStreamTrackSourcesCallback> callback) | 39 MediaStreamTrackSourcesRequestImpl* MediaStreamTrackSourcesRequestImpl::create(E
xecutionContext& context, PassOwnPtr<MediaStreamTrackSourcesCallback> callback) |
40 { | 40 { |
41 return new MediaStreamTrackSourcesRequestImpl(context, callback); | 41 return new MediaStreamTrackSourcesRequestImpl(context, callback); |
42 } | 42 } |
43 | 43 |
44 MediaStreamTrackSourcesRequestImpl::MediaStreamTrackSourcesRequestImpl(Execution
Context& context, PassOwnPtr<MediaStreamTrackSourcesCallback> callback) | 44 MediaStreamTrackSourcesRequestImpl::MediaStreamTrackSourcesRequestImpl(Execution
Context& context, PassOwnPtr<MediaStreamTrackSourcesCallback> callback) |
45 : m_callback(callback) | 45 : m_callback(callback) |
46 , m_executionContext(&context) | 46 , m_executionContext(&context) |
47 { | 47 { |
(...skipping 23 matching lines...) Expand all Loading... |
71 m_callback.clear(); | 71 m_callback.clear(); |
72 } | 72 } |
73 | 73 |
74 void MediaStreamTrackSourcesRequestImpl::trace(Visitor* visitor) | 74 void MediaStreamTrackSourcesRequestImpl::trace(Visitor* visitor) |
75 { | 75 { |
76 visitor->trace(m_executionContext); | 76 visitor->trace(m_executionContext); |
77 visitor->trace(m_sourceInfos); | 77 visitor->trace(m_sourceInfos); |
78 MediaStreamTrackSourcesRequest::trace(visitor); | 78 MediaStreamTrackSourcesRequest::trace(visitor); |
79 } | 79 } |
80 | 80 |
81 } // namespace WebCore | 81 } // namespace blink |
OLD | NEW |