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

Unified Diff: remoting/host/screen_recorder.h

Issue 6792038: Chromoting to report roundtrip latency (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add scriptable interface Created 9 years, 9 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: remoting/host/screen_recorder.h
diff --git a/remoting/host/screen_recorder.h b/remoting/host/screen_recorder.h
index 79eacc760ab48ca6d661150a320aea07ae14732e..5d1a39e3e1b2692c5c166f9334dc64e2f25fe771 100644
--- a/remoting/host/screen_recorder.h
+++ b/remoting/host/screen_recorder.h
@@ -11,7 +11,6 @@
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "base/message_loop.h"
-#include "base/scoped_ptr.h"
#include "base/time.h"
#include "base/timer.h"
#include "remoting/base/encoder.h"
@@ -104,6 +103,9 @@ class ScreenRecorder : public base::RefCountedThreadSafe<ScreenRecorder> {
// Remove all connections.
void RemoveAllConnections();
+ // Update the sequence number for tracing performance.
+ void UpdateSequenceNumber(int64 sequence_number);
+
private:
// Getters for capturer and encoder.
Capturer* capturer();
@@ -202,6 +204,9 @@ class ScreenRecorder : public base::RefCountedThreadSafe<ScreenRecorder> {
// Time when encode is started.
base::Time encode_start_time_;
+ // This is a number updated by client to trace performance.
+ int64 sequence_number_;
+
DISALLOW_COPY_AND_ASSIGN(ScreenRecorder);
};

Powered by Google App Engine
This is Rietveld 408576698