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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 int page_request_id, | 51 int page_request_id, |
52 const std::string& label, | 52 const std::string& label, |
53 const StreamDeviceInfoArray& devices) OVERRIDE; | 53 const StreamDeviceInfoArray& devices) OVERRIDE; |
54 virtual void DeviceOpened(int render_view_id, | 54 virtual void DeviceOpened(int render_view_id, |
55 int page_request_id, | 55 int page_request_id, |
56 const std::string& label, | 56 const std::string& label, |
57 const StreamDeviceInfo& video_device) OVERRIDE; | 57 const StreamDeviceInfo& video_device) OVERRIDE; |
58 | 58 |
59 // BrowserMessageFilter implementation. | 59 // BrowserMessageFilter implementation. |
60 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 60 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
61 virtual void OnChannelClosing() OVERRIDE; | 61 virtual void OnSenderClosing() OVERRIDE; |
62 | 62 |
63 protected: | 63 protected: |
64 virtual ~MediaStreamDispatcherHost(); | 64 virtual ~MediaStreamDispatcherHost(); |
65 | 65 |
66 private: | 66 private: |
67 friend class MockMediaStreamDispatcherHost; | 67 friend class MockMediaStreamDispatcherHost; |
68 | 68 |
69 void OnGenerateStream(int render_view_id, | 69 void OnGenerateStream(int render_view_id, |
70 int page_request_id, | 70 int page_request_id, |
71 const StreamOptions& components, | 71 const StreamOptions& components, |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 | 105 |
106 // Owned by ProfileIOData which is guaranteed to outlive MSDH. | 106 // Owned by ProfileIOData which is guaranteed to outlive MSDH. |
107 ResourceContext* const resource_context_; | 107 ResourceContext* const resource_context_; |
108 | 108 |
109 DISALLOW_COPY_AND_ASSIGN(MediaStreamDispatcherHost); | 109 DISALLOW_COPY_AND_ASSIGN(MediaStreamDispatcherHost); |
110 }; | 110 }; |
111 | 111 |
112 } // namespace content | 112 } // namespace content |
113 | 113 |
114 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_MEDIA_STREAM_DISPATCHER_HOST_H_ | 114 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_MEDIA_STREAM_DISPATCHER_HOST_H_ |
OLD | NEW |