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

Unified Diff: remoting/host/capturer.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/client/rectangle_update_decoder.cc ('k') | remoting/host/capturer_fake.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/capturer.h
diff --git a/remoting/host/capturer.h b/remoting/host/capturer.h
index e29b7f58ff9fe29f9c6d53303b5b7b58f46ed97f..9039e04f41a5dfd6a173516b5a734fb6b1a06a50 100644
--- a/remoting/host/capturer.h
+++ b/remoting/host/capturer.h
@@ -6,7 +6,7 @@
#define REMOTING_HOST_CAPTURER_H_
#include "base/basictypes.h"
-#include "base/callback_old.h"
+#include "base/callback.h"
#include "remoting/base/capture_data.h"
#include "third_party/skia/include/core/SkRegion.h"
@@ -38,7 +38,8 @@ namespace remoting {
class Capturer {
public:
// CaptureCompletedCallback is called when the capturer has completed.
- typedef Callback1<scoped_refptr<CaptureData> >::Type CaptureCompletedCallback;
+ typedef base::Callback<void(scoped_refptr<CaptureData>)>
+ CaptureCompletedCallback;
virtual ~Capturer() {};
@@ -73,7 +74,8 @@ class Capturer {
// data of the previous capture.
// There can be at most one concurrent read going on when this
// method is called.
- virtual void CaptureInvalidRegion(CaptureCompletedCallback* callback) = 0;
+ virtual void CaptureInvalidRegion(
+ const CaptureCompletedCallback& callback) = 0;
// Get the size of the most recently captured screen.
virtual const SkISize& size_most_recent() const = 0;
« no previous file with comments | « remoting/client/rectangle_update_decoder.cc ('k') | remoting/host/capturer_fake.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698