| 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/host/linux/certificate_watcher_inhibitor.h" |
| 6 |
| 7 #include "base/logging.h" |
| 8 |
| 9 namespace remoting { |
| 10 |
| 11 CertificateWatcherInhibitor::CertificateWatcherInhibitor( |
| 12 CertificateWatcher& cert_watcher) : |
| 13 cert_watcher_(cert_watcher) {} |
| 14 |
| 15 void CertificateWatcherInhibitor::OnClientConnected(const std::string& jid) { |
| 16 cert_watcher_.Inhibit(); |
| 17 LOG(INFO) << "CertificateWatcher inhibited (connection established)."; |
| 18 } |
| 19 |
| 20 void CertificateWatcherInhibitor::OnClientDisconnected(const std::string& jid) { |
| 21 cert_watcher_.Uninhibit(); |
| 22 LOG(INFO) << "CertificateWatcher uninhibited (connection dropped)."; |
| 23 } |
| 24 |
| 25 } |
| OLD | NEW |