[Sync] Test Android passphrase creation UI
[chromium-blink-merge.git] / remoting / base / vlog_net_log.h
blob8ac0cfd4eedbc0e8ded682a96f56a91e43da6533
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
3 // found in the LICENSE file.
5 #ifndef REMOTING_BASE_VLOG_NET_LOG_H_
6 #define REMOTING_BASE_VLOG_NET_LOG_H_
8 #include "base/memory/scoped_ptr.h"
9 #include "net/log/net_log.h"
11 namespace remoting {
13 // Redirectes all networking events (i.e. events logged through net::NetLog) to
14 // VLOG(4). Note that an explicit reference to a net::NetLog object has to be
15 // passed to networking classes to receive the events. There is no global
16 // network events logger exists.
17 class VlogNetLog : public net::NetLog {
18 public:
19 VlogNetLog();
20 ~VlogNetLog() override;
22 private:
23 class Observer;
24 scoped_ptr<Observer> observer_;
26 DISALLOW_COPY_AND_ASSIGN(VlogNetLog);
29 } // namespace remoting
31 #endif // REMOTING_BASE_VLOG_NET_LOG_H_