OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 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 11 matching lines...) Expand all Loading... |
22 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 22 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
23 */ | 23 */ |
24 | 24 |
25 #ifndef UserMediaController_h | 25 #ifndef UserMediaController_h |
26 #define UserMediaController_h | 26 #define UserMediaController_h |
27 | 27 |
28 #include "core/frame/LocalFrame.h" | 28 #include "core/frame/LocalFrame.h" |
29 #include "modules/mediastream/UserMediaClient.h" | 29 #include "modules/mediastream/UserMediaClient.h" |
30 #include "wtf/PassOwnPtr.h" | 30 #include "wtf/PassOwnPtr.h" |
31 | 31 |
32 namespace WebCore { | 32 namespace blink { |
33 | 33 |
34 class MediaDevicesRequest; | 34 class MediaDevicesRequest; |
35 class UserMediaRequest; | 35 class UserMediaRequest; |
36 | 36 |
37 class UserMediaController FINAL : public NoBaseWillBeGarbageCollected<UserMediaC
ontroller>, public WillBeHeapSupplement<LocalFrame> { | 37 class UserMediaController FINAL : public NoBaseWillBeGarbageCollected<UserMediaC
ontroller>, public WillBeHeapSupplement<LocalFrame> { |
38 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(UserMediaController); | 38 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(UserMediaController); |
39 DECLARE_EMPTY_VIRTUAL_DESTRUCTOR_WILL_BE_REMOVED(UserMediaController); | 39 DECLARE_EMPTY_VIRTUAL_DESTRUCTOR_WILL_BE_REMOVED(UserMediaController); |
40 public: | 40 public: |
41 | 41 |
42 UserMediaClient* client() const { return m_client; } | 42 UserMediaClient* client() const { return m_client; } |
(...skipping 30 matching lines...) Expand all Loading... |
73 inline void UserMediaController::requestMediaDevices(MediaDevicesRequest* reques
t) | 73 inline void UserMediaController::requestMediaDevices(MediaDevicesRequest* reques
t) |
74 { | 74 { |
75 m_client->requestMediaDevices(request); | 75 m_client->requestMediaDevices(request); |
76 } | 76 } |
77 | 77 |
78 inline void UserMediaController::cancelMediaDevicesRequest(MediaDevicesRequest*
request) | 78 inline void UserMediaController::cancelMediaDevicesRequest(MediaDevicesRequest*
request) |
79 { | 79 { |
80 m_client->cancelMediaDevicesRequest(request); | 80 m_client->cancelMediaDevicesRequest(request); |
81 } | 81 } |
82 | 82 |
83 } // namespace WebCore | 83 } // namespace blink |
84 | 84 |
85 #endif // UserMediaController_h | 85 #endif // UserMediaController_h |
OLD | NEW |