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

Unified Diff: remoting/host/vlog_net_log.cc

Issue 18460003: Move url_request_context from remoting/host/ to remoting/base/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/host/vlog_net_log.h ('k') | remoting/remoting.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/vlog_net_log.cc
diff --git a/remoting/host/vlog_net_log.cc b/remoting/host/vlog_net_log.cc
deleted file mode 100644
index 583c0752c1dfa147d060d288233ace594a1d68e9..0000000000000000000000000000000000000000
--- a/remoting/host/vlog_net_log.cc
+++ /dev/null
@@ -1,52 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "remoting/host/vlog_net_log.h"
-
-#include "base/json/json_writer.h"
-#include "base/logging.h"
-#include "base/memory/scoped_ptr.h"
-#include "base/threading/thread_restrictions.h"
-#include "base/time/time.h"
-#include "base/values.h"
-
-namespace remoting {
-
-class VlogNetLog::Observer : public net::NetLog::ThreadSafeObserver {
- public:
- Observer();
- virtual ~Observer();
-
- // NetLog::ThreadSafeObserver overrides:
- virtual void OnAddEntry(const net::NetLog::Entry& entry) OVERRIDE;
-
- private:
- DISALLOW_COPY_AND_ASSIGN(Observer);
-};
-
-VlogNetLog::Observer::Observer() {
-}
-
-VlogNetLog::Observer::~Observer() {
-}
-
-void VlogNetLog::Observer::OnAddEntry(const net::NetLog::Entry& entry) {
- if (VLOG_IS_ON(4)) {
- scoped_ptr<Value> value(entry.ToValue());
- std::string json;
- base::JSONWriter::Write(value.get(), &json);
- VLOG(4) << json;
- }
-}
-
-VlogNetLog::VlogNetLog()
- : observer_(new Observer()) {
- AddThreadSafeObserver(observer_.get(), LOG_ALL_BUT_BYTES);
-}
-
-VlogNetLog::~VlogNetLog() {
- RemoveThreadSafeObserver(observer_.get());
-}
-
-} // namespace remoting
« no previous file with comments | « remoting/host/vlog_net_log.h ('k') | remoting/remoting.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698