| 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_BROWSER_RENDERER_HOST_MEDIA_MEDIA_STREAM_DISPATCHER_HOST_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_MEDIA_MEDIA_STREAM_DISPATCHER_HOST_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_MEDIA_STREAM_DISPATCHER_HOST_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_MEDIA_STREAM_DISPATCHER_HOST_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 | 59 |
| 60 protected: | 60 protected: |
| 61 virtual ~MediaStreamDispatcherHost(); | 61 virtual ~MediaStreamDispatcherHost(); |
| 62 | 62 |
| 63 private: | 63 private: |
| 64 friend class MockMediaStreamDispatcherHost; | 64 friend class MockMediaStreamDispatcherHost; |
| 65 | 65 |
| 66 void OnGenerateStream(int render_view_id, | 66 void OnGenerateStream(int render_view_id, |
| 67 int page_request_id, | 67 int page_request_id, |
| 68 const StreamOptions& components, | 68 const StreamOptions& components, |
| 69 const GURL& security_origin); | 69 const GURL& security_origin, |
| 70 bool user_gesture); |
| 70 void OnCancelGenerateStream(int render_view_id, | 71 void OnCancelGenerateStream(int render_view_id, |
| 71 int page_request_id); | 72 int page_request_id); |
| 72 void OnStopStreamDevice(int render_view_id, | 73 void OnStopStreamDevice(int render_view_id, |
| 73 const std::string& device_id); | 74 const std::string& device_id); |
| 74 | 75 |
| 75 void OnEnumerateDevices(int render_view_id, | 76 void OnEnumerateDevices(int render_view_id, |
| 76 int page_request_id, | 77 int page_request_id, |
| 77 MediaStreamType type, | 78 MediaStreamType type, |
| 78 const GURL& security_origin); | 79 const GURL& security_origin); |
| 79 | 80 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 96 int render_process_id_; | 97 int render_process_id_; |
| 97 ResourceContext::SaltCallback salt_callback_; | 98 ResourceContext::SaltCallback salt_callback_; |
| 98 MediaStreamManager* media_stream_manager_; | 99 MediaStreamManager* media_stream_manager_; |
| 99 | 100 |
| 100 DISALLOW_COPY_AND_ASSIGN(MediaStreamDispatcherHost); | 101 DISALLOW_COPY_AND_ASSIGN(MediaStreamDispatcherHost); |
| 101 }; | 102 }; |
| 102 | 103 |
| 103 } // namespace content | 104 } // namespace content |
| 104 | 105 |
| 105 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_MEDIA_STREAM_DISPATCHER_HOST_H_ | 106 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_MEDIA_STREAM_DISPATCHER_HOST_H_ |
| OLD | NEW |