| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_PUBLIC_COMMON_MEDIA_STREAM_REQUEST_H_ | 5 #ifndef CONTENT_PUBLIC_COMMON_MEDIA_STREAM_REQUEST_H_ |
| 6 #define CONTENT_PUBLIC_COMMON_MEDIA_STREAM_REQUEST_H_ | 6 #define CONTENT_PUBLIC_COMMON_MEDIA_STREAM_REQUEST_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 259 // 0 if not applicable. | 259 // 0 if not applicable. |
| 260 virtual gfx::NativeViewId OnStarted(const base::Closure& stop) = 0; | 260 virtual gfx::NativeViewId OnStarted(const base::Closure& stop) = 0; |
| 261 }; | 261 }; |
| 262 | 262 |
| 263 // Callback used return results of media access requests. | 263 // Callback used return results of media access requests. |
| 264 typedef base::Callback<void( | 264 typedef base::Callback<void( |
| 265 const MediaStreamDevices& devices, | 265 const MediaStreamDevices& devices, |
| 266 content::MediaStreamRequestResult result, | 266 content::MediaStreamRequestResult result, |
| 267 scoped_ptr<MediaStreamUI> ui)> MediaResponseCallback; | 267 scoped_ptr<MediaStreamUI> ui)> MediaResponseCallback; |
| 268 | 268 |
| 269 // Callback used return result of checking media access. |
| 270 typedef base::Callback<void(bool result)> MediaAccessResponseCallback; |
| 271 |
| 269 } // namespace content | 272 } // namespace content |
| 270 | 273 |
| 271 #endif // CONTENT_PUBLIC_COMMON_MEDIA_STREAM_REQUEST_H_ | 274 #endif // CONTENT_PUBLIC_COMMON_MEDIA_STREAM_REQUEST_H_ |
| OLD | NEW |