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

Side by Side Diff: net/base/capturing_net_log.h

Issue 10399083: Make NetLog take in callbacks that return Values (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Fix merge error Created 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/browser/debugger/devtools_netlog_observer.cc ('k') | net/base/capturing_net_log.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 NET_BASE_CAPTURING_NET_LOG_H_ 5 #ifndef NET_BASE_CAPTURING_NET_LOG_H_
6 #define NET_BASE_CAPTURING_NET_LOG_H_ 6 #define NET_BASE_CAPTURING_NET_LOG_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 virtual ~CapturingNetLog(); 69 virtual ~CapturingNetLog();
70 70
71 // Returns the list of all entries in the log. 71 // Returns the list of all entries in the log.
72 void GetEntries(CapturedEntryList* entry_list) const; 72 void GetEntries(CapturedEntryList* entry_list) const;
73 73
74 void Clear(); 74 void Clear();
75 75
76 void SetLogLevel(NetLog::LogLevel log_level); 76 void SetLogLevel(NetLog::LogLevel log_level);
77 77
78 // NetLog implementation: 78 // NetLog implementation:
79 virtual void AddEntry( 79 virtual void OnAddEntry(const net::NetLog::Entry& entry) OVERRIDE;
80 EventType type,
81 const Source& source,
82 EventPhase phase,
83 const scoped_refptr<EventParameters>& extra_parameters) OVERRIDE;
84 virtual uint32 NextID() OVERRIDE; 80 virtual uint32 NextID() OVERRIDE;
85 virtual LogLevel GetLogLevel() const OVERRIDE; 81 virtual LogLevel GetLogLevel() const OVERRIDE;
86 virtual void AddThreadSafeObserver(ThreadSafeObserver* observer, 82 virtual void AddThreadSafeObserver(ThreadSafeObserver* observer,
87 LogLevel log_level) OVERRIDE; 83 LogLevel log_level) OVERRIDE;
88 virtual void SetObserverLogLevel(ThreadSafeObserver* observer, 84 virtual void SetObserverLogLevel(ThreadSafeObserver* observer,
89 LogLevel log_level) OVERRIDE; 85 LogLevel log_level) OVERRIDE;
90 virtual void RemoveThreadSafeObserver(ThreadSafeObserver* observer) OVERRIDE; 86 virtual void RemoveThreadSafeObserver(ThreadSafeObserver* observer) OVERRIDE;
91 87
92 private: 88 private:
93 // Needs to be "mutable" so can use it in GetEntries(). 89 // Needs to be "mutable" so can use it in GetEntries().
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 private: 123 private:
128 CapturingNetLog capturing_net_log_; 124 CapturingNetLog capturing_net_log_;
129 const BoundNetLog net_log_; 125 const BoundNetLog net_log_;
130 126
131 DISALLOW_COPY_AND_ASSIGN(CapturingBoundNetLog); 127 DISALLOW_COPY_AND_ASSIGN(CapturingBoundNetLog);
132 }; 128 };
133 129
134 } // namespace net 130 } // namespace net
135 131
136 #endif // NET_BASE_CAPTURING_NET_LOG_H_ 132 #endif // NET_BASE_CAPTURING_NET_LOG_H_
OLDNEW
« no previous file with comments | « content/browser/debugger/devtools_netlog_observer.cc ('k') | net/base/capturing_net_log.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698