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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 | 61 |
62 protected: | 62 protected: |
63 virtual ~MediaStreamDispatcherHost(); | 63 virtual ~MediaStreamDispatcherHost(); |
64 | 64 |
65 private: | 65 private: |
66 friend class MockMediaStreamDispatcherHost; | 66 friend class MockMediaStreamDispatcherHost; |
67 | 67 |
68 void OnGenerateStream(int render_view_id, | 68 void OnGenerateStream(int render_view_id, |
69 int page_request_id, | 69 int page_request_id, |
70 const StreamOptions& components, | 70 const StreamOptions& components, |
71 const GURL& security_origin); | 71 const GURL& security_origin, |
| 72 bool user_gesture); |
72 void OnCancelGenerateStream(int render_view_id, | 73 void OnCancelGenerateStream(int render_view_id, |
73 int page_request_id); | 74 int page_request_id); |
74 void OnStopStreamDevice(int render_view_id, | 75 void OnStopStreamDevice(int render_view_id, |
75 const std::string& device_id); | 76 const std::string& device_id); |
76 | 77 |
77 void OnEnumerateDevices(int render_view_id, | 78 void OnEnumerateDevices(int render_view_id, |
78 int page_request_id, | 79 int page_request_id, |
79 MediaStreamType type, | 80 MediaStreamType type, |
80 const GURL& security_origin); | 81 const GURL& security_origin); |
81 | 82 |
(...skipping 18 matching lines...) Expand all Loading... |
100 int render_process_id_; | 101 int render_process_id_; |
101 ResourceContext::SaltCallback salt_callback_; | 102 ResourceContext::SaltCallback salt_callback_; |
102 MediaStreamManager* media_stream_manager_; | 103 MediaStreamManager* media_stream_manager_; |
103 | 104 |
104 DISALLOW_COPY_AND_ASSIGN(MediaStreamDispatcherHost); | 105 DISALLOW_COPY_AND_ASSIGN(MediaStreamDispatcherHost); |
105 }; | 106 }; |
106 | 107 |
107 } // namespace content | 108 } // namespace content |
108 | 109 |
109 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_MEDIA_STREAM_DISPATCHER_HOST_H_ | 110 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_MEDIA_STREAM_DISPATCHER_HOST_H_ |
OLD | NEW |