Chromium Code Reviews| 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/chromoting_host.h" | 5 #include "remoting/host/chromoting_host.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/message_loop_proxy.h" | 10 #include "base/message_loop_proxy.h" |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 47 // Fuzzing percentage. ex: 10% will spread requests randomly | 47 // Fuzzing percentage. ex: 10% will spread requests randomly |
| 48 // between 90%-100% of the calculated time. | 48 // between 90%-100% of the calculated time. |
| 49 0, | 49 0, |
| 50 | 50 |
| 51 // Maximum amount of time we are willing to delay our request in ms. | 51 // Maximum amount of time we are willing to delay our request in ms. |
| 52 -1, | 52 -1, |
| 53 | 53 |
| 54 // Time to keep an entry from being discarded even when it | 54 // Time to keep an entry from being discarded even when it |
| 55 // has no significant state, -1 to never discard. | 55 // has no significant state, -1 to never discard. |
| 56 -1, | 56 -1, |
| 57 | |
| 58 // Don't use initial delay unless the last request was an error. | |
| 59 false, | |
|
Jói
2012/04/24 20:51:20
Did you mean to set this to true and update the co
mmenke
2012/04/24 21:05:25
The motivation is my unlanded captive portal detec
| |
| 57 }; | 60 }; |
| 58 | 61 |
| 59 } // namespace | 62 } // namespace |
| 60 | 63 |
| 61 ChromotingHost::ChromotingHost( | 64 ChromotingHost::ChromotingHost( |
| 62 ChromotingHostContext* context, | 65 ChromotingHostContext* context, |
| 63 SignalStrategy* signal_strategy, | 66 SignalStrategy* signal_strategy, |
| 64 DesktopEnvironment* environment, | 67 DesktopEnvironment* environment, |
| 65 const protocol::NetworkSettings& network_settings) | 68 const protocol::NetworkSettings& network_settings) |
| 66 : context_(context), | 69 : context_(context), |
| (...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 409 OnShutdown()); | 412 OnShutdown()); |
| 410 | 413 |
| 411 for (std::vector<base::Closure>::iterator it = shutdown_tasks_.begin(); | 414 for (std::vector<base::Closure>::iterator it = shutdown_tasks_.begin(); |
| 412 it != shutdown_tasks_.end(); ++it) { | 415 it != shutdown_tasks_.end(); ++it) { |
| 413 it->Run(); | 416 it->Run(); |
| 414 } | 417 } |
| 415 shutdown_tasks_.clear(); | 418 shutdown_tasks_.clear(); |
| 416 } | 419 } |
| 417 | 420 |
| 418 } // namespace remoting | 421 } // namespace remoting |
| OLD | NEW |