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

Unified Diff: remoting/base/encoder.h

Issue 8493020: Move code in src/remoting to the new callbacks. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: - Created 9 years, 1 month 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
« no previous file with comments | « remoting/base/decoder_vp8.cc ('k') | remoting/base/encoder_row_based.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/base/encoder.h
diff --git a/remoting/base/encoder.h b/remoting/base/encoder.h
index 65b74a401797b472fa5d6deb6bbcc70d8d7209ce..d1f226a4c293a812734883adc3afe5abac6120c8 100644
--- a/remoting/base/encoder.h
+++ b/remoting/base/encoder.h
@@ -6,7 +6,7 @@
#define REMOTING_BASE_ENCODER_H_
#include "base/basictypes.h"
-#include "base/callback_old.h"
+#include "base/callback.h"
#include "media/base/data_buffer.h"
namespace media {
@@ -29,7 +29,7 @@ class Encoder {
// of HostMessage to reduce the amount of memory copies.
// The callback takes ownership of the HostMessage and is responsible for
// deleting it.
- typedef Callback1<VideoPacket*>::Type DataAvailableCallback;
+ typedef base::Callback<void(VideoPacket*)> DataAvailableCallback;
virtual ~Encoder() {}
@@ -42,7 +42,7 @@ class Encoder {
// is called.
virtual void Encode(scoped_refptr<CaptureData> capture_data,
bool key_frame,
- DataAvailableCallback* data_available_callback) = 0;
+ const DataAvailableCallback& data_available_callback) = 0;
};
} // namespace remoting
« no previous file with comments | « remoting/base/decoder_vp8.cc ('k') | remoting/base/encoder_row_based.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698