| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Ericsson AB. All rights reserved. | 2 * Copyright (C) 2011 Ericsson AB. 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 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 void failPermissionDenied(const String& message); | 64 void failPermissionDenied(const String& message); |
| 65 void failConstraint(const String& constraintName, const String& message); | 65 void failConstraint(const String& constraintName, const String& message); |
| 66 void failUASpecific(const String& name, const String& message, const String&
constraintName); | 66 void failUASpecific(const String& name, const String& message, const String&
constraintName); |
| 67 | 67 |
| 68 bool audio() const; | 68 bool audio() const; |
| 69 bool video() const; | 69 bool video() const; |
| 70 WebMediaConstraints audioConstraints() const; | 70 WebMediaConstraints audioConstraints() const; |
| 71 WebMediaConstraints videoConstraints() const; | 71 WebMediaConstraints videoConstraints() const; |
| 72 | 72 |
| 73 // ContextLifecycleObserver | 73 // ContextLifecycleObserver |
| 74 virtual void contextDestroyed() override; | 74 void contextDestroyed() override; |
| 75 | 75 |
| 76 DECLARE_VIRTUAL_TRACE(); | 76 DECLARE_VIRTUAL_TRACE(); |
| 77 | 77 |
| 78 private: | 78 private: |
| 79 UserMediaRequest(ExecutionContext*, UserMediaController*, WebMediaConstraint
s audio, WebMediaConstraints video, NavigatorUserMediaSuccessCallback*, Navigato
rUserMediaErrorCallback*); | 79 UserMediaRequest(ExecutionContext*, UserMediaController*, WebMediaConstraint
s audio, WebMediaConstraints video, NavigatorUserMediaSuccessCallback*, Navigato
rUserMediaErrorCallback*); |
| 80 | 80 |
| 81 WebMediaConstraints m_audio; | 81 WebMediaConstraints m_audio; |
| 82 WebMediaConstraints m_video; | 82 WebMediaConstraints m_video; |
| 83 | 83 |
| 84 RawPtrWillBeMember<UserMediaController> m_controller; | 84 RawPtrWillBeMember<UserMediaController> m_controller; |
| 85 | 85 |
| 86 Member<NavigatorUserMediaSuccessCallback> m_successCallback; | 86 Member<NavigatorUserMediaSuccessCallback> m_successCallback; |
| 87 Member<NavigatorUserMediaErrorCallback> m_errorCallback; | 87 Member<NavigatorUserMediaErrorCallback> m_errorCallback; |
| 88 }; | 88 }; |
| 89 | 89 |
| 90 } // namespace blink | 90 } // namespace blink |
| 91 | 91 |
| 92 #endif // UserMediaRequest_h | 92 #endif // UserMediaRequest_h |
| OLD | NEW |