| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 public: | 46 public: |
| 47 static std::unique_ptr<UserMediaClientImpl> create( | 47 static std::unique_ptr<UserMediaClientImpl> create( |
| 48 WebUserMediaClient* client) { | 48 WebUserMediaClient* client) { |
| 49 return wrapUnique(new UserMediaClientImpl(client)); | 49 return wrapUnique(new UserMediaClientImpl(client)); |
| 50 } | 50 } |
| 51 | 51 |
| 52 // UserMediaClient ---------------------------------------------- | 52 // UserMediaClient ---------------------------------------------- |
| 53 void requestUserMedia(UserMediaRequest*) override; | 53 void requestUserMedia(UserMediaRequest*) override; |
| 54 void cancelUserMediaRequest(UserMediaRequest*) override; | 54 void cancelUserMediaRequest(UserMediaRequest*) override; |
| 55 void requestMediaDevices(MediaDevicesRequest*) override; | 55 void requestMediaDevices(MediaDevicesRequest*) override; |
| 56 void requestSources(MediaStreamTrackSourcesRequest*) override; | |
| 57 void setMediaDeviceChangeObserver(MediaDevices*) override; | 56 void setMediaDeviceChangeObserver(MediaDevices*) override; |
| 58 | 57 |
| 59 private: | 58 private: |
| 60 explicit UserMediaClientImpl(WebUserMediaClient*); | 59 explicit UserMediaClientImpl(WebUserMediaClient*); |
| 61 | 60 |
| 62 WebUserMediaClient* m_client; | 61 WebUserMediaClient* m_client; |
| 63 }; | 62 }; |
| 64 | 63 |
| 65 } // namespace blink | 64 } // namespace blink |
| 66 | 65 |
| 67 #endif // UserMediaClientImpl_h | 66 #endif // UserMediaClientImpl_h |
| OLD | NEW |