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

Unified Diff: media/capture/video/mac/video_capture_device_mac.h

Issue 1418263006: Extend VideoCaptureDevice::Client::OnError() to have a tracked_objects::Location param. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
Index: media/capture/video/mac/video_capture_device_mac.h
diff --git a/media/capture/video/mac/video_capture_device_mac.h b/media/capture/video/mac/video_capture_device_mac.h
index c36248eb29323ef0837fc59b30788ad7e1080ca0..1b91c8731c84c1d552f389c8ba415f2f45d66db8 100644
--- a/media/capture/video/mac/video_capture_device_mac.h
+++ b/media/capture/video/mac/video_capture_device_mac.h
@@ -27,6 +27,10 @@ namespace base {
class SingleThreadTaskRunner;
}
+namespace tracked_objects {
+class Location;
+} // namespace tracked_objects
+
// Small class to bundle device name and connection type into a dictionary.
MEDIA_EXPORT
@interface DeviceNameAndTransportType : NSObject {
@@ -73,13 +77,15 @@ class VideoCaptureDeviceMac : public VideoCaptureDevice {
int aspect_denominator);
// Forwarder to VideoCaptureDevice::Client::OnError().
- void ReceiveError(const std::string& reason);
+ void ReceiveError(const tracked_objects::Location& from_here,
+ const std::string& reason);
// Forwarder to VideoCaptureDevice::Client::OnLog().
void LogMessage(const std::string& message);
private:
- void SetErrorState(const std::string& reason);
+ void SetErrorState(const tracked_objects::Location& from_here,
+ const std::string& reason);
bool UpdateCaptureResolution();
// Flag indicating the internal state.

Powered by Google App Engine
This is Rietveld 408576698