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

Side by Side Diff: net/proxy/proxy_script_fetcher_impl.h

Issue 1224343002: Add Net.ProxyScriptFetchSuccessDuration UMA to record how long PAC script fetches take. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rename UMA to Net.ProxyScriptFetcher.SuccessDuration Created 5 years, 5 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
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_PROXY_PROXY_SCRIPT_FETCHER_IMPL_H_ 5 #ifndef NET_PROXY_PROXY_SCRIPT_FETCHER_IMPL_H_
6 #define NET_PROXY_PROXY_SCRIPT_FETCHER_IMPL_H_ 6 #define NET_PROXY_PROXY_SCRIPT_FETCHER_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 // This buffer is owned by the owner of |callback|, and will be filled with 109 // This buffer is owned by the owner of |callback|, and will be filled with
110 // UTF16 response on completion. 110 // UTF16 response on completion.
111 base::string16* result_text_; 111 base::string16* result_text_;
112 112
113 // The maximum number of bytes to allow in responses. 113 // The maximum number of bytes to allow in responses.
114 size_t max_response_bytes_; 114 size_t max_response_bytes_;
115 115
116 // The maximum amount of time to wait for download to complete. 116 // The maximum amount of time to wait for download to complete.
117 base::TimeDelta max_duration_; 117 base::TimeDelta max_duration_;
118 118
119 // The time that the fetch started.
120 base::Time fetch_start_time_;
121
119 // Factory for creating the time-out task. This takes care of revoking 122 // Factory for creating the time-out task. This takes care of revoking
120 // outstanding tasks when |this| is deleted. 123 // outstanding tasks when |this| is deleted.
121 base::WeakPtrFactory<ProxyScriptFetcherImpl> weak_factory_; 124 base::WeakPtrFactory<ProxyScriptFetcherImpl> weak_factory_;
122 125
123 DISALLOW_COPY_AND_ASSIGN(ProxyScriptFetcherImpl); 126 DISALLOW_COPY_AND_ASSIGN(ProxyScriptFetcherImpl);
124 }; 127 };
125 128
126 } // namespace net 129 } // namespace net
127 130
128 #endif // NET_PROXY_PROXY_SCRIPT_FETCHER_IMPL_H_ 131 #endif // NET_PROXY_PROXY_SCRIPT_FETCHER_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | net/proxy/proxy_script_fetcher_impl.cc » ('j') | net/proxy/proxy_script_fetcher_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698