| 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 bool audio() const; | 83 bool audio() const; |
| 84 bool video() const; | 84 bool video() const; |
| 85 WebMediaConstraints audioConstraints() const; | 85 WebMediaConstraints audioConstraints() const; |
| 86 WebMediaConstraints videoConstraints() const; | 86 WebMediaConstraints videoConstraints() const; |
| 87 | 87 |
| 88 // errorMessage is only set if requestIsPrivilegedContext() returns |false|. | 88 // errorMessage is only set if requestIsPrivilegedContext() returns |false|. |
| 89 // Caller is responsible for properly setting errors and canceling request. | 89 // Caller is responsible for properly setting errors and canceling request. |
| 90 bool isSecureContextUse(String& errorMessage); | 90 bool isSecureContextUse(String& errorMessage); |
| 91 | 91 |
| 92 // ContextLifecycleObserver | 92 // ContextLifecycleObserver |
| 93 void contextDestroyed() override; | 93 void contextDestroyed(ExecutionContext*) override; |
| 94 | 94 |
| 95 DECLARE_VIRTUAL_TRACE(); | 95 DECLARE_VIRTUAL_TRACE(); |
| 96 | 96 |
| 97 private: | 97 private: |
| 98 UserMediaRequest(ExecutionContext*, | 98 UserMediaRequest(ExecutionContext*, |
| 99 UserMediaController*, | 99 UserMediaController*, |
| 100 WebMediaConstraints audio, | 100 WebMediaConstraints audio, |
| 101 WebMediaConstraints video, | 101 WebMediaConstraints video, |
| 102 NavigatorUserMediaSuccessCallback*, | 102 NavigatorUserMediaSuccessCallback*, |
| 103 NavigatorUserMediaErrorCallback*); | 103 NavigatorUserMediaErrorCallback*); |
| 104 | 104 |
| 105 WebMediaConstraints m_audio; | 105 WebMediaConstraints m_audio; |
| 106 WebMediaConstraints m_video; | 106 WebMediaConstraints m_video; |
| 107 | 107 |
| 108 Member<UserMediaController> m_controller; | 108 Member<UserMediaController> m_controller; |
| 109 | 109 |
| 110 Member<NavigatorUserMediaSuccessCallback> m_successCallback; | 110 Member<NavigatorUserMediaSuccessCallback> m_successCallback; |
| 111 Member<NavigatorUserMediaErrorCallback> m_errorCallback; | 111 Member<NavigatorUserMediaErrorCallback> m_errorCallback; |
| 112 }; | 112 }; |
| 113 | 113 |
| 114 } // namespace blink | 114 } // namespace blink |
| 115 | 115 |
| 116 #endif // UserMediaRequest_h | 116 #endif // UserMediaRequest_h |
| OLD | NEW |