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

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

Issue 1171503003: Not for submission. Keeping media log events (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Compiles now Created 5 years, 6 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
« no previous file with comments | « no previous file | content/browser/media/media_internals.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 27 matching lines...) Expand all
38 ~MediaInternals() override; 38 ~MediaInternals() override;
39 39
40 // Called when a MediaEvent occurs. 40 // Called when a MediaEvent occurs.
41 void OnMediaEvents(int render_process_id, 41 void OnMediaEvents(int render_process_id,
42 const std::vector<media::MediaLogEvent>& events); 42 const std::vector<media::MediaLogEvent>& events);
43 43
44 // Add/remove update callbacks (see above). Must be called on the IO thread. 44 // Add/remove update callbacks (see above). Must be called on the IO thread.
45 void AddUpdateCallback(const UpdateCallback& callback); 45 void AddUpdateCallback(const UpdateCallback& callback);
46 void RemoveUpdateCallback(const UpdateCallback& callback); 46 void RemoveUpdateCallback(const UpdateCallback& callback);
47 47
48 // Replay all saved media events for alive renderers.
49 void SendHistoricalMediaEvents();
50
48 // Sends all audio cached data to each registered UpdateCallback. 51 // Sends all audio cached data to each registered UpdateCallback.
49 void SendAudioStreamData(); 52 void SendAudioStreamData();
50 53
51 // Sends all video capture capabilities cached data to each registered 54 // Sends all video capture capabilities cached data to each registered
52 // UpdateCallback. 55 // UpdateCallback.
53 void SendVideoCaptureDeviceCapabilities(); 56 void SendVideoCaptureDeviceCapabilities();
54 57
55 // Called to inform of the capabilities enumerated for video devices. 58 // Called to inform of the capabilities enumerated for video devices.
56 void UpdateVideoCaptureDeviceCapabilities( 59 void UpdateVideoCaptureDeviceCapabilities(
57 const media::VideoCaptureDeviceInfos& video_capture_device_infos); 60 const media::VideoCaptureDeviceInfos& video_capture_device_infos);
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 base::DictionaryValue audio_streams_cached_data_; 107 base::DictionaryValue audio_streams_cached_data_;
105 int owner_ids_[AUDIO_COMPONENT_MAX]; 108 int owner_ids_[AUDIO_COMPONENT_MAX];
106 scoped_ptr<MediaInternalsUMAHandler> uma_handler_; 109 scoped_ptr<MediaInternalsUMAHandler> uma_handler_;
107 110
108 DISALLOW_COPY_AND_ASSIGN(MediaInternals); 111 DISALLOW_COPY_AND_ASSIGN(MediaInternals);
109 }; 112 };
110 113
111 } // namespace content 114 } // namespace content
112 115
113 #endif // CONTENT_BROWSER_MEDIA_MEDIA_INTERNALS_H_ 116 #endif // CONTENT_BROWSER_MEDIA_MEDIA_INTERNALS_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/media/media_internals.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698