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

Unified Diff: ios/crnet/crnet_net_log.h

Issue 1158033010: [CrNet] Properly setup net log. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unneeded get() Created 5 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 | « ios/crnet/crnet_environment.mm ('k') | ios/crnet/crnet_net_log.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/crnet/crnet_net_log.h
diff --git a/ios/crnet/crnet_net_log.h b/ios/crnet/crnet_net_log.h
deleted file mode 100644
index 6bdc0766334c1db12bc7c28ed8263d32091955ac..0000000000000000000000000000000000000000
--- a/ios/crnet/crnet_net_log.h
+++ /dev/null
@@ -1,51 +0,0 @@
-// Copyright 2015 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.
-
-#ifndef IOS_CRNET_CRNET_NET_LOG_H_
-#define IOS_CRNET_CRNET_NET_LOG_H_
-
-#include "base/memory/scoped_ptr.h"
-#include "base/threading/thread_checker.h"
-#include "net/log/net_log.h"
-
-namespace base {
-class FilePath;
-class DictionaryValue;
-}
-
-namespace net {
-class WriteToFileNetLogObserver;
-}
-
-// CrNet-specific NetLog subclass.
-// This class can be used as a NetLog where needed; it logs all log entries to
-// the file specified in Start().
-class CrNetNetLog : public net::NetLog {
- public:
- enum Mode {
- LOG_ALL_BYTES,
- LOG_STRIP_PRIVATE_DATA,
- };
-
- CrNetNetLog();
- ~CrNetNetLog() override;
-
- // Starts logging to the file named |log_file|. If |mode| is LOG_ALL_BYTES,
- // logs all network traffic, including raw bytes. If |mode| is
- // LOG_STRIP_PRIVATE_DATA, strips cookies and other private data, and does
- // not log raw bytes.
- bool Start(const base::FilePath& log_file, Mode mode);
-
- // Stops logging.
- void Stop();
-
- private:
- // Underlying file writer. This observer observes NetLog events and writes
- // them back to the file this class is logging to.
- scoped_ptr<net::WriteToFileNetLogObserver> write_to_file_observer_;
-
- base::ThreadChecker thread_checker_;
-};
-
-#endif // IOS_CRNET_CRNET_NET_LOG_H
« no previous file with comments | « ios/crnet/crnet_environment.mm ('k') | ios/crnet/crnet_net_log.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698