Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include <remoting/client/cursor_shape_stub_proxy.h> | |
| 6 #include "base/bind.h" | |
| 7 #include "base/location.h" | |
| 8 #include "remoting/proto/control.pb.h" | |
| 9 | |
| 10 namespace remoting { | |
| 11 | |
| 12 CursorShapeStubProxy::CursorShapeStubProxy( | |
| 13 base::WeakPtr<protocol::CursorShapeStub> stub, | |
| 14 scoped_refptr<base::SingleThreadTaskRunner> task_runner) | |
| 15 : stub_(stub), task_runner_(task_runner) {} | |
| 16 | |
| 17 CursorShapeStubProxy::~CursorShapeStubProxy() {} | |
| 18 | |
| 19 void CursorShapeStubProxy::SetCursorShape( | |
| 20 const protocol::CursorShapeInfo& cursor_shape) { | |
| 21 DCHECK(task_runner_); | |
|
Sergey Ulanov
2016/07/27 20:38:01
Don't need this DCHECK.
operator-> in scoped_refpt
Yuwei
2016/07/27 21:01:36
Done.
| |
| 22 task_runner_->PostTask( | |
| 23 FROM_HERE, base::Bind(&protocol::CursorShapeStub::SetCursorShape, stub_, | |
| 24 cursor_shape)); | |
| 25 } | |
| 26 | |
| 27 } // namespace remoting | |
| OLD | NEW |