Lines Matching defs:NetLog
23 // NetLog is the destination for log messages generated by the network stack.
28 // To avoid needing to pass in the "source id" to the logging functions, NetLog
32 // ******** The NetLog (and associated logging) is a work in progress ********
38 class NetLog {
63 // message groupings. Can use NetLog::NextID() to create unique IDs.
109 NetLog() {}
110 virtual ~NetLog() {}
131 // Returns the logging level for this NetLog. This is used to avoid computing
135 // Converts a time to the string format that the NetLog uses to represent
153 static Value* EntryToDictionaryValue(NetLog::EventType type,
155 const NetLog::Source& source,
156 NetLog::EventPhase phase,
157 NetLog::EventParameters* params,
161 DISALLOW_COPY_AND_ASSIGN(NetLog);
164 // Helper that binds a Source to a NetLog, and exposes convenience methods to
170 BoundNetLog(const NetLog::Source& source, NetLog* net_log)
174 // Convenience methods that call through to the NetLog, passing in the
176 void AddEntry(NetLog::EventType type,
177 NetLog::EventPhase phase,
178 const scoped_refptr<NetLog::EventParameters>& params) const;
181 NetLog::EventType type,
183 NetLog::EventPhase phase,
184 const scoped_refptr<NetLog::EventParameters>& params) const;
186 // Convenience methods that call through to the NetLog, passing in the
189 void AddEvent(NetLog::EventType event_type,
190 const scoped_refptr<NetLog::EventParameters>& params) const;
191 void BeginEvent(NetLog::EventType event_type,
192 const scoped_refptr<NetLog::EventParameters>& params) const;
193 void EndEvent(NetLog::EventType event_type,
194 const scoped_refptr<NetLog::EventParameters>& params) const;
200 void EndEventWithNetErrorCode(NetLog::EventType event_type,
203 NetLog::LogLevel GetLogLevel() const;
211 // Helper to create a BoundNetLog given a NetLog and a SourceType. Takes care
213 static BoundNetLog Make(NetLog* net_log, NetLog::SourceType source_type);
215 const NetLog::Source& source() const { return source_; }
216 NetLog* net_log() const { return net_log_; }
219 NetLog::Source source_;
220 NetLog* net_log_;
225 class NetLogStringParameter : public NetLog::EventParameters {
244 class NetLogIntegerParameter : public NetLog::EventParameters {
262 // single NetLog::Source parameter.
263 class NetLogSourceParameter : public NetLog::EventParameters {
266 NetLogSourceParameter(const char* name, const NetLog::Source& value)
269 const NetLog::Source& value() const {
277 const NetLog::Source value_;
285 NetLog::EventType event_type,
286 const scoped_refptr<NetLog::EventParameters>& params);
294 const scoped_refptr<NetLog::EventParameters>& end_event_params);
300 const NetLog::EventType event_type_;
301 scoped_refptr<NetLog::EventParameters> end_event_params_;