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

Side by Side Diff: content/browser/media/media_internals.h

Issue 643343004: Video Capture Capabilities available on chrome://media-internals (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
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_MEDIA_MEDIA_INTERNALS_H_ 5 #ifndef CONTENT_BROWSER_MEDIA_MEDIA_INTERNALS_H_
6 #define CONTENT_BROWSER_MEDIA_MEDIA_INTERNALS_H_ 6 #define CONTENT_BROWSER_MEDIA_MEDIA_INTERNALS_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 29 matching lines...) Expand all
40 void OnMediaEvents(int render_process_id, 40 void OnMediaEvents(int render_process_id,
41 const std::vector<media::MediaLogEvent>& events); 41 const std::vector<media::MediaLogEvent>& events);
42 42
43 // Add/remove update callbacks (see above). Must be called on the IO thread. 43 // Add/remove update callbacks (see above). Must be called on the IO thread.
44 void AddUpdateCallback(const UpdateCallback& callback); 44 void AddUpdateCallback(const UpdateCallback& callback);
45 void RemoveUpdateCallback(const UpdateCallback& callback); 45 void RemoveUpdateCallback(const UpdateCallback& callback);
46 46
47 // Sends all audio cached data to each registered UpdateCallback. 47 // Sends all audio cached data to each registered UpdateCallback.
48 void SendAudioStreamData(); 48 void SendAudioStreamData();
49 49
50 // TODO(burnik): Update comment.
mcasas 2014/10/14 13:44:11 TODO..
burnik 2014/10/15 13:45:57 Done. The comment seems ok to me. It's the same th
51 // Sends all video capture capabilities cached data to each registered
52 // UpdateCallback.
53 void SendVideoCaptureCapabilities();
54
50 // Called to inform of the capabilities enumerated for video devices. 55 // Called to inform of the capabilities enumerated for video devices.
51 void UpdateVideoCaptureDeviceCapabilities( 56 void UpdateVideoCaptureDeviceCapabilities(
52 const media::VideoCaptureDeviceInfos& video_capture_device_infos); 57 const media::VideoCaptureDeviceInfos& video_capture_device_infos);
53 58
54 // AudioLogFactory implementation. Safe to call from any thread. 59 // AudioLogFactory implementation. Safe to call from any thread.
55 virtual scoped_ptr<media::AudioLog> CreateAudioLog( 60 virtual scoped_ptr<media::AudioLog> CreateAudioLog(
56 AudioComponent component) override; 61 AudioComponent component) override;
57 62
58 private: 63 private:
59 friend class AudioLogImpl; 64 friend class AudioLogImpl;
(...skipping 16 matching lines...) Expand all
76 void SendUpdateAndPurgeAudioStreamCache(const std::string& cache_key, 81 void SendUpdateAndPurgeAudioStreamCache(const std::string& cache_key,
77 const std::string& function, 82 const std::string& function,
78 const base::DictionaryValue* value); 83 const base::DictionaryValue* value);
79 84
80 // Must only be accessed on the IO thread. 85 // Must only be accessed on the IO thread.
81 std::vector<UpdateCallback> update_callbacks_; 86 std::vector<UpdateCallback> update_callbacks_;
82 87
83 // All variables below must be accessed under |lock_|. 88 // All variables below must be accessed under |lock_|.
84 base::Lock lock_; 89 base::Lock lock_;
85 base::DictionaryValue audio_streams_cached_data_; 90 base::DictionaryValue audio_streams_cached_data_;
91 base::ListValue video_capture_capabilities_cached_data_;
86 int owner_ids_[AUDIO_COMPONENT_MAX]; 92 int owner_ids_[AUDIO_COMPONENT_MAX];
87 93
88 DISALLOW_COPY_AND_ASSIGN(MediaInternals); 94 DISALLOW_COPY_AND_ASSIGN(MediaInternals);
89 }; 95 };
90 96
91 } // namespace content 97 } // namespace content
92 98
93 #endif // CONTENT_BROWSER_MEDIA_MEDIA_INTERNALS_H_ 99 #endif // CONTENT_BROWSER_MEDIA_MEDIA_INTERNALS_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/media/media_internals.cc » ('j') | content/browser/media/media_internals.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698