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

Side by Side Diff: chrome/browser/net/chrome_net_log.h

Issue 468083004: Use NESTABLE_ASYNC APIs to get NetLog data into Tracing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Separated trace changes Created 6 years, 3 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 | chrome/browser/net/chrome_net_log.cc » ('j') | net/base/trace_net_log_observer.h » ('J')
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 CHROME_BROWSER_NET_CHROME_NET_LOG_H_ 5 #ifndef CHROME_BROWSER_NET_CHROME_NET_LOG_H_
6 #define CHROME_BROWSER_NET_CHROME_NET_LOG_H_ 6 #define CHROME_BROWSER_NET_CHROME_NET_LOG_H_
7 7
8 #include "base/atomicops.h" 8 #include "base/atomicops.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/observer_list.h" 10 #include "base/observer_list.h"
11 #include "base/synchronization/lock.h" 11 #include "base/synchronization/lock.h"
12 #include "net/base/net_log.h" 12 #include "net/base/net_log.h"
13 13
14 namespace net { 14 namespace net {
15 class NetLogLogger; 15 class NetLogLogger;
16 class TraceNetLogObserver;
16 } 17 }
17 18
18 class NetLogTempFile; 19 class NetLogTempFile;
19 20
20 // ChromeNetLog is an implementation of NetLog that adds file loggers 21 // ChromeNetLog is an implementation of NetLog that adds file loggers
21 // as its observers. 22 // as its observers.
22 class ChromeNetLog : public net::NetLog { 23 class ChromeNetLog : public net::NetLog {
23 public: 24 public:
24 ChromeNetLog(); 25 ChromeNetLog();
25 virtual ~ChromeNetLog(); 26 virtual ~ChromeNetLog();
26 27
27 NetLogTempFile* net_log_temp_file() { 28 NetLogTempFile* net_log_temp_file() {
28 return net_log_temp_file_.get(); 29 return net_log_temp_file_.get();
29 } 30 }
30 31
31 private: 32 private:
32 scoped_ptr<net::NetLogLogger> net_log_logger_; 33 scoped_ptr<net::NetLogLogger> net_log_logger_;
33 scoped_ptr<NetLogTempFile> net_log_temp_file_; 34 scoped_ptr<NetLogTempFile> net_log_temp_file_;
34 35
36 scoped_ptr<net::TraceNetLogObserver> trace_net_log_observer_;
37
35 DISALLOW_COPY_AND_ASSIGN(ChromeNetLog); 38 DISALLOW_COPY_AND_ASSIGN(ChromeNetLog);
36 }; 39 };
37 40
38 #endif // CHROME_BROWSER_NET_CHROME_NET_LOG_H_ 41 #endif // CHROME_BROWSER_NET_CHROME_NET_LOG_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/net/chrome_net_log.cc » ('j') | net/base/trace_net_log_observer.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698