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

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

Issue 1355063004: Template methods on Timer classes instead of the classes themselves. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: timer: fixcaller Created 5 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
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_DHCP_PROXY_SCRIPT_FETCHER_WIN_H_ 5 #ifndef NET_PROXY_DHCP_PROXY_SCRIPT_FETCHER_WIN_H_
6 #define NET_PROXY_DHCP_PROXY_SCRIPT_FETCHER_WIN_H_ 6 #define NET_PROXY_DHCP_PROXY_SCRIPT_FETCHER_WIN_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 // Lets our client know we're done. Not valid in states START or DONE. 151 // Lets our client know we're done. Not valid in states START or DONE.
152 CompletionCallback callback_; 152 CompletionCallback callback_;
153 153
154 // Pointer to string we will write results to. Not valid in states 154 // Pointer to string we will write results to. Not valid in states
155 // START and DONE. 155 // START and DONE.
156 base::string16* destination_string_; 156 base::string16* destination_string_;
157 157
158 // PAC URL retrieved from DHCP, if any. Valid only in state STATE_DONE. 158 // PAC URL retrieved from DHCP, if any. Valid only in state STATE_DONE.
159 GURL pac_url_; 159 GURL pac_url_;
160 160
161 base::OneShotTimer<DhcpProxyScriptFetcherWin> wait_timer_; 161 base::OneShotTimer wait_timer_;
162 162
163 URLRequestContext* const url_request_context_; 163 URLRequestContext* const url_request_context_;
164 164
165 // NULL or the AdapterQuery currently in flight. 165 // NULL or the AdapterQuery currently in flight.
166 scoped_refptr<AdapterQuery> last_query_; 166 scoped_refptr<AdapterQuery> last_query_;
167 167
168 // Time |Fetch()| was last called, 0 if never. 168 // Time |Fetch()| was last called, 0 if never.
169 base::TimeTicks fetch_start_time_; 169 base::TimeTicks fetch_start_time_;
170 170
171 // Worker pool we use for all DHCP lookup tasks. 171 // Worker pool we use for all DHCP lookup tasks.
172 scoped_refptr<base::SequencedWorkerPool> worker_pool_; 172 scoped_refptr<base::SequencedWorkerPool> worker_pool_;
173 173
174 DISALLOW_IMPLICIT_CONSTRUCTORS(DhcpProxyScriptFetcherWin); 174 DISALLOW_IMPLICIT_CONSTRUCTORS(DhcpProxyScriptFetcherWin);
175 }; 175 };
176 176
177 } // namespace net 177 } // namespace net
178 178
179 #endif // NET_PROXY_DHCP_PROXY_SCRIPT_FETCHER_WIN_H_ 179 #endif // NET_PROXY_DHCP_PROXY_SCRIPT_FETCHER_WIN_H_
OLDNEW
« no previous file with comments | « net/proxy/dhcp_proxy_script_adapter_fetcher_win_unittest.cc ('k') | net/proxy/dhcp_proxy_script_fetcher_win_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698