| OLD | NEW | 
|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be | 
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. | 
| 4 | 4 | 
| 5 #include "remoting/host/video_scheduler.h" | 5 #include "remoting/host/video_scheduler.h" | 
| 6 | 6 | 
| 7 #include <algorithm> | 7 #include <algorithm> | 
| 8 | 8 | 
| 9 #include "base/bind.h" | 9 #include "base/bind.h" | 
| 10 #include "base/callback.h" | 10 #include "base/callback.h" | 
| 11 #include "base/logging.h" | 11 #include "base/logging.h" | 
| 12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" | 
| 13 #include "base/message_loop_proxy.h" | 13 #include "base/message_loop/message_loop_proxy.h" | 
| 14 #include "base/stl_util.h" | 14 #include "base/stl_util.h" | 
| 15 #include "base/sys_info.h" | 15 #include "base/sys_info.h" | 
| 16 #include "base/time.h" | 16 #include "base/time.h" | 
| 17 #include "remoting/proto/control.pb.h" | 17 #include "remoting/proto/control.pb.h" | 
| 18 #include "remoting/proto/internal.pb.h" | 18 #include "remoting/proto/internal.pb.h" | 
| 19 #include "remoting/proto/video.pb.h" | 19 #include "remoting/proto/video.pb.h" | 
| 20 #include "remoting/protocol/cursor_shape_stub.h" | 20 #include "remoting/protocol/cursor_shape_stub.h" | 
| 21 #include "remoting/protocol/message_decoder.h" | 21 #include "remoting/protocol/message_decoder.h" | 
| 22 #include "remoting/protocol/util.h" | 22 #include "remoting/protocol/util.h" | 
| 23 #include "remoting/protocol/video_stub.h" | 23 #include "remoting/protocol/video_stub.h" | 
| (...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 313     scheduler_.RecordEncodeTime( | 313     scheduler_.RecordEncodeTime( | 
| 314         base::TimeDelta::FromMilliseconds(packet->encode_time_ms())); | 314         base::TimeDelta::FromMilliseconds(packet->encode_time_ms())); | 
| 315   } | 315   } | 
| 316 | 316 | 
| 317   network_task_runner_->PostTask( | 317   network_task_runner_->PostTask( | 
| 318       FROM_HERE, base::Bind(&VideoScheduler::SendVideoPacket, this, | 318       FROM_HERE, base::Bind(&VideoScheduler::SendVideoPacket, this, | 
| 319                             base::Passed(&packet))); | 319                             base::Passed(&packet))); | 
| 320 } | 320 } | 
| 321 | 321 | 
| 322 }  // namespace remoting | 322 }  // namespace remoting | 
| OLD | NEW | 
|---|