OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/client/jni/chromoting_jni_instance.h" | 5 #include "remoting/client/jni/chromoting_jni_instance.h" |
6 | 6 |
7 #include <android/log.h> | 7 #include <android/log.h> |
| 8 #include <stdint.h> |
8 | 9 |
9 #include "base/bind.h" | 10 #include "base/bind.h" |
10 #include "base/logging.h" | 11 #include "base/logging.h" |
11 #include "jingle/glue/thread_wrapper.h" | 12 #include "jingle/glue/thread_wrapper.h" |
12 #include "net/socket/client_socket_factory.h" | 13 #include "net/socket/client_socket_factory.h" |
13 #include "remoting/base/service_urls.h" | 14 #include "remoting/base/service_urls.h" |
14 #include "remoting/client/audio_player.h" | 15 #include "remoting/client/audio_player.h" |
15 #include "remoting/client/client_status_logger.h" | 16 #include "remoting/client/client_status_logger.h" |
16 #include "remoting/client/jni/android_keymap.h" | 17 #include "remoting/client/jni/android_keymap.h" |
17 #include "remoting/client/jni/chromoting_jni_runtime.h" | 18 #include "remoting/client/jni/chromoting_jni_runtime.h" |
(...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
506 perf_tracker_->round_trip_ms()); | 507 perf_tracker_->round_trip_ms()); |
507 | 508 |
508 client_status_logger_->LogStatistics(perf_tracker_.get()); | 509 client_status_logger_->LogStatistics(perf_tracker_.get()); |
509 | 510 |
510 jni_runtime_->network_task_runner()->PostDelayedTask( | 511 jni_runtime_->network_task_runner()->PostDelayedTask( |
511 FROM_HERE, base::Bind(&ChromotingJniInstance::LogPerfStats, this), | 512 FROM_HERE, base::Bind(&ChromotingJniInstance::LogPerfStats, this), |
512 base::TimeDelta::FromMilliseconds(kPerfStatsIntervalMs)); | 513 base::TimeDelta::FromMilliseconds(kPerfStatsIntervalMs)); |
513 } | 514 } |
514 | 515 |
515 } // namespace remoting | 516 } // namespace remoting |
OLD | NEW |