Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(85)

Side by Side Diff: content/browser/renderer_host/media/media_stream_dispatcher_host.h

Issue 10912004: Begin adding support for tab mirroring via the MediaStream audio/video capturing (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: AudioManager injection into MediaStreamManager, consistent enum naming; per wjia@ comments. Also, … Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 protected: 47 protected:
48 virtual ~MediaStreamDispatcherHost(); 48 virtual ~MediaStreamDispatcherHost();
49 49
50 private: 50 private:
51 friend class MockMediaStreamDispatcherHost; 51 friend class MockMediaStreamDispatcherHost;
52 52
53 void OnGenerateStream(int render_view_id, 53 void OnGenerateStream(int render_view_id,
54 int page_request_id, 54 int page_request_id,
55 const StreamOptions& components, 55 const StreamOptions& components,
56 const GURL& security_origin); 56 const GURL& security_origin);
57 void OnGenerateStreamForDevice(int render_view_id,
58 int page_request_id,
59 const StreamOptions& components,
60 const std::string& device_id,
61 const GURL& security_origin);
57 void OnCancelGenerateStream(int render_view_id, 62 void OnCancelGenerateStream(int render_view_id,
58 int page_request_id); 63 int page_request_id);
59 void OnStopGeneratedStream(int render_view_id, const std::string& label); 64 void OnStopGeneratedStream(int render_view_id, const std::string& label);
60 65
61 void OnEnumerateDevices(int render_view_id, 66 void OnEnumerateDevices(int render_view_id,
62 int page_request_id, 67 int page_request_id,
63 media_stream::MediaStreamType type, 68 media_stream::MediaStreamType type,
64 const GURL& security_origin); 69 const GURL& security_origin);
65 70
66 void OnOpenDevice(int render_view_id, 71 void OnOpenDevice(int render_view_id,
(...skipping 13 matching lines...) Expand all
80 typedef std::map<std::string, StreamRequest> StreamMap; 85 typedef std::map<std::string, StreamRequest> StreamMap;
81 // Streams generated for this host. 86 // Streams generated for this host.
82 StreamMap streams_; 87 StreamMap streams_;
83 88
84 DISALLOW_COPY_AND_ASSIGN(MediaStreamDispatcherHost); 89 DISALLOW_COPY_AND_ASSIGN(MediaStreamDispatcherHost);
85 }; 90 };
86 91
87 } // namespace media_stream 92 } // namespace media_stream
88 93
89 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_MEDIA_STREAM_DISPATCHER_HOST_H_ 94 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_MEDIA_STREAM_DISPATCHER_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698