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

Unified Diff: remoting/host/client_session.cc

Issue 7062042: 1;2305;0cRevert 86971 - Move media library AutoTaskRunner to base and rename ScopedTaskRunner. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 7 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
« no previous file with comments | « remoting/client/rectangle_update_decoder.cc ('k') | remoting/host/event_executor_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/client_session.cc
===================================================================
--- remoting/host/client_session.cc (revision 86971)
+++ remoting/host/client_session.cc (working copy)
@@ -5,6 +5,7 @@
#include "remoting/host/client_session.h"
#include "base/task.h"
+#include "media/base/callback.h"
#include "remoting/host/user_authenticator.h"
#include "remoting/proto/auth.pb.h"
@@ -27,7 +28,7 @@
void ClientSession::SuggestResolution(
const protocol::SuggestResolutionRequest* msg, Task* done) {
- base::ScopedTaskRunner done_runner(done);
+ media::AutoTaskRunner done_runner(done);
if (!authenticated_) {
LOG(WARNING) << "Invalid control message received "
@@ -40,7 +41,7 @@
const protocol::LocalLoginCredentials* credentials, Task* done) {
DCHECK(event_handler_);
- base::ScopedTaskRunner done_runner(done);
+ media::AutoTaskRunner done_runner(done);
bool success = false;
switch (credentials->type()) {
@@ -69,17 +70,19 @@
void ClientSession::InjectKeyEvent(const protocol::KeyEvent* event,
Task* done) {
- base::ScopedTaskRunner done_runner(done);
+ media::AutoTaskRunner done_runner(done);
if (authenticated_) {
- input_stub_->InjectKeyEvent(event, done_runner.Release());
+ done_runner.release();
+ input_stub_->InjectKeyEvent(event, done);
}
}
void ClientSession::InjectMouseEvent(const protocol::MouseEvent* event,
Task* done) {
- base::ScopedTaskRunner done_runner(done);
+ media::AutoTaskRunner done_runner(done);
if (authenticated_) {
- input_stub_->InjectMouseEvent(event, done_runner.Release());
+ done_runner.release();
+ input_stub_->InjectMouseEvent(event, done);
}
}
« no previous file with comments | « remoting/client/rectangle_update_decoder.cc ('k') | remoting/host/event_executor_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698