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

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

Issue 10692155: Switch to TimeDelta interfaces for process waiting functions in net and ipc. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 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_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 #pragma once 7 #pragma once
8 8
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 // worker thread, then used again on the originating thread only when 77 // worker thread, then used again on the originating thread only when
78 // the task has completed on the worker thread. No locking required. 78 // the task has completed on the worker thread. No locking required.
79 std::set<std::string> adapter_names_; 79 std::set<std::string> adapter_names_;
80 80
81 DISALLOW_COPY_AND_ASSIGN(AdapterQuery); 81 DISALLOW_COPY_AND_ASSIGN(AdapterQuery);
82 }; 82 };
83 83
84 // Virtual methods introduced to allow unit testing. 84 // Virtual methods introduced to allow unit testing.
85 virtual DhcpProxyScriptAdapterFetcher* ImplCreateAdapterFetcher(); 85 virtual DhcpProxyScriptAdapterFetcher* ImplCreateAdapterFetcher();
86 virtual AdapterQuery* ImplCreateAdapterQuery(); 86 virtual AdapterQuery* ImplCreateAdapterQuery();
87 virtual int ImplGetMaxWaitMs(); 87 virtual base::TimeDelta ImplGetMaxWait();
88 virtual void ImplOnGetCandidateAdapterNamesDone() {} 88 virtual void ImplOnGetCandidateAdapterNamesDone() {}
89 89
90 private: 90 private:
91 // Event/state transition handlers 91 // Event/state transition handlers
92 void CancelImpl(); 92 void CancelImpl();
93 void OnGetCandidateAdapterNamesDone(scoped_refptr<AdapterQuery> query); 93 void OnGetCandidateAdapterNamesDone(scoped_refptr<AdapterQuery> query);
94 void OnFetcherDone(int result); 94 void OnFetcherDone(int result);
95 void OnWaitTimer(); 95 void OnWaitTimer();
96 void TransitionToDone(); 96 void TransitionToDone();
97 97
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 161
162 // Time |Fetch()| was last called, 0 if never. 162 // Time |Fetch()| was last called, 0 if never.
163 base::TimeTicks fetch_start_time_; 163 base::TimeTicks fetch_start_time_;
164 164
165 DISALLOW_IMPLICIT_CONSTRUCTORS(DhcpProxyScriptFetcherWin); 165 DISALLOW_IMPLICIT_CONSTRUCTORS(DhcpProxyScriptFetcherWin);
166 }; 166 };
167 167
168 } // namespace net 168 } // namespace net
169 169
170 #endif // NET_PROXY_DHCP_PROXY_SCRIPT_FETCHER_WIN_H_ 170 #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.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698