Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(734)

Unified Diff: net/log/capturing_net_log_observer.h

Issue 1092403005: Rename NetLog test classes to match the renamed TestNetLog class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Response to comments Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/log/captured_net_log_entry.cc ('k') | net/log/capturing_net_log_observer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/log/capturing_net_log_observer.h
diff --git a/net/log/capturing_net_log_observer.h b/net/log/capturing_net_log_observer.h
deleted file mode 100644
index d9faa06063c46076c6cb5ed8faf3b335a71e8379..0000000000000000000000000000000000000000
--- a/net/log/capturing_net_log_observer.h
+++ /dev/null
@@ -1,58 +0,0 @@
-// Copyright 2014 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 NET_LOG_CAPTURING_NET_LOG_OBSERVER_H_
-#define NET_LOG_CAPTURING_NET_LOG_OBSERVER_H_
-
-#include <string>
-#include <vector>
-
-#include "base/basictypes.h"
-#include "base/compiler_specific.h"
-#include "base/synchronization/lock.h"
-#include "net/log/captured_net_log_entry.h"
-#include "net/log/net_log.h"
-
-namespace base {
-class DictionaryValue;
-class ListValue;
-}
-
-namespace net {
-
-// CapturingNetLogObserver is an implementation of NetLog::ThreadSafeObserver
-// that saves messages to a bounded buffer. It is intended for testing only,
-// and is part of the net_test_support project.
-class CapturingNetLogObserver : public NetLog::ThreadSafeObserver {
- public:
- CapturingNetLogObserver();
- ~CapturingNetLogObserver() override;
-
- // Returns the list of all entries in the log.
- void GetEntries(CapturedNetLogEntry::List* entry_list) const;
-
- // Fills |entry_list| with all entries in the log from the specified Source.
- void GetEntriesForSource(NetLog::Source source,
- CapturedNetLogEntry::List* entry_list) const;
-
- // Returns number of entries in the log.
- size_t GetSize() const;
-
- void Clear();
-
- private:
- // ThreadSafeObserver implementation:
- void OnAddEntry(const NetLog::Entry& entry) override;
-
- // Needs to be "mutable" so can use it in GetEntries().
- mutable base::Lock lock_;
-
- CapturedNetLogEntry::List captured_entries_;
-
- DISALLOW_COPY_AND_ASSIGN(CapturingNetLogObserver);
-};
-
-} // namespace net
-
-#endif // NET_LOG_CAPTURING_NET_LOG_OBSERVER_H_
« no previous file with comments | « net/log/captured_net_log_entry.cc ('k') | net/log/capturing_net_log_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698