OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef WebMediaDeviceChangeObserver_h | 5 #ifndef WebMediaDeviceChangeObserver_h |
6 #define WebMediaDeviceChangeObserver_h | 6 #define WebMediaDeviceChangeObserver_h |
7 | 7 |
8 #include "public/platform/WebPrivatePtr.h" | 8 #include "public/platform/WebPrivatePtr.h" |
9 | 9 |
10 namespace blink { | 10 namespace blink { |
(...skipping 10 matching lines...) Expand all Loading... |
21 BLINK_EXPORT WebMediaDeviceChangeObserver& operator=( | 21 BLINK_EXPORT WebMediaDeviceChangeObserver& operator=( |
22 const WebMediaDeviceChangeObserver&); | 22 const WebMediaDeviceChangeObserver&); |
23 BLINK_EXPORT ~WebMediaDeviceChangeObserver(); | 23 BLINK_EXPORT ~WebMediaDeviceChangeObserver(); |
24 | 24 |
25 // Notify that the set of media devices has changed. | 25 // Notify that the set of media devices has changed. |
26 BLINK_EXPORT void DidChangeMediaDevices(); | 26 BLINK_EXPORT void DidChangeMediaDevices(); |
27 BLINK_EXPORT bool IsNull() const; | 27 BLINK_EXPORT bool IsNull() const; |
28 BLINK_EXPORT WebSecurityOrigin GetSecurityOrigin() const; | 28 BLINK_EXPORT WebSecurityOrigin GetSecurityOrigin() const; |
29 | 29 |
30 #if INSIDE_BLINK | 30 #if INSIDE_BLINK |
31 explicit WebMediaDeviceChangeObserver(MediaDevices*); | 31 BLINK_EXPORT explicit WebMediaDeviceChangeObserver(MediaDevices*); |
32 #endif | 32 #endif |
33 private: | 33 private: |
34 void Assign(const WebMediaDeviceChangeObserver&); | 34 void Assign(const WebMediaDeviceChangeObserver&); |
35 void Reset(); | 35 void Reset(); |
36 WebPrivatePtr<MediaDevices> private_; | 36 WebPrivatePtr<MediaDevices> private_; |
37 }; | 37 }; |
38 | 38 |
39 } // namespace blink | 39 } // namespace blink |
40 | 40 |
41 #endif | 41 #endif |
OLD | NEW |