| 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 22 matching lines...) Expand all Loading... |
| 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 static PassOwnPtrWillBeRawPtr<UserMediaController> create(UserMediaClient*); | 41 static PassOwnPtrWillBeRawPtr<UserMediaController> create(UserMediaClient*); |
| 42 | 42 |
| 43 virtual void trace(Visitor*) override; |
| 44 |
| 43 UserMediaClient* client() const { return m_client; } | 45 UserMediaClient* client() const { return m_client; } |
| 44 | 46 |
| 45 void requestUserMedia(UserMediaRequest*); | 47 void requestUserMedia(UserMediaRequest*); |
| 46 void cancelUserMediaRequest(UserMediaRequest*); | 48 void cancelUserMediaRequest(UserMediaRequest*); |
| 47 | 49 |
| 48 void requestMediaDevices(MediaDevicesRequest*); | 50 void requestMediaDevices(MediaDevicesRequest*); |
| 49 void cancelMediaDevicesRequest(MediaDevicesRequest*); | 51 void cancelMediaDevicesRequest(MediaDevicesRequest*); |
| 50 | 52 |
| 51 void requestSources(MediaStreamTrackSourcesRequest*); | 53 void requestSources(MediaStreamTrackSourcesRequest*); |
| 52 | 54 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 80 } | 82 } |
| 81 | 83 |
| 82 inline void UserMediaController::requestSources(MediaStreamTrackSourcesRequest*
request) | 84 inline void UserMediaController::requestSources(MediaStreamTrackSourcesRequest*
request) |
| 83 { | 85 { |
| 84 m_client->requestSources(request); | 86 m_client->requestSources(request); |
| 85 } | 87 } |
| 86 | 88 |
| 87 } // namespace blink | 89 } // namespace blink |
| 88 | 90 |
| 89 #endif // UserMediaController_h | 91 #endif // UserMediaController_h |
| OLD | NEW |