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

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

Issue 10837118: Dead code elimination: scythe.chrome_functions:segment.path %media% edition, round 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 4 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 18 matching lines...) Expand all
29 // MediaStreamRequester implementation. 29 // MediaStreamRequester implementation.
30 virtual void StreamGenerated( 30 virtual void StreamGenerated(
31 const std::string& label, 31 const std::string& label,
32 const StreamDeviceInfoArray& audio_devices, 32 const StreamDeviceInfoArray& audio_devices,
33 const StreamDeviceInfoArray& video_devices) OVERRIDE; 33 const StreamDeviceInfoArray& video_devices) OVERRIDE;
34 virtual void StreamGenerationFailed(const std::string& label) OVERRIDE; 34 virtual void StreamGenerationFailed(const std::string& label) OVERRIDE;
35 virtual void AudioDeviceFailed(const std::string& label, int index) OVERRIDE; 35 virtual void AudioDeviceFailed(const std::string& label, int index) OVERRIDE;
36 virtual void VideoDeviceFailed(const std::string& label, int index) OVERRIDE; 36 virtual void VideoDeviceFailed(const std::string& label, int index) OVERRIDE;
37 virtual void DevicesEnumerated(const std::string& label, 37 virtual void DevicesEnumerated(const std::string& label,
38 const StreamDeviceInfoArray& devices) OVERRIDE; 38 const StreamDeviceInfoArray& devices) OVERRIDE;
39 virtual void DevicesEnumerationFailed(const std::string& label) OVERRIDE;
40 virtual void DeviceOpened(const std::string& label, 39 virtual void DeviceOpened(const std::string& label,
41 const StreamDeviceInfo& video_device) OVERRIDE; 40 const StreamDeviceInfo& video_device) OVERRIDE;
42 virtual void DeviceOpenFailed(const std::string& label) OVERRIDE;
43 41
44 // content::BrowserMessageFilter implementation. 42 // content::BrowserMessageFilter implementation.
45 virtual bool OnMessageReceived(const IPC::Message& message, 43 virtual bool OnMessageReceived(const IPC::Message& message,
46 bool* message_was_ok) OVERRIDE; 44 bool* message_was_ok) OVERRIDE;
47 virtual void OnChannelClosing() OVERRIDE; 45 virtual void OnChannelClosing() OVERRIDE;
48 46
49 protected: 47 protected:
50 virtual ~MediaStreamDispatcherHost(); 48 virtual ~MediaStreamDispatcherHost();
51 49
52 private: 50 private:
(...skipping 29 matching lines...) Expand all
82 typedef std::map<std::string, StreamRequest> StreamMap; 80 typedef std::map<std::string, StreamRequest> StreamMap;
83 // Streams generated for this host. 81 // Streams generated for this host.
84 StreamMap streams_; 82 StreamMap streams_;
85 83
86 DISALLOW_COPY_AND_ASSIGN(MediaStreamDispatcherHost); 84 DISALLOW_COPY_AND_ASSIGN(MediaStreamDispatcherHost);
87 }; 85 };
88 86
89 } // namespace media_stream 87 } // namespace media_stream
90 88
91 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_MEDIA_STREAM_DISPATCHER_HOST_H_ 89 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_MEDIA_STREAM_DISPATCHER_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698