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

Side by Side Diff: content/browser/loader/netlog_observer.h

Issue 2715743007: Adding QUIC request headers to the net log observer (Closed)
Patch Set: csharrison nits Created 3 years, 9 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 unified diff | Download patch
« no previous file with comments | « no previous file | content/browser/loader/netlog_observer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_LOADER_NETLOG_OBSERVER_H_ 5 #ifndef CONTENT_BROWSER_LOADER_NETLOG_OBSERVER_H_
6 #define CONTENT_BROWSER_LOADER_NETLOG_OBSERVER_H_ 6 #define CONTENT_BROWSER_LOADER_NETLOG_OBSERVER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/containers/hash_tables.h" 10 #include "base/containers/hash_tables.h"
(...skipping 12 matching lines...) Expand all
23 namespace content { 23 namespace content {
24 struct ResourceResponse; 24 struct ResourceResponse;
25 25
26 // NetLogObserver watches the NetLog event stream and collects the stuff that 26 // NetLogObserver watches the NetLog event stream and collects the stuff that
27 // may be of interest to the client. Currently, this only includes actual 27 // may be of interest to the client. Currently, this only includes actual
28 // HTTP/SPDY headers sent and received over the network. 28 // HTTP/SPDY headers sent and received over the network.
29 // 29 //
30 // As NetLogObserver shares live data with objects that live on the IO Thread, 30 // As NetLogObserver shares live data with objects that live on the IO Thread,
31 // it must also reside on the IO Thread. Only OnAddEntry can be called from 31 // it must also reside on the IO Thread. Only OnAddEntry can be called from
32 // other threads. 32 // other threads.
33 class NetLogObserver : public net::NetLog::ThreadSafeObserver { 33 class CONTENT_EXPORT NetLogObserver : public net::NetLog::ThreadSafeObserver {
34 typedef ResourceDevToolsInfo ResourceInfo; 34 typedef ResourceDevToolsInfo ResourceInfo;
35 35
36 public: 36 public:
37 // net::NetLog::ThreadSafeObserver implementation: 37 // net::NetLog::ThreadSafeObserver implementation:
38 void OnAddEntry(const net::NetLogEntry& entry) override; 38 void OnAddEntry(const net::NetLogEntry& entry) override;
39 39
40 // The NetLog instance is passed in via the |net_log| parameter. 40 // The NetLog instance is passed in via the |net_log| parameter.
41 static void Attach(net::NetLog* net_log); 41 static void Attach(net::NetLog* net_log);
42 42
43 static void Detach(); 43 static void Detach();
(...skipping 21 matching lines...) Expand all
65 // thread it was instantiated on. Typically the IO thread. 65 // thread it was instantiated on. Typically the IO thread.
66 static base::LazyInstance<std::unique_ptr<base::ThreadChecker>>::Leaky 66 static base::LazyInstance<std::unique_ptr<base::ThreadChecker>>::Leaky
67 io_thread_checker_; 67 io_thread_checker_;
68 68
69 DISALLOW_COPY_AND_ASSIGN(NetLogObserver); 69 DISALLOW_COPY_AND_ASSIGN(NetLogObserver);
70 }; 70 };
71 71
72 } // namespace content 72 } // namespace content
73 73
74 #endif // CONTENT_BROWSER_LOADER_NETLOG_OBSERVER_H_ 74 #endif // CONTENT_BROWSER_LOADER_NETLOG_OBSERVER_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/loader/netlog_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698