OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2014 Google Inc. All rights reserved. | 2 * Copyright (C) 2014 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 10 matching lines...) Expand all Loading... |
21 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 21 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
24 */ | 24 */ |
25 | 25 |
26 #include "public/web/WebMediaDevicesRequest.h" | 26 #include "public/web/WebMediaDevicesRequest.h" |
27 | 27 |
28 #include "core/dom/Document.h" | 28 #include "core/dom/Document.h" |
29 #include "modules/mediastream/MediaDevicesRequest.h" | 29 #include "modules/mediastream/MediaDevicesRequest.h" |
30 #include "platform/weborigin/SecurityOrigin.h" | 30 #include "platform/weborigin/SecurityOrigin.h" |
| 31 #include "platform/wtf/Vector.h" |
31 #include "public/platform/WebMediaDeviceInfo.h" | 32 #include "public/platform/WebMediaDeviceInfo.h" |
32 #include "public/platform/WebSecurityOrigin.h" | 33 #include "public/platform/WebSecurityOrigin.h" |
33 #include "public/platform/WebString.h" | 34 #include "public/platform/WebString.h" |
34 #include "public/platform/WebVector.h" | 35 #include "public/platform/WebVector.h" |
35 #include "public/web/WebDocument.h" | 36 #include "public/web/WebDocument.h" |
36 #include "wtf/Vector.h" | |
37 | 37 |
38 namespace blink { | 38 namespace blink { |
39 | 39 |
40 WebMediaDevicesRequest::WebMediaDevicesRequest(MediaDevicesRequest* request) | 40 WebMediaDevicesRequest::WebMediaDevicesRequest(MediaDevicesRequest* request) |
41 : m_private(request) {} | 41 : m_private(request) {} |
42 | 42 |
43 void WebMediaDevicesRequest::reset() { | 43 void WebMediaDevicesRequest::reset() { |
44 m_private.reset(); | 44 m_private.reset(); |
45 } | 45 } |
46 | 46 |
(...skipping 28 matching lines...) Expand all Loading... |
75 | 75 |
76 void WebMediaDevicesRequest::assign(const WebMediaDevicesRequest& other) { | 76 void WebMediaDevicesRequest::assign(const WebMediaDevicesRequest& other) { |
77 m_private = other.m_private; | 77 m_private = other.m_private; |
78 } | 78 } |
79 | 79 |
80 WebMediaDevicesRequest::operator MediaDevicesRequest*() const { | 80 WebMediaDevicesRequest::operator MediaDevicesRequest*() const { |
81 return m_private.get(); | 81 return m_private.get(); |
82 } | 82 } |
83 | 83 |
84 } // namespace blink | 84 } // namespace blink |
OLD | NEW |