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

Unified Diff: media/capture/video/video_capture_device.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/video_capture_device.h
diff --git a/media/capture/video/video_capture_device.h b/media/capture/video/video_capture_device.h
index ad0927d8becf7d35c159433ef270dd0f351e78dc..099cf2897a995fdd1e30e6e1a3c2669739b78ff0 100644
--- a/media/capture/video/video_capture_device.h
+++ b/media/capture/video/video_capture_device.h
@@ -26,6 +26,10 @@
#include "media/base/video_frame.h"
#include "ui/gfx/gpu_memory_buffer.h"
+namespace tracked_objects {
+class Location;
+} // namespace tracked_objects
+
namespace media {
class MEDIA_EXPORT VideoCaptureDevice {
@@ -250,7 +254,8 @@ class MEDIA_EXPORT VideoCaptureDevice {
// An error has occurred that cannot be handled and VideoCaptureDevice must
// be StopAndDeAllocate()-ed. |reason| is a text description of the error.
- virtual void OnError(const std::string& reason) = 0;
+ virtual void OnError(const tracked_objects::Location& from_here,
+ const std::string& reason) = 0;
// VideoCaptureDevice requests the |message| to be logged.
virtual void OnLog(const std::string& message) {}

Powered by Google App Engine
This is Rietveld 408576698