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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 virtual void DevicesEnumerated(int render_view_id, | 48 virtual void DevicesEnumerated(int render_view_id, |
49 int page_request_id, | 49 int page_request_id, |
50 const std::string& label, | 50 const std::string& label, |
51 const StreamDeviceInfoArray& devices) OVERRIDE; | 51 const StreamDeviceInfoArray& devices) OVERRIDE; |
52 virtual void DeviceOpened(int render_view_id, | 52 virtual void DeviceOpened(int render_view_id, |
53 int page_request_id, | 53 int page_request_id, |
54 const std::string& label, | 54 const std::string& label, |
55 const StreamDeviceInfo& video_device) OVERRIDE; | 55 const StreamDeviceInfo& video_device) OVERRIDE; |
56 | 56 |
57 // BrowserMessageFilter implementation. | 57 // BrowserMessageFilter implementation. |
58 virtual bool OnMessageReceived(const IPC::Message& message, | 58 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
59 bool* message_was_ok) OVERRIDE; | |
60 virtual void OnChannelClosing() OVERRIDE; | 59 virtual void OnChannelClosing() OVERRIDE; |
61 | 60 |
62 protected: | 61 protected: |
63 virtual ~MediaStreamDispatcherHost(); | 62 virtual ~MediaStreamDispatcherHost(); |
64 | 63 |
65 private: | 64 private: |
66 friend class MockMediaStreamDispatcherHost; | 65 friend class MockMediaStreamDispatcherHost; |
67 | 66 |
68 void OnGenerateStream(int render_view_id, | 67 void OnGenerateStream(int render_view_id, |
69 int page_request_id, | 68 int page_request_id, |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 int render_process_id_; | 100 int render_process_id_; |
102 ResourceContext::SaltCallback salt_callback_; | 101 ResourceContext::SaltCallback salt_callback_; |
103 MediaStreamManager* media_stream_manager_; | 102 MediaStreamManager* media_stream_manager_; |
104 | 103 |
105 DISALLOW_COPY_AND_ASSIGN(MediaStreamDispatcherHost); | 104 DISALLOW_COPY_AND_ASSIGN(MediaStreamDispatcherHost); |
106 }; | 105 }; |
107 | 106 |
108 } // namespace content | 107 } // namespace content |
109 | 108 |
110 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_MEDIA_STREAM_DISPATCHER_HOST_H_ | 109 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_MEDIA_STREAM_DISPATCHER_HOST_H_ |
OLD | NEW |