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

Unified Diff: content/browser/devtools/devtools_netlog_observer.h

Issue 1953593002: Move DevToolsNetLogObserver to c/b/loader and create stub of network service interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix comment Created 4 years, 7 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 | « content/browser/devtools/devtools_manager.cc ('k') | content/browser/devtools/devtools_netlog_observer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/devtools/devtools_netlog_observer.h
diff --git a/content/browser/devtools/devtools_netlog_observer.h b/content/browser/devtools/devtools_netlog_observer.h
deleted file mode 100644
index cde0133bc292f7fe932194c08e824db884c3a504..0000000000000000000000000000000000000000
--- a/content/browser/devtools/devtools_netlog_observer.h
+++ /dev/null
@@ -1,65 +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.
-
-#ifndef CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_NETLOG_OBSERVER_H_
-#define CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_NETLOG_OBSERVER_H_
-
-#include <stdint.h>
-
-#include "base/containers/hash_tables.h"
-#include "base/macros.h"
-#include "base/memory/ref_counted.h"
-#include "content/public/common/resource_devtools_info.h"
-#include "net/log/net_log.h"
-
-namespace net {
-class URLRequest;
-} // namespace net
-
-namespace content {
-struct ResourceResponse;
-
-// DevToolsNetLogObserver watches the NetLog event stream and collects the
-// stuff that may be of interest to DevTools. Currently, this only includes
-// actual HTTP/SPDY headers sent and received over the network.
-//
-// As DevToolsNetLogObserver shares live data with objects that live on the
-// IO Thread, it must also reside on the IO Thread. Only OnAddEntry can be
-// called from other threads.
-class DevToolsNetLogObserver : public net::NetLog::ThreadSafeObserver {
- typedef ResourceDevToolsInfo ResourceInfo;
-
- public:
- // net::NetLog::ThreadSafeObserver implementation:
- void OnAddEntry(const net::NetLog::Entry& entry) override;
-
- void OnAddURLRequestEntry(const net::NetLog::Entry& entry);
-
- static void Attach();
- static void Detach();
-
- // Must be called on the IO thread. May return NULL if no observers
- // are active.
- static DevToolsNetLogObserver* GetInstance();
- static void PopulateResponseInfo(net::URLRequest*,
- ResourceResponse*);
-
- private:
- static DevToolsNetLogObserver* instance_;
-
- DevToolsNetLogObserver();
- ~DevToolsNetLogObserver() override;
-
- ResourceInfo* GetResourceInfo(uint32_t id);
-
- typedef base::hash_map<uint32_t, scoped_refptr<ResourceInfo>>
- RequestToInfoMap;
- RequestToInfoMap request_to_info_;
-
- DISALLOW_COPY_AND_ASSIGN(DevToolsNetLogObserver);
-};
-
-} // namespace content
-
-#endif // CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_NETLOG_OBSERVER_H_
« no previous file with comments | « content/browser/devtools/devtools_manager.cc ('k') | content/browser/devtools/devtools_netlog_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698