Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(46)

Side by Side Diff: remoting/host/linux/certificate_watcher_inhibitor.cc

Issue 1838313002: Restart the host when the third party auth certificate changes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698