| 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 18 matching lines...) Expand all Loading... |
| 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 blink { | 37 namespace blink { |
| 38 | 38 |
| 39 MediaStreamTrackSourcesRequestImpl* MediaStreamTrackSourcesRequestImpl::create(E
xecutionContext& context, PassOwnPtrWillBeRawPtr<MediaStreamTrackSourcesCallback
> callback) | 39 MediaStreamTrackSourcesRequestImpl* MediaStreamTrackSourcesRequestImpl::create(E
xecutionContext& context, 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, PassOwnPtrWillBeRawPtr<MediaStreamTrackSourcesCallback> callba
ck) | 44 MediaStreamTrackSourcesRequestImpl::MediaStreamTrackSourcesRequestImpl(Execution
Context& context, MediaStreamTrackSourcesCallback* callback) |
| 45 : m_callback(callback) | 45 : m_callback(callback) |
| 46 , m_executionContext(&context) | 46 , m_executionContext(&context) |
| 47 { | 47 { |
| 48 } | 48 } |
| 49 | 49 |
| 50 MediaStreamTrackSourcesRequestImpl::~MediaStreamTrackSourcesRequestImpl() | 50 MediaStreamTrackSourcesRequestImpl::~MediaStreamTrackSourcesRequestImpl() |
| 51 { | 51 { |
| 52 } | 52 } |
| 53 | 53 |
| 54 String MediaStreamTrackSourcesRequestImpl::origin() | 54 String MediaStreamTrackSourcesRequestImpl::origin() |
| (...skipping 18 matching lines...) Expand all Loading... |
| 73 | 73 |
| 74 void MediaStreamTrackSourcesRequestImpl::trace(Visitor* visitor) | 74 void MediaStreamTrackSourcesRequestImpl::trace(Visitor* visitor) |
| 75 { | 75 { |
| 76 visitor->trace(m_callback); | 76 visitor->trace(m_callback); |
| 77 visitor->trace(m_executionContext); | 77 visitor->trace(m_executionContext); |
| 78 visitor->trace(m_sourceInfos); | 78 visitor->trace(m_sourceInfos); |
| 79 MediaStreamTrackSourcesRequest::trace(visitor); | 79 MediaStreamTrackSourcesRequest::trace(visitor); |
| 80 } | 80 } |
| 81 | 81 |
| 82 } // namespace blink | 82 } // namespace blink |
| OLD | NEW |