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

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

Issue 11885009: Improve performance of proxy resolver by tracing DNS dependencies. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: re-upload due to failure last time Created 7 years, 10 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 | « chrome/browser/net/proxy_service_factory.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 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 // Attempt to retrieve an value of the specified type with the given name 47 // Attempt to retrieve an value of the specified type with the given name
48 // from |params|. Returns true on success, false on failure. Does not 48 // from |params|. Returns true on success, false on failure. Does not
49 // modify |value| on failure. 49 // modify |value| on failure.
50 bool GetStringValue(const std::string& name, std::string* value) const; 50 bool GetStringValue(const std::string& name, std::string* value) const;
51 bool GetIntegerValue(const std::string& name, int* value) const; 51 bool GetIntegerValue(const std::string& name, int* value) const;
52 52
53 // Same as GetIntegerValue, but returns the error code associated with a 53 // Same as GetIntegerValue, but returns the error code associated with a
54 // log entry. 54 // log entry.
55 bool GetNetErrorCode(int* value) const; 55 bool GetNetErrorCode(int* value) const;
56 56
57 // Returns the parameters as a JSON string, or empty string if there are no
58 // parameters.
59 std::string GetParamsJson() const;
60
57 EventType type; 61 EventType type;
58 base::TimeTicks time; 62 base::TimeTicks time;
59 Source source; 63 Source source;
60 EventPhase phase; 64 EventPhase phase;
61 scoped_ptr<base::DictionaryValue> params; 65 scoped_ptr<base::DictionaryValue> params;
62 }; 66 };
63 67
64 // Ordered set of entries that were logged. 68 // Ordered set of entries that were logged.
65 typedef std::vector<CapturedEntry> CapturedEntryList; 69 typedef std::vector<CapturedEntry> CapturedEntryList;
66 70
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 private: 132 private:
129 CapturingNetLog capturing_net_log_; 133 CapturingNetLog capturing_net_log_;
130 const BoundNetLog net_log_; 134 const BoundNetLog net_log_;
131 135
132 DISALLOW_COPY_AND_ASSIGN(CapturingBoundNetLog); 136 DISALLOW_COPY_AND_ASSIGN(CapturingBoundNetLog);
133 }; 137 };
134 138
135 } // namespace net 139 } // namespace net
136 140
137 #endif // NET_BASE_CAPTURING_NET_LOG_H_ 141 #endif // NET_BASE_CAPTURING_NET_LOG_H_
OLDNEW
« no previous file with comments | « chrome/browser/net/proxy_service_factory.cc ('k') | net/base/capturing_net_log.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698