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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 | 58 |
59 void start(); | 59 void start(); |
60 | 60 |
61 void succeed(PassRefPtr<MediaStreamDescriptor>); | 61 void succeed(PassRefPtr<MediaStreamDescriptor>); |
62 void failPermissionDenied(const String& message); | 62 void failPermissionDenied(const String& message); |
63 void failConstraint(const String& constraintName, const String& message); | 63 void failConstraint(const String& constraintName, const String& message); |
64 void failUASpecific(const String& name, const String& message, const String&
constraintName); | 64 void failUASpecific(const String& name, const String& message, const String&
constraintName); |
65 | 65 |
66 bool audio() const; | 66 bool audio() const; |
67 bool video() const; | 67 bool video() const; |
68 blink::WebMediaConstraints audioConstraints() const; | 68 WebMediaConstraints audioConstraints() const; |
69 blink::WebMediaConstraints videoConstraints() const; | 69 WebMediaConstraints videoConstraints() const; |
70 | 70 |
71 // ContextLifecycleObserver | 71 // ContextLifecycleObserver |
72 virtual void contextDestroyed() OVERRIDE; | 72 virtual void contextDestroyed() OVERRIDE; |
73 | 73 |
74 void trace(Visitor*) { } | 74 void trace(Visitor*) { } |
75 | 75 |
76 private: | 76 private: |
77 UserMediaRequest(ExecutionContext*, UserMediaController*, blink::WebMediaCon
straints audio, blink::WebMediaConstraints video, PassOwnPtr<NavigatorUserMediaS
uccessCallback>, PassOwnPtr<NavigatorUserMediaErrorCallback>); | 77 UserMediaRequest(ExecutionContext*, UserMediaController*, WebMediaConstraint
s audio, WebMediaConstraints video, PassOwnPtr<NavigatorUserMediaSuccessCallback
>, PassOwnPtr<NavigatorUserMediaErrorCallback>); |
78 | 78 |
79 blink::WebMediaConstraints m_audio; | 79 WebMediaConstraints m_audio; |
80 blink::WebMediaConstraints m_video; | 80 WebMediaConstraints m_video; |
81 | 81 |
82 UserMediaController* m_controller; | 82 UserMediaController* m_controller; |
83 | 83 |
84 OwnPtr<NavigatorUserMediaSuccessCallback> m_successCallback; | 84 OwnPtr<NavigatorUserMediaSuccessCallback> m_successCallback; |
85 OwnPtr<NavigatorUserMediaErrorCallback> m_errorCallback; | 85 OwnPtr<NavigatorUserMediaErrorCallback> m_errorCallback; |
86 }; | 86 }; |
87 | 87 |
88 } // namespace blink | 88 } // namespace blink |
89 | 89 |
90 #endif // UserMediaRequest_h | 90 #endif // UserMediaRequest_h |
OLD | NEW |